mirror of
https://github.com/nmap/nmap.git
synced 2026-06-09 17:22:26 +00:00
Fix a crash in http-xssed when scanning an IP addr or range
http-xssed unconditionally used host.targetname, which is only set when the target is specified as a name, not an IP address or range. Now we prefer the targetname, but fall back to the reverse-dns name, and finally to the IP address. Perhaps we should be more strict, if xssed.com only allows domain names, for instance?
This commit is contained in:
parent
c497ef4679
commit
065aa78596
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ action = function(host, port)
|
|||
|
||||
local fixed, unfixed
|
||||
|
||||
local target = XSSED_SEARCH .. host.targetname
|
||||
local target = XSSED_SEARCH .. (host.targetname or host.name or host.ip)
|
||||
|
||||
-- Only one instantiation of the script should ping xssed at once.
|
||||
local mutex = nmap.mutex("http-xssed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue