Skip to content

Commit 919d6da

Browse files
committed
Even if there's password, we should prolly keep the username
1 parent 4ce1df2 commit 919d6da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/post/windows/gather/credentials/spark_im.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ def decrypt(hash)
5353
password = ::Rex::Text.to_utf8(password)
5454

5555
user, pass = password.scan(/[[:print:]]+/)
56-
return pass.nil? or pass.empty?
57-
print_good("Decrypted Username #{user} Password: #{pass}")
56+
if pass.nil? or pass.empty?
57+
print_status("Username found: #{user}, but no password")
58+
pass = ''
59+
else
60+
print_good("Decrypted Username #{user} Password: #{pass}")
61+
end
5862

5963
store_creds(user, pass)
6064
end

0 commit comments

Comments
 (0)