mirror of
https://github.com/nmap/nmap.git
synced 2025-12-28 02:19:04 +00:00
Update some text in scripts in preparation for rename of these two scripts
This commit is contained in:
@@ -12,7 +12,7 @@ original target.
|
||||
-- Interesting ports on scanme.nmap.org (64.13.134.52):
|
||||
-- PORT STATE SERVICE
|
||||
-- 80/tcp open http
|
||||
-- |_ html-title.nse: Go ahead and ScanMe!
|
||||
-- |_ http-title.nse: Go ahead and ScanMe!
|
||||
|
||||
author = "Diman Todorov"
|
||||
|
||||
@@ -66,7 +66,7 @@ action = function(host, port)
|
||||
result = data.body
|
||||
else
|
||||
-- debug msg and no output; or no debug msg and some output if we were redirected.
|
||||
if not redir then stdnse.print_debug( "html-title.nse: %s did not respond with any data.", host.targetname or host.ip ) end
|
||||
if not redir then stdnse.print_debug( "http-title.nse: %s did not respond with any data.", host.targetname or host.ip ) end
|
||||
return (redir and ("%s %s no page was returned."):format( redir, (loc and ", but") or "and" )) or nil
|
||||
end
|
||||
|
||||
@@ -76,7 +76,7 @@ action = function(host, port)
|
||||
if title and title ~= "" then
|
||||
result = string.gsub(title , "[\n\r\t]", "")
|
||||
if string.len(title) > 65 then
|
||||
stdnse.print_debug("html-title.nse: (%s) Title got truncated!", host.targetname or host.ip );
|
||||
stdnse.print_debug("http-title.nse: (%s) Title got truncated!", host.targetname or host.ip );
|
||||
result = string.sub(result, 1, 62) .. "..."
|
||||
end
|
||||
else
|
||||
@@ -177,7 +177,7 @@ function is_vhost( rhost, host )
|
||||
local status, answer = dns.query( rhost, opts )
|
||||
|
||||
if not status then
|
||||
stdnse.print_debug( "html-title.nse: DNS query failed for target %s. Query was: %s. Error: %s", host.targetname or host.ip, rhost, answer or "nil" )
|
||||
stdnse.print_debug( "http-title.nse: DNS query failed for target %s. Query was: %s. Error: %s", host.targetname or host.ip, rhost, answer or "nil" )
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
description = [[
|
||||
Checks for disallowed entries in <code>robots.txt</code>.
|
||||
Checks for disallowed entries in <code>/robots.txt</code> on a web server.
|
||||
|
||||
The higher the verbosity or debug level, the more disallowed entries are shown.
|
||||
]]
|
||||
@@ -7,7 +7,7 @@ The higher the verbosity or debug level, the more disallowed entries are shown.
|
||||
---
|
||||
--@output
|
||||
-- 80/tcp open http syn-ack
|
||||
-- | robots.txt: has 156 disallowed entries (40 shown)
|
||||
-- | http-robots.txt: 156 disallowed entries (40 shown)
|
||||
-- | /news?output=xhtml& /search /groups /images /catalogs
|
||||
-- | /catalogues /news /nwshp /news?btcid=*& /news?btaid=*&
|
||||
-- | /setnewsprefs? /index.html? /? /addurl/image? /pagead/ /relpage/
|
||||
@@ -103,6 +103,6 @@ action = function(host, port)
|
||||
local shown = (detail == 0 or detail == dis_count)
|
||||
and "\n" or '(' .. detail .. ' shown)\n'
|
||||
|
||||
return "has " .. dis_count .. " disallowed " .. noun ..
|
||||
return dis_count .. " disallowed " .. noun ..
|
||||
shown .. table.concat(output, ' ', 1, detail)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user