Convert UTF16 to ASCII

bug/bundler_fix
Meatballs 2013-12-14 22:58:16 +00:00
parent e46b5c9d55
commit 284a45a6c5
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ module WMIC
def wmic_query(query, server=datastore['RHOST'])
extapi = load_extapi
extapi = false
result_text = ""
if datastore['SMBUser']
@ -58,7 +58,7 @@ module WMIC
result_text = ""
end
else
result_text = Rex::Text.to_ascii(read_file(out_file))
result_text = Rex::Text.to_ascii(read_file(out_file))[1..-1]
file_rm(out_file)
end