Call the correct version of the report_auth_info() method (this one takes into account workspace)

git-svn-id: file:///home/svn/framework3/trunk@11847 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-02-28 04:55:56 +00:00
parent e7dbf28626
commit 77c5f02d4d
2 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,8 @@ require 'msf/core/post/windows/registry'
class Metasploit3 < Msf::Post
include Msf::Post::Registry
include Msf::Auxiliary::Report
def initialize(info={})
super( update_info( info,
'Name' => 'Microsoft Windows SNMP Settings Enumeration (Registry)',
@ -86,7 +87,7 @@ class Metasploit3 < Msf::Post
tbl << [c,comm_type]
# Save Community Strings to DB
session.framework.db.report_auth_info(
report_auth_info(
:host => session.sock.peerhost,
:port => 161,
:proto => 'udp',

View File

@ -15,6 +15,8 @@ require 'msf/core/post/windows/registry'
class Metasploit3 < Msf::Post
include Msf::Auxiliary::Report
def initialize(info={})
super( update_info( info,
'Name' => 'Microsoft Windows Local User Account Password Hashes (Registry)',
@ -75,7 +77,7 @@ class Metasploit3 < Msf::Post
print_line()
users.keys.sort{|a,b| a<=>b}.each do |rid|
hashstring = "#{users[rid][:Name]}:#{rid}:#{users[rid][:hashlm].unpack("H*")[0]}:#{users[rid][:hashnt].unpack("H*")[0]}:::"
session.framework.db.report_auth_info(
report_auth_info(
:host => session.sock.peerhost,
:port => 445,
:sname => 'smb',