Update regex per reviewer request
parent
d816092c56
commit
47d74819a5
|
@ -44,7 +44,7 @@ class MetasploitModule < Msf::Post
|
|||
#
|
||||
def extract_passwords(path)
|
||||
data = read_file(path)
|
||||
passwords = data.scan(/\/msg nickserv identify ([^\s]+) /)
|
||||
passwords = data.scan(/\/\^?msg nickserv identify ([^\s]+)/)
|
||||
|
||||
if passwords.any?
|
||||
return passwords.flatten
|
||||
|
|
Loading…
Reference in New Issue