From 07e5f03abae92b272738395c50ff330738d972a5 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Sat, 19 Dec 2015 01:58:29 +0000 Subject: [PATCH] Fixed --- modules/post/windows/gather/ad_groupusers_to_sql.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/post/windows/gather/ad_groupusers_to_sql.rb b/modules/post/windows/gather/ad_groupusers_to_sql.rb index 95179fda32..1952d3ee57 100644 --- a/modules/post/windows/gather/ad_groupusers_to_sql.rb +++ b/modules/post/windows/gather/ad_groupusers_to_sql.rb @@ -338,6 +338,7 @@ class Metasploit3 < Msf::Post obj_temp = ::Dir::Tmpname filename = "#{obj_temp.tmpdir}/#{obj_temp.make_tmpname('ad_', 2)}.db" db = SQLite3::Database.new(filename) + db.type_translation = true # Create the table for the AD Computers db.execute('DROP TABLE IF EXISTS ad_computers') @@ -618,7 +619,9 @@ class Metasploit3 < Msf::Post # Convert the SID raw data to a string. TODO fix this mess.... # THIS NEEDS FIXING FIXME FIXME - def sid_hex_to_string(data) + def sid_hex_to_string(_data) + data = Rex::Text.to_ascii(_data) + print data.inspect sid = [] sid << data[0].to_s rid = ''