mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 16:39:03 +00:00
Remove trailing whitespace in lua files
Whitespace is not significant, so this should not be a problem. https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
@@ -14,7 +14,7 @@ Obtains up to 100 forward DNS names for a target IP address by querying the Robt
|
||||
--
|
||||
-- @output
|
||||
-- Pre-scan script results:
|
||||
-- | http-robtex-reverse-ip:
|
||||
-- | http-robtex-reverse-ip:
|
||||
-- | *.insecure.org
|
||||
-- | *.nmap.com
|
||||
-- | *.nmap.org
|
||||
@@ -34,7 +34,7 @@ Obtains up to 100 forward DNS names for a target IP address by querying the Robt
|
||||
-- | www.seclists.org
|
||||
-- |_ images.insecure.org
|
||||
--
|
||||
-- @args http-robtex-reverse-ip.host IPv4 address of the host to lookup
|
||||
-- @args http-robtex-reverse-ip.host IPv4 address of the host to lookup
|
||||
--
|
||||
|
||||
author = "riemann"
|
||||
@@ -63,11 +63,11 @@ action = function(host, port)
|
||||
if ( not(ip) or #ip ~= 4 ) then
|
||||
return stdnse.format_output(false, "The argument \"http-robtex-reverse-ip.host\" did not contain a valid IPv4 address")
|
||||
end
|
||||
|
||||
|
||||
local link = "https://www.robtex.com/ip/"..target..".html"
|
||||
local htmldata = http.get_url(link)
|
||||
local domains = parse_robtex_response(htmldata.body)
|
||||
if ( #domains > 0 ) then
|
||||
return stdnse.format_output(true, domains)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user