mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Make http-vuln-wnr1000-creds actually return something
This commit is contained in:
parent
bf457ee12c
commit
0224e0515a
1 changed files with 3 additions and 1 deletions
|
|
@ -79,13 +79,15 @@ action = function(host, port)
|
|||
if payload_session then
|
||||
local netgear_username = string.match(escape(payload_session.body), 'Router Admin Username</td>.+align="left">(.+)</td>.+Router Admin')
|
||||
local netgear_password = string.match(escape(payload_session.body), 'Router Admin Password</td>.+align="left">(.+)</td>.+MNUText')
|
||||
if (username ~= nil and password ~= nil) then
|
||||
if (netgear_username ~= nil and netgear_password ~= nil) then
|
||||
stdnse.debug1("username : %s", escape(netgear_username))
|
||||
stdnse.debug1("password : %s", escape(netgear_password))
|
||||
vuln.state = vulns.STATE.VULN
|
||||
else
|
||||
stdnse.debug1("We haven't been able to get username/password")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return vuln_report:make_output(vuln)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue