mirror of
https://github.com/nmap/nmap.git
synced 2026-01-28 00:59:04 +00:00
fixed indentation and added some missing documentation
This commit is contained in:
@@ -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 {}
|
||||
|
||||
@@ -9,7 +9,7 @@ ctrl+break is issued, by setting the timeout to 0.
|
||||
|
||||
---
|
||||
-- @usage
|
||||
-- nmap --script url-snarf
|
||||
-- nmap --script url-snarf -e <interface>
|
||||
--
|
||||
-- @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 )
|
||||
|
||||
Reference in New Issue
Block a user