mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 21:51:28 +00:00
Relax http.parse_form to allow forms without an action
Patch from nnposter: http://seclists.org/nmap-dev/2014/q3/384
This commit is contained in:
@@ -195,7 +195,7 @@ function action(host, port)
|
||||
local maxlen = target["maxlength"] or maxlen_global
|
||||
for _,form_plain in ipairs(all_forms) do
|
||||
local form = http.parse_form(form_plain)
|
||||
if form then
|
||||
if form and form.action then
|
||||
local affected_fields = fuzz_form(form, minlen, maxlen, host, port, path)
|
||||
if #affected_fields > 0 then
|
||||
affected_fields["name"] = "Path: "..path.." Action: "..form["action"]
|
||||
|
||||
Reference in New Issue
Block a user