fixed issues with capturing regex
parent
c191e5b8e1
commit
4eabe43273
|
@ -164,7 +164,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
server = Regexp.last_match[1].unpack('C*').join('.')
|
server = Regexp.last_match[1].unpack('C*').join('.')
|
||||||
port = Regexp.last_match[2].unpack('S')
|
port = Regexp.last_match[2].unpack('S')
|
||||||
end
|
end
|
||||||
if data =~ /[\x00]{16,}(?<ftpuser>[[:print:]]+)[\x00]{16,}(?<ftppass>[[:print:]]+)/
|
if /[\x00]{16,}(?<ftpuser>[[:print:]]+)[\x00]{16,}(?<ftppass>[[:print:]]+)/ =~ data
|
||||||
ftpuser.strip!
|
ftpuser.strip!
|
||||||
ftppass.strip!
|
ftppass.strip!
|
||||||
if !ftpuser.blank? || !ftppass.blank?
|
if !ftpuser.blank? || !ftppass.blank?
|
||||||
|
|
Loading…
Reference in New Issue