1
0
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:
patrik
2012-01-29 15:16:05 +00:00
parent dc5dfa84fc
commit 46e25ee97c
2 changed files with 4 additions and 5 deletions

View File

@@ -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 {}

View File

@@ -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 )