1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Consistency change to make snmp act like other login modules

git-svn-id: file:///home/svn/framework3/trunk@11303 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-12-12 07:27:35 +00:00
parent 58565cd53f
commit cff22d7a56
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class Metasploit3 < Msf::Auxiliary
OptInt.new('BATCHSIZE', [true, 'The number of hosts to probe in each set', 256]),
OptString.new('PASSWORD', [ false, 'The password to test' ]),
OptPath.new('PASS_FILE', [ false, "File containing communities, one per line",
File.join(Msf::Config.install_root, "data", "wordlists", "snmp.txt")
File.join(Msf::Config.install_root, "data", "wordlists", "snmp_default_pass.txt")
])
], self.class)
end
@ -120,7 +120,7 @@ class Metasploit3 < Msf::Auxiliary
if(com)
@found[pkt[1]]||={}
if(not @found[pkt[1]][com])
print_status("SNMP: #{pkt[1]} community string: '#{com}' info: '#{inf}'")
print_good("SNMP: #{pkt[1]} community string: '#{com}' info: '#{inf}'")
@found[pkt[1]][com] = inf
end