Fix up batch mode aux scanners that dont use the tcp mixin. Minor changes to snmp_scan
git-svn-id: file:///home/svn/framework3/trunk@6422 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
e1a6d31c58
commit
2552633f9b
|
@ -55,7 +55,7 @@ def run
|
||||||
nmod.datastore['RHOST'] = targ
|
nmod.datastore['RHOST'] = targ
|
||||||
|
|
||||||
begin
|
begin
|
||||||
nmod.run_host(nmod.rhost)
|
nmod.run_host(targ)
|
||||||
rescue ::Interrupt
|
rescue ::Interrupt
|
||||||
raise $!
|
raise $!
|
||||||
rescue ::Rex::ConnectionError
|
rescue ::Rex::ConnectionError
|
||||||
|
|
|
@ -67,11 +67,11 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
print_status("Discovered #{datastore['COMMUNITY']} on #{ip} (#{ans})")
|
print_status("Discovered #{datastore['COMMUNITY']} on #{ip} (#{ans})")
|
||||||
report_auth_info(
|
report_auth_info(
|
||||||
:host => ip,
|
:host => ip,
|
||||||
:proto => 'SNMP',
|
:proto => 'snmp',
|
||||||
:user => 'N/A',
|
:user => 'n/a',
|
||||||
:pass => datastore['COMMUNITY'],
|
:pass => datastore['COMMUNITY'],
|
||||||
:targ_host => ip,
|
:targ_host => ip,
|
||||||
:targ_port => rport
|
:targ_port => 161
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue