trimstray / sandmap

Nmap on steroids. Simple CLI with the ability to run pure Nmap engine, 31 modules with 459 scan profiles.
GNU General Public License v3.0
1.57k stars 217 forks source link

Error in the excess number of commands (NSE, modules) #61

Closed trimstray closed 6 years ago

trimstray commented 6 years ago

Status: In Progress

Error in the excess number of commands (NSE, modules):

cli(nse_broadcast)> init 2 --args
broadcast-dhcp-discover.timeout (10s): 1s

terminal:
> internal

command:
> nmap --script=broadcast-dhcp-discover --script-args broadcast-dhcp-discover.timeout="1s" 127.0.0.1

Starting Nmap 7.70 ( https://nmap.org ) at 2018-05-22 11:57 CEST
Pre-scan script results:
| broadcast-dhcp-discover: 
|   Response 1 of 1: 
|     IP Offered: 192.168.252.100
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 192.168.252.10
|     IP Address Lease Time: 5m00s
|     Subnet Mask: 255.255.255.0
|     Router: 192.168.252.1
|     Domain Name Server: 10.240.30.2
|_    Domain Name: example.com
Nmap scan report for localhost (127.0.0.1)
[...]

Nmap done: 1 IP address (1 host up) scanned in 2.06 seconds

Result: pass

terminal:
> internal

command:
> nmap --script=broadcast-dhcp6-discover -6 127.0.0.1

Starting Nmap 7.70 ( https://nmap.org ) at 2018-05-22 11:57 CEST
Warning: Hostname 127.0.0.1 resolves, but not to any IPv6 address. Try scanning without -6
Failed to resolve "127.0.0.1".
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 5.26 seconds

Result: pass