From cff22d7a566a1deb4af14e01d22e1357f2368f2a Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sun, 12 Dec 2010 07:27:35 +0000 Subject: [PATCH] Consistency change to make snmp act like other login modules git-svn-id: file:///home/svn/framework3/trunk@11303 4d416f70-5f16-0410-b530-b9f4589650da --- data/wordlists/{snmp.txt => snmp_default_pass.txt} | 0 modules/auxiliary/scanner/snmp/snmp_login.rb | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename data/wordlists/{snmp.txt => snmp_default_pass.txt} (100%) diff --git a/data/wordlists/snmp.txt b/data/wordlists/snmp_default_pass.txt similarity index 100% rename from data/wordlists/snmp.txt rename to data/wordlists/snmp_default_pass.txt diff --git a/modules/auxiliary/scanner/snmp/snmp_login.rb b/modules/auxiliary/scanner/snmp/snmp_login.rb index adbb441f46..68cf8798d9 100644 --- a/modules/auxiliary/scanner/snmp/snmp_login.rb +++ b/modules/auxiliary/scanner/snmp/snmp_login.rb @@ -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