mubix's patch. grab the right value from the reg if it's not a fixnum, and set a default report port
git-svn-id: file:///home/svn/framework3/trunk@12249 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f3717302cd
commit
1ffb5e97e0
|
@ -68,7 +68,7 @@ class Metasploit3 < Msf::Post
|
|||
if data.class == Fixnum
|
||||
return data
|
||||
else
|
||||
value = data.unpack('H*').to_s
|
||||
value = data.unpack('H*')[0].to_s
|
||||
return value
|
||||
end
|
||||
rescue
|
||||
|
@ -135,6 +135,9 @@ class Metasploit3 < Msf::Post
|
|||
end
|
||||
#reporting
|
||||
if e[:pass] != nil
|
||||
if e[:port] == nil
|
||||
e[:port] = 5900
|
||||
end
|
||||
print_good("#{e[:name]} => #{e[:hash]} => #{e[:pass]} on port: #{e[:port]}")
|
||||
report_auth_info(
|
||||
:host => session.sock.peerhost,
|
||||
|
|
Loading…
Reference in New Issue