Fixes #2623. This solves the original problem with the SNMP community scanner not respecting the ShowProgress toggle. The other fixes proposed in this bug really kind of seem to be quibbles over what's useful for verbosity and what's not. Please open another ticket for that with a unified diff of the proposed changes.

Thanks for the report!



git-svn-id: file:///home/svn/framework3/trunk@10697 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2010-10-15 20:11:51 +00:00
parent f7bb3b82de
commit 48bcc580b8
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class Metasploit3 < Msf::Auxiliary
udp_sock = Rex::Socket::Udp.create( { 'LocalHost' => datastore['CHOST'] || nil, 'Context' => {'Msf' => framework, 'MsfExploit' => self} })
add_socket(udp_sock)
print_status(">> progress (#{batch[0]}-#{batch[-1]}) #{idx}/#{@comms.length * batch.length}...")
print_status(">> progress (#{batch[0]}-#{batch[-1]}) #{idx}/#{@comms.length * batch.length}...") if datastore['ShowProgress']
@comms.each do |comm|
data1 = create_probe_snmp1(comm)
@ -96,7 +96,7 @@ class Metasploit3 < Msf::Auxiliary
end
end
if( (idx+=1) % 1000 == 0)
if( (idx+=1) % 1000 == 0) and datastore['ShowProgress']
print_status(">> progress (#{batch[0]}-#{batch[-1]}) #{idx}/#{@comms.length * batch.length}...")
end
end