Skip to content

Commit 53253bf

Browse files
author
Brent Cook
committed
Land rapid7#8558, Fix AMT scanner when parsing mangled HTML
2 parents f4158ee + 549f9e7 commit 53253bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/intel_amt_digest_bypass.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_host(ip)
7676
proof = res.body.to_s
7777
proof_hash = nil
7878

79-
info_keys = res.body.scan(/<td class=r1><p>([^\<]+)<\/p>/).map{|x| x.first.to_s.gsub("&#x2F;", "/") }
79+
info_keys = res.body.scan(/<td class=r1><p>([^\<]+)(?:<\/p>)?/).map{|x| x.first.to_s.gsub("&#x2F;", "/") }
8080
if info_keys.length > 0
8181
proof_hash = {}
8282
proof = ""
@@ -106,7 +106,7 @@ def run_host(ip)
106106
:proto => 'tcp',
107107
:name => "Intel AMT Digest Authentication Bypass",
108108
:refs => self.references,
109-
:proof => proof
109+
:info => proof
110110
})
111111

112112
rescue ::Timeout::Error, ::Errno::EPIPE

0 commit comments

Comments
 (0)