From 6656514616804c66422b8cb7919ec7d6a09883a3 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Sun, 21 Apr 2013 14:34:47 +0100 Subject: [PATCH] Msftidy --- .../extensions/mimikatz/mimikatz.rb | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/lib/rex/post/meterpreter/extensions/mimikatz/mimikatz.rb b/lib/rex/post/meterpreter/extensions/mimikatz/mimikatz.rb index 0c434ea645..1be1856ce6 100644 --- a/lib/rex/post/meterpreter/extensions/mimikatz/mimikatz.rb +++ b/lib/rex/post/meterpreter/extensions/mimikatz/mimikatz.rb @@ -41,21 +41,21 @@ class Mimikatz < Extension end def parse_mimikatz_result(result) - details = CSV.parse(result) - accounts = [] - details.each do |acc| - account = { - :authid => acc[0], - :package => acc[1], - :user => acc[2], - :domain => acc[3], - :password => acc[4] - } - accounts << account - end - return accounts + details = CSV.parse(result) + accounts = [] + details.each do |acc| + account = { + :authid => acc[0], + :package => acc[1], + :user => acc[2], + :domain => acc[3], + :password => acc[4] + } + accounts << account + end + return accounts end - + def parse_mimikatz_ssp_result(result) details = CSV.parse(result) accounts = [] @@ -76,7 +76,6 @@ class Mimikatz < Extension accounts << account end end - p accounts return accounts end @@ -87,27 +86,27 @@ class Mimikatz < Extension def msv result = mimikatz_send_request('mimikatz_msv1_0') - return parse_mimikatz_result(result) + return parse_mimikatz_result(result) end def livessp result = mimikatz_send_request('mimikatz_livessp') - return parse_mimikatz_result(result) + return parse_mimikatz_result(result) end def ssp result = mimikatz_send_request('mimikatz_ssp') - return parse_mimikatz_ssp_result(result) + return parse_mimikatz_ssp_result(result) end def tspkg result = mimikatz_send_request('mimikatz_tspkg') - return parse_mimikatz_result(result) + return parse_mimikatz_result(result) end def kerberos result = mimikatz_send_request('mimikatz_kerberos') - return parse_mimikatz_result(result) + return parse_mimikatz_result(result) end end