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 d70d2c4 commit b71729bCopy full SHA for b71729b
modules/post/windows/gather/credentials/spark_im.rb
@@ -102,12 +102,18 @@ def run
102
103
# store the hash close the file
104
password = password.delete_if {|e| e !~ /password.+=.+=\r/}
105
- hash = password[0].split("password").join.chomp
106
- print_status("Spark password hash: #{hash}") if datastore['VERBOSE']
107
- config.close
+ password.each do | pass |
+ if pass.nil?
+ next
108
+ end
109
- # call to decrypt the hash
110
- decrypt(hash)
+ hash = pass.split("password").join.chomp
111
+ print_status("Spark password hash: #{hash}") if datastore['VERBOSE']
112
+
113
+ # call method to decrypt hash
114
+ decrypt(hash)
115
+ config.close
116
117
end
118
119
0 commit comments