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-b9f4589650da
unstable
Jonathan Cran 2011-04-05 19:09:44 +00:00
parent f3717302cd
commit 1ffb5e97e0
1 changed files with 4 additions and 1 deletions

View File

@ -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,