diff --git a/modules/post/windows/gather/credentials/spark_im.rb b/modules/post/windows/gather/credentials/spark_im.rb index d09f5b2318..fa20a2bb46 100644 --- a/modules/post/windows/gather/credentials/spark_im.rb +++ b/modules/post/windows/gather/credentials/spark_im.rb @@ -91,7 +91,7 @@ class Metasploit3 < Msf::Post contents = config.read # look for lines containing string 'password' - password= contents.split("\n").grep(/password/) + password = contents.split("\n").grep(/password/) if password.nil? # file doesn't contain a password print_status("#{file} does not contain any saved passwords")