mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fix some nonstandard NSEdoc
This commit is contained in:
@@ -133,7 +133,7 @@ end
|
|||||||
--- Return the mean and sample standard deviation of an array, using the
|
--- Return the mean and sample standard deviation of an array, using the
|
||||||
-- algorithm from Knuth Vol. 2, Section 4.2.2.
|
-- algorithm from Knuth Vol. 2, Section 4.2.2.
|
||||||
--
|
--
|
||||||
-- @params t An array-style table of values
|
-- @param t An array-style table of values
|
||||||
-- @return The mean of the values
|
-- @return The mean of the values
|
||||||
-- @return The standard deviation of the values
|
-- @return The standard deviation of the values
|
||||||
function mean_stddev(t)
|
function mean_stddev(t)
|
||||||
|
|||||||
@@ -549,9 +549,9 @@ end
|
|||||||
--@param id Packet id.
|
--@param id Packet id.
|
||||||
--@param classID Reference type id of the class.
|
--@param classID Reference type id of the class.
|
||||||
--@param methodID ID of the static method to call.
|
--@param methodID ID of the static method to call.
|
||||||
--@numberOfArguments Number of method arguments.
|
--@param numberOfArguments Number of method arguments.
|
||||||
--@arguments Already packed arguments.
|
--@param arguments Already packed arguments.
|
||||||
--@options Invocation options.
|
--@param options Invocation options.
|
||||||
--@return (status, data) If status is false data contains an error string, else it contains a reply data and needs to be parsed manually.
|
--@return (status, data) If status is false data contains an error string, else it contains a reply data and needs to be parsed manually.
|
||||||
function invokeStaticMethod(socket,id,classID,methodID,numberOfArguments,arguments,options)
|
function invokeStaticMethod(socket,id,classID,methodID,numberOfArguments,arguments,options)
|
||||||
local params
|
local params
|
||||||
@@ -582,8 +582,8 @@ end
|
|||||||
--@param classID Reference type id of the class.
|
--@param classID Reference type id of the class.
|
||||||
--@param threadID The thread in which to invoke the constructor.
|
--@param threadID The thread in which to invoke the constructor.
|
||||||
--@param methodID The constructor to invoke.
|
--@param methodID The constructor to invoke.
|
||||||
--@numberOfArguments Number of constructor arguments.
|
--@param numberOfArguments Number of constructor arguments.
|
||||||
--@arguments Already packed arguments.
|
--@param arguments Already packed arguments.
|
||||||
--@return (status, objectID) If status is false data contains an error string, else it contains a reference ID of the newly created object.
|
--@return (status, objectID) If status is false data contains an error string, else it contains a reference ID of the newly created object.
|
||||||
function newClassInstance(socket,id,classID,threadID,methodID,numberOfArguments,arguments)
|
function newClassInstance(socket,id,classID,threadID,methodID,numberOfArguments,arguments)
|
||||||
local params
|
local params
|
||||||
@@ -668,7 +668,7 @@ end
|
|||||||
--@param classID The class type.
|
--@param classID The class type.
|
||||||
--@param methodID ID of the method to invoke.
|
--@param methodID ID of the method to invoke.
|
||||||
--@param numberOfArguments Number of method arguments.
|
--@param numberOfArguments Number of method arguments.
|
||||||
--@arguments Already packed arguments.
|
--@param arguments Already packed arguments.
|
||||||
--@return (status, data) If status is false data contains an error string, else it contains a reply data and needs to be parsed manually.
|
--@return (status, data) If status is false data contains an error string, else it contains a reply data and needs to be parsed manually.
|
||||||
function invokeObjectMethod(socket,id,objectID,threadID,classID,methodID,numberOfArguments,arguments)
|
function invokeObjectMethod(socket,id,objectID,threadID,classID,methodID,numberOfArguments,arguments)
|
||||||
local params
|
local params
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ end
|
|||||||
-- referent_id was '0', then this function doesn't unmarshall
|
-- referent_id was '0', then this function doesn't unmarshall
|
||||||
-- anything.
|
-- anything.
|
||||||
--@return The new position
|
--@return The new position
|
||||||
--@reutrn The result. For HEAD the result is either <code>true</code> for valid
|
--@return The result. For HEAD the result is either <code>true</code> for valid
|
||||||
-- pointers or <code>false</code> for null pointers. For BODY or ALL,
|
-- pointers or <code>false</code> for null pointers. For BODY or ALL,
|
||||||
-- the result is <code>nil</code> for null pointers, or the data for
|
-- the result is <code>nil</code> for null pointers, or the data for
|
||||||
-- valid pointers.
|
-- valid pointers.
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ categories = {"discovery", "version"}
|
|||||||
|
|
||||||
portrule = shortport.version_port_or_service(47808, "bacnet", {"udp","tcp"})
|
portrule = shortport.version_port_or_service(47808, "bacnet", {"udp","tcp"})
|
||||||
|
|
||||||
---
|
--
|
||||||
-- Table to look up the Vendor Name based on Vendor ID
|
-- Table to look up the Vendor Name based on Vendor ID
|
||||||
-- Table data from http://www.bacnet.org/VendorID/BACnet%20Vendor%20IDs.htm
|
-- Table data from http://www.bacnet.org/VendorID/BACnet%20Vendor%20IDs.htm
|
||||||
-- Fetched on 9/26/2015
|
-- Fetched on 9/26/2015
|
||||||
--
|
--
|
||||||
-- @key vennum Vendor number parsed out of the BACNet packet
|
-- key is vendor number parsed out of the BACNet packet
|
||||||
local vendor_id = {
|
local vendor_id = {
|
||||||
[0] = "ASHRAE",
|
[0] = "ASHRAE",
|
||||||
[1] = "NIST",
|
[1] = "NIST",
|
||||||
|
|||||||
@@ -63,8 +63,7 @@ portrule = shortport.version_port_or_service(44818, {"EtherNet-IP-2", "EtherNet/
|
|||||||
-- Table data from Wireshark dissector ( link to unofficial mirror )
|
-- Table data from Wireshark dissector ( link to unofficial mirror )
|
||||||
-- https://github.com/avsej/wireshark/blob/master/epan/dissectors/packet-enip.c
|
-- https://github.com/avsej/wireshark/blob/master/epan/dissectors/packet-enip.c
|
||||||
-- Fetched on 4/19/2014
|
-- Fetched on 4/19/2014
|
||||||
|
-- key is vendor number parsed out of the EtherNet/IP packet
|
||||||
-- @key vennum Vendor number parsed out of the EtherNet/IP packet
|
|
||||||
local vendor_id = {
|
local vendor_id = {
|
||||||
[0] = "Reserved",
|
[0] = "Reserved",
|
||||||
[1] = "Rockwell Automation/Allen-Bradley",
|
[1] = "Rockwell Automation/Allen-Bradley",
|
||||||
@@ -1573,7 +1572,7 @@ end
|
|||||||
-- https://github.com/avsej/wireshark/blob/master/epan/dissectors/packet-enip.c
|
-- https://github.com/avsej/wireshark/blob/master/epan/dissectors/packet-enip.c
|
||||||
-- Fetched on 4/19/2014
|
-- Fetched on 4/19/2014
|
||||||
--
|
--
|
||||||
-- @key devtype Device ID number parsed out of the EtherNet/IP packet
|
-- key is Device ID number parsed out of the EtherNet/IP packet
|
||||||
local device_type = {
|
local device_type = {
|
||||||
[0] = "Generic Device (deprecated)",
|
[0] = "Generic Device (deprecated)",
|
||||||
[1] = "Control Station (deprecated)",
|
[1] = "Control Station (deprecated)",
|
||||||
|
|||||||
@@ -64,8 +64,7 @@ portrule = shortport.port_or_service(5094, "hart-ip", "tcp")
|
|||||||
-- Returns "Unknown Device Type" if Expanded Device Type not recognized
|
-- Returns "Unknown Device Type" if Expanded Device Type not recognized
|
||||||
-- Table data from Common Tables Specification, HCF_SPEC-183, FCG TS20183, Revision 26.0
|
-- Table data from Common Tables Specification, HCF_SPEC-183, FCG TS20183, Revision 26.0
|
||||||
-- 5.1 Table 1. Expanded Device Type Codes
|
-- 5.1 Table 1. Expanded Device Type Codes
|
||||||
|
-- key is number-represented Device Type Code parsed out of the HART-IP packet
|
||||||
-- @key expdevtypnum number-represented Device Type Code parsed out of the HART-IP packet
|
|
||||||
local productName = {
|
local productName = {
|
||||||
[4560] = "iTEMP TMT72",
|
[4560] = "iTEMP TMT72",
|
||||||
[45075] = "GW PL ETH/UNI-BUS",
|
[45075] = "GW PL ETH/UNI-BUS",
|
||||||
@@ -80,8 +79,7 @@ end
|
|||||||
-- Returns "Unknown Manufacturer" if Manufacturer ID not recognized
|
-- Returns "Unknown Manufacturer" if Manufacturer ID not recognized
|
||||||
-- Table data from Common Tables Specification, HCF_SPEC-183, FCG TS20183, Revision 26.0
|
-- Table data from Common Tables Specification, HCF_SPEC-183, FCG TS20183, Revision 26.0
|
||||||
-- 5.8 Table 8. Manufacturer Identification Codes
|
-- 5.8 Table 8. Manufacturer Identification Codes
|
||||||
|
-- key is number-represented Manufacturer ID parsed out of the HART-IP packet
|
||||||
-- @key manidnum number-represented Manufacturer ID parsed out of the HART-IP packet
|
|
||||||
local manufacturerName = {
|
local manufacturerName = {
|
||||||
[176] = "Phoenix Contact",
|
[176] = "Phoenix Contact",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ The target must be specified by DNS name, not IP address.
|
|||||||
-- @usage
|
-- @usage
|
||||||
-- nmap --script http-robtex-shared-ns
|
-- nmap --script http-robtex-shared-ns
|
||||||
--
|
--
|
||||||
-- @outt
|
-- @output
|
||||||
-- Host script results:
|
-- Host script results:
|
||||||
-- | http-robtex-shared-ns:
|
-- | http-robtex-shared-ns:
|
||||||
-- | example.edu
|
-- | example.edu
|
||||||
@@ -23,7 +23,7 @@ The target must be specified by DNS name, not IP address.
|
|||||||
-- | example.edu
|
-- | example.edu
|
||||||
-- |_ example.net
|
-- |_ example.net
|
||||||
-- (some results omitted for brevity)
|
-- (some results omitted for brevity)
|
||||||
--
|
|
||||||
-- TODO:
|
-- TODO:
|
||||||
-- * Add list of nameservers, or group output accordingly
|
-- * Add list of nameservers, or group output accordingly
|
||||||
--
|
--
|
||||||
|
|||||||
@@ -40,22 +40,16 @@ various names of the form <name>.example.com are tried.
|
|||||||
-- | www.example.com: 200
|
-- | www.example.com: 200
|
||||||
-- | docs.example.com: 302 -> https://www.example.com/docs/
|
-- | docs.example.com: 302 -> https://www.example.com/docs/
|
||||||
-- |_images.example.com: 200
|
-- |_images.example.com: 200
|
||||||
--
|
|
||||||
-- @internal: see http://seclists.org/nmap-dev/2010/q4/401 and http://seclists.org/nmap-dev/2010/q4/445
|
-- see http://seclists.org/nmap-dev/2010/q4/401 and http://seclists.org/nmap-dev/2010/q4/445
|
||||||
--
|
-- todo feature: add option report and implement it
|
||||||
--
|
-- after stripping sensitive info like ip, domain names, hostnames
|
||||||
-- @todo feature: add option report and implement it
|
|
||||||
-- @internal after stripping sensitive info like ip, domain names, hostnames
|
|
||||||
-- and redirection targets from the result, append it to a file
|
-- and redirection targets from the result, append it to a file
|
||||||
-- that can then be uploaded. If enough info is gathered, the names
|
-- that can then be uploaded. If enough info is gathered, the names
|
||||||
-- will be weighted. It can be shared with metasploit
|
-- will be weighted. It can be shared with metasploit
|
||||||
--
|
-- todo feature: fill nsedoc
|
||||||
-- @todo feature: fill nsedoc
|
-- todo feature: register results for other scripts (external help needed)
|
||||||
--
|
-- todo feature: grow names list (external help needed)
|
||||||
-- @todo feature: register results for other scripts (external help needed)
|
|
||||||
--
|
|
||||||
-- @todo feature: grow names list (external help needed)
|
|
||||||
--
|
|
||||||
|
|
||||||
author = "Carlos Pantelides"
|
author = "Carlos Pantelides"
|
||||||
|
|
||||||
|
|||||||
@@ -68,8 +68,9 @@ end
|
|||||||
|
|
||||||
--- Compares two screens and returns the difference as a percentage
|
--- Compares two screens and returns the difference as a percentage
|
||||||
--
|
--
|
||||||
-- @param1 the original screen
|
-- @param the original screen
|
||||||
-- @param2 the screen to compare to
|
-- @param the screen to compare to
|
||||||
|
-- @return percent difference
|
||||||
local function screen_diff( orig_screen, current_screen )
|
local function screen_diff( orig_screen, current_screen )
|
||||||
if orig_screen == current_screen then return 100 end
|
if orig_screen == current_screen then return 100 end
|
||||||
if #orig_screen == 0 or #current_screen == 0 then return 0 end
|
if #orig_screen == 0 or #current_screen == 0 then return 0 end
|
||||||
|
|||||||
@@ -143,9 +143,6 @@ so-called "Custom data".
|
|||||||
-- | file:/C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/jsse.jar
|
-- | file:/C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/jsse.jar
|
||||||
-- | file:/C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/oscache.jar
|
-- | file:/C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/oscache.jar
|
||||||
-- |_ file:/C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/
|
-- |_ file:/C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/
|
||||||
--
|
|
||||||
--
|
|
||||||
--@version 0.5
|
|
||||||
|
|
||||||
author = "Martin Holst Swende"
|
author = "Martin Holst Swende"
|
||||||
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
|
||||||
|
|||||||
@@ -81,8 +81,9 @@ end
|
|||||||
|
|
||||||
--- Compares two screens and returns the difference as a percentage
|
--- Compares two screens and returns the difference as a percentage
|
||||||
--
|
--
|
||||||
-- @param1 the original screen
|
-- @param the original screen
|
||||||
-- @param2 the screen to compare to
|
-- @param the screen to compare to
|
||||||
|
-- @return percent difference
|
||||||
local function screen_diff( orig_screen, current_screen )
|
local function screen_diff( orig_screen, current_screen )
|
||||||
if orig_screen == current_screen then return 100 end
|
if orig_screen == current_screen then return 100 end
|
||||||
if #orig_screen == 0 or #current_screen == 0 then return 0 end
|
if #orig_screen == 0 or #current_screen == 0 then return 0 end
|
||||||
|
|||||||
Reference in New Issue
Block a user