From 47d74819a523f6e8d10c40771f7f85274c345f14 Mon Sep 17 00:00:00 2001 From: Jonathan Claudius Date: Mon, 10 Apr 2017 14:45:10 -0400 Subject: [PATCH] Update regex per reviewer request --- modules/post/multi/gather/irssi_creds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/multi/gather/irssi_creds.rb b/modules/post/multi/gather/irssi_creds.rb index 1a36672fa1..fc265b43d4 100644 --- a/modules/post/multi/gather/irssi_creds.rb +++ b/modules/post/multi/gather/irssi_creds.rb @@ -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