We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d595d commit da49f67Copy full SHA for da49f67
modules/post/windows/gather/credentials/spark_im.rb
@@ -40,8 +40,6 @@ def initialize(info={})
40
# decrypt spark password
41
def decrypt(hash)
42
# code to decrypt hash with KEY
43
- print_status("Starting to decrypt password hash")
44
-
45
encrypted = hash.unpack("m")[0]
46
key = "ugfpV1dMC5jyJtqwVAfTpHkxqJ0+E0ae".unpack("m")[0]
47
@@ -55,6 +53,7 @@ def decrypt(hash)
55
53
password = ::Rex::Text.to_utf8(password)
56
54
57
user, pass = password.scan(/[[:print:]]+/)
+ return if pass.nil? or pass.empty?
58
print_good("Decrypted Username #{user} Password: #{pass}")
59
60
store_creds(user, pass)
0 commit comments