Last active
November 11, 2016 20:56
-
-
Save carnal0wnage/c9afcd6466eb163a93fe7804c9049217 to your computer and use it in GitHub Desktop.
Export a list of workspaces from metasploit databases and credentials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ruby> | |
File.open("/root/workspaces.txt", "r") do |f| | |
f.each_line do |line| | |
run_single("workspace #{line}") | |
run_single("db_export -f xml -a /root/msf_workspace_export/#{line}_export_13Aug2016.xml") | |
run_single("db_export -f pwdump -a /root/msf_workspace_export/#{line}_export_13Aug2016.pwdump") | |
end | |
end | |
</ruby> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment