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 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

View File

@ -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