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-b9f4589650da
unstable
HD Moore 2009-03-29 03:11:56 +00:00
parent e1a6d31c58
commit 2552633f9b
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ def run
nmod.datastore['RHOST'] = targ
begin
nmod.run_host(nmod.rhost)
nmod.run_host(targ)
rescue ::Interrupt
raise $!
rescue ::Rex::ConnectionError

View File

@ -67,11 +67,11 @@ class Metasploit3 < Msf::Auxiliary
print_status("Discovered #{datastore['COMMUNITY']} on #{ip} (#{ans})")
report_auth_info(
:host => ip,
:proto => 'SNMP',
:user => 'N/A',
:proto => 'snmp',
:user => 'n/a',
:pass => datastore['COMMUNITY'],
:targ_host => ip,
:targ_port => rport
:targ_port => 161
)
end