From 46e25ee97ce15708a792973acfc4305012aeab6e Mon Sep 17 00:00:00 2001 From: patrik Date: Sun, 29 Jan 2012 15:16:05 +0000 Subject: [PATCH] fixed indentation and added some missing documentation --- scripts/http-auth-finder.nse | 2 +- scripts/url-snarf.nse | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/http-auth-finder.nse b/scripts/http-auth-finder.nse index 75a043c92..a86adddec 100644 --- a/scripts/http-auth-finder.nse +++ b/scripts/http-auth-finder.nse @@ -56,7 +56,7 @@ end action = function(host, port) -- create a new crawler instance - local crawler = httpspider.Crawler:new( host, port, nil, { scriptname = SCRIPT_NAME } ) + local crawler = httpspider.Crawler:new( host, port, nil, { scriptname = SCRIPT_NAME } ) -- create a table entry in the registry nmap.registry.auth_urls = nmap.registry.auth_urls or {} diff --git a/scripts/url-snarf.nse b/scripts/url-snarf.nse index ac5991d5e..cd5b314ff 100644 --- a/scripts/url-snarf.nse +++ b/scripts/url-snarf.nse @@ -9,7 +9,7 @@ ctrl+break is issued, by setting the timeout to 0. --- -- @usage --- nmap --script url-snarf +-- nmap --script url-snarf -e -- -- @output -- | url-snarf: @@ -23,13 +23,12 @@ ctrl+break is issued, by setting the timeout to 0. author = "Patrik Karlsson" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" -categories = {"broadcast", "safe"} +categories = {"safe"} require 'packet' require 'url' -local arg_iface = nmap.get_interface() or - stdnse.get_script_args(SCRIPT_NAME .. ".interface") +local arg_iface = nmap.get_interface() or stdnse.get_script_args(SCRIPT_NAME .. ".interface") prerule = function() local has_interface = ( arg_iface ~= nil )