mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Remove some verbosity in the output of http-favicon.nse. There's no need
to say "Found favicon from". Only print out the digest of an unrecognized icon with some verbosity.
This commit is contained in:
parent
972533bca9
commit
da8903dad9
1 changed files with 5 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ Gets the favicon.ico from the root of a web service and tries to enumerate it
|
|||
-- @args favicon.uri Uri that will be requested for favicon
|
||||
-- @args favicon.root Webserver path to search for favicon
|
||||
-- @output
|
||||
-- |_ http-favicon: Found favicon from Socialtext
|
||||
-- |_ http-favicon: Socialtext
|
||||
|
||||
-- HTTP default favicon enumeration script
|
||||
-- rev 1.2 (2009-03-11)
|
||||
|
|
@ -91,9 +91,11 @@ action = function(host, port)
|
|||
md5sum=string.upper(stdnse.tohex(openssl.md5(answer.body)))
|
||||
match=favicondb[md5sum]
|
||||
if match then
|
||||
result = result .. "Found favicon from " .. match .. "."
|
||||
result = match
|
||||
else
|
||||
result="Unknown favicon MD5: " .. md5sum
|
||||
if nmap.verbosity() > 0 then
|
||||
result = "Unknown favicon MD5: " .. md5sum
|
||||
end
|
||||
end
|
||||
else
|
||||
stdnse.print_debug( 1, "No favicon found.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue