mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Added some checks for http response's body being nil.
This commit is contained in:
@@ -66,7 +66,7 @@ local function getReflected(parsed, r)
|
||||
local q = url.parse_query(parsed.query)
|
||||
-- Check the values (and keys) and see if they are reflected in the page
|
||||
for k,v in pairs(q) do
|
||||
if r.response.body:find(v, 1, true) then
|
||||
if r.response.body and r.response.body:find(v, 1, true) then
|
||||
dbg("Reflected content %s=%s", k,v)
|
||||
reflected_values[k] = v
|
||||
count = count +1
|
||||
|
||||
Reference in New Issue
Block a user