Land #8558, Fix AMT scanner when parsing mangled HTML
commit
53253bfa37
|
@ -76,7 +76,7 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
proof = res.body.to_s
|
proof = res.body.to_s
|
||||||
proof_hash = nil
|
proof_hash = nil
|
||||||
|
|
||||||
info_keys = res.body.scan(/<td class=r1><p>([^\<]+)<\/p>/).map{|x| x.first.to_s.gsub("/", "/") }
|
info_keys = res.body.scan(/<td class=r1><p>([^\<]+)(?:<\/p>)?/).map{|x| x.first.to_s.gsub("/", "/") }
|
||||||
if info_keys.length > 0
|
if info_keys.length > 0
|
||||||
proof_hash = {}
|
proof_hash = {}
|
||||||
proof = ""
|
proof = ""
|
||||||
|
@ -106,7 +106,7 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
:proto => 'tcp',
|
:proto => 'tcp',
|
||||||
:name => "Intel AMT Digest Authentication Bypass",
|
:name => "Intel AMT Digest Authentication Bypass",
|
||||||
:refs => self.references,
|
:refs => self.references,
|
||||||
:proof => proof
|
:info => proof
|
||||||
})
|
})
|
||||||
|
|
||||||
rescue ::Timeout::Error, ::Errno::EPIPE
|
rescue ::Timeout::Error, ::Errno::EPIPE
|
||||||
|
|
Loading…
Reference in New Issue