Sunday, 8 January 2012

Howto: Run the post module in all session of Metasploit.


1. Use any post method



2. use command irb

msf> use post/windows/gather/enum_tokens 

msf enum_tokens> irb



3. Type this statement
framework.sessions.each_key do |session|
run_single("set SESSION #{session}")
print_status("Running #{active_module.fullname} against session #{session}")
run_single("run")
sleep 1
end
 
4. So if you want to save step 3 into the file and use in

No comments:

Post a Comment