Created
February 27, 2016 14:52
-
-
Save carnal0wnage/16cd70615dcebd378914 to your computer and use it in GitHub Desktop.
run a metasploit post module against all active sessions
This file contains 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> | |
framework.sessions.each do |num| | |
run_single("set SESSION #{num}") | |
print_status("Running #{active_module.fullname} against session #{num}") | |
run_single("exploit -j") | |
sleep 1 | |
end | |
</ruby> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment