Update regex per reviewer request
parent
d816092c56
commit
47d74819a5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue