Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
run a metasploit post module against all active sessions
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment