Automatically configure payloads for wmap-enabled exploits

This commit is contained in:
Aram Verstegen
2012-04-07 22:58:29 +02:00
parent 410008bab7
commit 6d3e6dd6e2
+4
View File
@@ -1689,6 +1689,10 @@ class Plugin::Wmap < Msf::Plugin
'Options' => opts
})
when 'exploit'
if not opts['PAYLOAD']
opts['PAYLOAD'] = WmapCommandDispatcher::Exploit.choose_payload(modinst, opts['TARGET'])
end
sess = Msf::Simple::Exploit.exploit_simple(modinst, {
'Payload' => opts['PAYLOAD'],
'Target' => opts['TARGET'],