fixed issues with capturing regex

bug/bundler_fix
Tyler Bennett 2016-02-23 12:27:07 -05:00
parent c191e5b8e1
commit 4eabe43273
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class Metasploit3 < Msf::Auxiliary
server = Regexp.last_match[1].unpack('C*').join('.')
port = Regexp.last_match[2].unpack('S')
end
if data =~ /[\x00]{16,}(?<ftpuser>[[:print:]]+)[\x00]{16,}(?<ftppass>[[:print:]]+)/
if /[\x00]{16,}(?<ftpuser>[[:print:]]+)[\x00]{16,}(?<ftppass>[[:print:]]+)/ =~ data
ftpuser.strip!
ftppass.strip!
if !ftpuser.blank? || !ftppass.blank?