1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-18 13:39:02 +00:00

Fix a few NSEdoc issues

This commit is contained in:
dmiller
2015-11-02 16:02:51 +00:00
parent 5e2bb7ad86
commit 7f5a75ce5c
4 changed files with 25 additions and 33 deletions

View File

@@ -1,39 +1,34 @@
---
--A very basic IKE library.
--
--The current functionality includes:
-- 1. Generating a Main or Aggressive Mode IKE request packet with a variable amount of transforms and a vpn group.
-- 2. Sending a packet
-- 3. Receiving the response
-- 4. Parsing the response for VIDs
-- 5. Searching for the VIDs in 'ike-fingerprints.lua'
-- 6. returning a parsed info table
--
--This library is meant for extension, which could include:
-- 1. complete parsing of the response packet (might allow for better fingerprinting)
-- 2. adding more options to the request packet
-- vendor field (might give better fingerprinting of services, e.g. Checkpoint)
-- 3. backoff pattern analyses
-- ...
--
--An a implementation resembling 'ike-scan' could be built.
--
--@author Jesper Kueckelhahn
--@license Same as Nmap--See http://nmap.org/book/man-legal.html
local _G = require "_G" local _G = require "_G"
local bin = require "bin" local bin = require "bin"
local nmap = require "nmap" local nmap = require "nmap"
local stdnse = require "stdnse" local stdnse = require "stdnse"
local string = require "string" local string = require "string"
local table = require "table" local table = require "table"
description = [[
A very basic IKE library.
The current functionality includes:
1. Generating a Main or Aggressive Mode IKE request packet with a variable amount of transforms and a vpn group.
2. Sending a packet
3. Receiving the response
4. Parsing the response for VIDs
5. Searching for the VIDs in 'ike-fingerprints.lua'
6. returning a parsed info table
This library is meant for extension, which could include:
1. complete parsing of the response packet (might allow for better fingerprinting)
2. adding more options to the request packet
vendor field (might give better fingerprinting of services, e.g. Checkpoint)
3. backoff pattern analyses
...
An a implementation resembling 'ike-scan' could be built.
]]
_ENV = stdnse.module("ike", stdnse.seeall) _ENV = stdnse.module("ike", stdnse.seeall)
author = "Jesper Kueckelhahn"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"discovery", "safe"}
local ENC_METHODS = { local ENC_METHODS = {
["des"] = 0x80010001, ["des"] = 0x80010001,
["3des"] = 0x80010005, ["3des"] = 0x80010005,
@@ -305,13 +300,13 @@ local function lookup(vendor_ids)
end end
---
-- Handle a response packet -- Handle a response packet
-- A very limited response parser -- A very limited response parser
-- Currently only the VIDs are extracted -- Currently only the VIDs are extracted
-- This could be made more advanced to -- This could be made more advanced to
-- allow for fingerprinting via the order -- allow for fingerprinting via the order
-- of the returned headers -- of the returned headers
---
function response(packet) function response(packet)
local resp = { ["mode"] = "", ["info"] = nil, ['vids']={}, ['success'] = false } local resp = { ["mode"] = "", ["info"] = nil, ['vids']={}, ['success'] = false }

View File

@@ -4,8 +4,6 @@
-- @author Martin Holst Swende -- @author Martin Holst Swende
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html -- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
-- --
-- Version 0.2
--
-- @args mongodb.db - the database to use for authentication -- @args mongodb.db - the database to use for authentication
-- Created 01/13/2010 - v0.1 - created by Martin Holst Swende <martin@swende.se> -- Created 01/13/2010 - v0.1 - created by Martin Holst Swende <martin@swende.se>

View File

@@ -24,7 +24,7 @@ author = "Niklaus Schiess <nschiess@ernw.de>, Dominik Schneider <dschneider@ernw
license = "Same as Nmap--See http://nmap.org/book/man-legal.html" license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"discovery", "safe", "broadcast"} categories = {"discovery", "safe", "broadcast"}
-- ---
--@args --@args
-- timeout Max time to wait for a response. (default 3s) -- timeout Max time to wait for a response. (default 3s)
-- newtargets Add found gateways to target list -- newtargets Add found gateways to target list

View File

@@ -72,7 +72,6 @@ gathered keys.
-- | L3: 199.19.117.60 -- | L3: 199.19.117.60
-- | ssh-hostkey: 2048 xuvah-degyp-nabus-zegah-hebur-nopig-bubig-difeg-hisym-rumef-cuxex (RSA) -- | ssh-hostkey: 2048 xuvah-degyp-nabus-zegah-hebur-nopig-bubig-difeg-hisym-rumef-cuxex (RSA)
-- |_ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwVuv2gcr0maaKQ69VVIEv2ob4OxnuI64fkeOnCXD1lUx5tTA+vefXUWEMxgMuA7iX4irJHy2zer0NQ3Z3yJvr5scPgTYIaEOp5Uo/eGFG9Agpk5wE8CoF0e47iCAPHqzlmP2V7aNURLMODb3jVZuI07A2ZRrMGrD8d888E2ORVORv1rYeTYCqcMMoVFmX9l3gWEdk4yx3w5sD8v501Iuyd1v19mPfyhrI5E1E1nl/Xjp5N0/xP2GUBrdkDMxKaxqTPMie/f0dXBUPQQN697a5q+5lBRPhKYOtn6yQKCd9s1Q22nxn72Jmi1RzbMyYJ52FosDT755Qmb46GLrDMaZMQ== -- |_ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwVuv2gcr0maaKQ69VVIEv2ob4OxnuI64fkeOnCXD1lUx5tTA+vefXUWEMxgMuA7iX4irJHy2zer0NQ3Z3yJvr5scPgTYIaEOp5Uo/eGFG9Agpk5wE8CoF0e47iCAPHqzlmP2V7aNURLMODb3jVZuI07A2ZRrMGrD8d888E2ORVORv1rYeTYCqcMMoVFmX9l3gWEdk4yx3w5sD8v501Iuyd1v19mPfyhrI5E1E1nl/Xjp5N0/xP2GUBrdkDMxKaxqTPMie/f0dXBUPQQN697a5q+5lBRPhKYOtn6yQKCd9s1Q22nxn72Jmi1RzbMyYJ52FosDT755Qmb46GLrDMaZMQ==
-- --
--@output --@output
-- Post-scan script results: -- Post-scan script results: