1
0
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:
perdo
2012-07-23 22:47:11 +00:00
parent a1abb40d50
commit 8025ba5a5a
5 changed files with 9 additions and 6 deletions

View File

@@ -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