Skip to content

Commit fac777d

Browse files
author
root
committed
brocade_enable_login msftidy success
1 parent 591716e commit fac777d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/auxiliary/scanner/telnet/brocade_enable_login.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ def initialize
2020
super(
2121
'Name' => 'Brocde Enable Login Check Scanner',
2222
'Description' => %q{
23-
This module will test a Brocade network device for a privilged
23+
This module will test a Brocade network device for a privilged
2424
(Enable) login on a range of machines and report successful
25-
logins. If you have loaded a database plugin and connected
25+
logins. If you have loaded a database plugin and connected
2626
to a database this module will record successful
2727
logins and hosts so you can track your access.
28-
This is not a login/telnet authentication. Config should NOT
29-
have 'enable telnet authentication' in it. This will test the
28+
This is not a login/telnet authentication. Config should NOT
29+
have 'enable telnet authentication' in it. This will test the
3030
config that contains 'aaa authentication enable default local'
3131
Tested against:
3232
ICX6450-24 SWver 07.4.00bT311
@@ -57,13 +57,13 @@ def get_username_from_config(un_list,ip)
5757
sock.puts(" \r\n") #paging
5858
config << sock.recv(1024)
5959
#there seems to be some buffering issues. so we want to match that we're back at a prompt, as well as received the 'end' of the config.
60-
break if config.match(/>$/) and config.match(/end/)
60+
break if config.match(/>$/) and config.match(/end/)
6161
end #pull the entire config
6262
config.each_line do |un|
6363
if un.match(/^username/)
64-
found_username = un.split(" ")[1].strip
65-
un_list.push(found_username)
66-
print_status(" Found: #{found_username}@#{ip}")
64+
found_username = un.split(" ")[1].strip
65+
un_list.push(found_username)
66+
print_status(" Found: #{found_username}@#{ip}")
6767
end #username match
6868
end #each line in config
6969
end #end config/running-config loop

0 commit comments

Comments
 (0)