Update regex per reviewer request

bug/bundler_fix
Jonathan Claudius 2017-04-10 14:45:10 -04:00
parent d816092c56
commit 47d74819a5
No known key found for this signature in database
GPG Key ID: 4BCDD990313DFA87
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class MetasploitModule < Msf::Post
# #
def extract_passwords(path) def extract_passwords(path)
data = read_file(path) data = read_file(path)
passwords = data.scan(/\/msg nickserv identify ([^\s]+) /) passwords = data.scan(/\/\^?msg nickserv identify ([^\s]+)/)
if passwords.any? if passwords.any?
return passwords.flatten return passwords.flatten