From a24a02b0877ecdb3a65662f9705bdce29e7e6043 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 3 Aug 2017 22:05:18 +0000 Subject: [PATCH] Fix up NSEdoc for NAT-PMP scripts and add cross references. --- scripts/nat-pmp-info.nse | 19 ++++++++++--------- scripts/nat-pmp-mapport.nse | 7 ++++--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/scripts/nat-pmp-info.nse b/scripts/nat-pmp-info.nse index a7f7f36c5..6351804d1 100644 --- a/scripts/nat-pmp-info.nse +++ b/scripts/nat-pmp-info.nse @@ -5,15 +5,15 @@ local shortport = require "shortport" description = [[ Gets the routers WAN IP using the NAT Port Mapping Protocol (NAT-PMP). The NAT-PMP protocol is supported by a broad range of routers including: - - Apple AirPort Express - - Apple AirPort Extreme - - Apple Time Capsule - - DD-WRT - - OpenWrt v8.09 or higher, with MiniUPnP daemon - - pfSense v2.0 - - Tarifa (firmware) (Linksys WRT54G/GL/GS) - - Tomato Firmware v1.24 or higher. (Linksys WRT54G/GL/GS and many more) - - Peplink Balance +* Apple AirPort Express +* Apple AirPort Extreme +* Apple Time Capsule +* DD-WRT +* OpenWrt v8.09 or higher, with MiniUPnP daemon +* pfSense v2.0 +* Tarifa (firmware) (Linksys WRT54G/GL/GS) +* Tomato Firmware v1.24 or higher. (Linksys WRT54G/GL/GS and many more) +* Peplink Balance ]] --- @@ -24,6 +24,7 @@ The NAT-PMP protocol is supported by a broad range of routers including: -- |_ WAN IP: 192.0.2.13 -- @xmloutput -- 192.0.2.13 +-- @see nat-pmp-mapport.nse author = "Patrik Karlsson" license = "Same as Nmap--See https://nmap.org/book/man-legal.html" diff --git a/scripts/nat-pmp-mapport.nse b/scripts/nat-pmp-mapport.nse index f4f45c9df..affc13584 100644 --- a/scripts/nat-pmp-mapport.nse +++ b/scripts/nat-pmp-mapport.nse @@ -6,9 +6,9 @@ local table = require "table" description = [[ Maps a WAN port on the router to a local port on the client using the NAT Port Mapping Protocol (NAT-PMP). It supports the following operations: -o map - maps a new external port on the router to an internal port of the requesting IP -o unmap - unmaps a previously mapped port for the requesting IP -o unmapall - unmaps all previously mapped ports for the requesting IP +* map - maps a new external port on the router to an internal port of the requesting IP +* unmap - unmaps a previously mapped port for the requesting IP +* unmapall - unmaps all previously mapped ports for the requesting IP ]] --- @@ -41,6 +41,7 @@ o unmapall - unmaps all previously mapped ports for the requesting IP -- -- @args nat-pmp-mapport.lifetime the lifetime of the mapping in seconds (default: 3600) -- +-- @see nat-pmp-info.nse author = "Patrik Karlsson" license = "Same as Nmap--See https://nmap.org/book/man-legal.html"