diff --git a/scripts/targets-ipv6-multicast-echo.nse b/scripts/targets-ipv6-multicast-echo.nse index 9cc5f9395..b319d7035 100644 --- a/scripts/targets-ipv6-multicast-echo.nse +++ b/scripts/targets-ipv6-multicast-echo.nse @@ -5,10 +5,9 @@ Do a very fast host discovery on link-local IPv6 network. --- -- @usage --- ./nmap -6 --script=targets-ipv6-multicast-echo.nse --script-args 'newtargets,interface=eth0,ipv6.src=2001:da8:215:3320:223:aeff:fe5d:3b10' -sL +-- ./nmap -6 --script=targets-ipv6-multicast-echo.nse --script-args 'newtargets,interface=eth0' -sL -- @args newtargets If true, add discovered targets to the scan queue. -- @args targets-ipv6-multicast-echo.interface The interface to use for host discovery. --- @args ipv6.src The source IPv6 address in the probe packets. author = "David and Weilin" @@ -57,7 +56,7 @@ action = function() return false end local src_mac = if_nfo.mac - local src_ip6 = packet.ip6tobin(stdnse.get_script_args("ipv6.src")) or packet.ip6tobin(if_nfo.address) + local src_ip6 = packet.ip6tobin(if_nfo.address) local dst_mac = packet.mactobin("33:33:00:00:00:01") local dst_ip6 = packet.ip6tobin("ff02::1") local id_set = {} diff --git a/scripts/targets-ipv6-multicast-invalid-dst.nse b/scripts/targets-ipv6-multicast-invalid-dst.nse index 7ade45926..4fdf30e7a 100644 --- a/scripts/targets-ipv6-multicast-invalid-dst.nse +++ b/scripts/targets-ipv6-multicast-invalid-dst.nse @@ -5,10 +5,9 @@ Do a very fast host discovery on link-local IPv6 network. --- -- @usage --- ./nmap -6 --script=targets-ipv6-multicast-invalid-dst.nse --script-args 'newtargets,interface=eth0,ipv6=2001:da8:215:3320:223:aeff:fe5d:3b10' -sP +-- ./nmap -6 --script=targets-ipv6-multicast-invalid-dst.nse --script-args 'newtargets,interface=eth0' -sP -- @args newtargets If true, add discovered targets to the scan queue. -- @args targets-ipv6-multicast-invalid-dst.interface The interface to use for host discovery. --- @args ipv6.src The source IPv6 address in the probe packets. author = "David and Weilin" @@ -68,7 +67,7 @@ action = function() return false end local src_mac = if_nfo.mac - local src_ip6 = packet.ip6tobin(stdnse.get_script_args("ipv6.src")) or packet.ip6tobin(if_nfo.address) + local src_ip6 = packet.ip6tobin(if_nfo.address) local dst_mac = packet.mactobin("33:33:00:00:00:01") local dst_ip6 = packet.ip6tobin("ff02::1") local id_set = {} diff --git a/scripts/targets-ipv6-multicast-slaac.nse b/scripts/targets-ipv6-multicast-slaac.nse index 1982b8b55..ce273bdea 100644 --- a/scripts/targets-ipv6-multicast-slaac.nse +++ b/scripts/targets-ipv6-multicast-slaac.nse @@ -5,7 +5,7 @@ Do a very fast host discovery on link-local IPv6 network. --- -- @usage --- ./nmap -6 --script=slaac_host_discovery.nse --script-args 'newtargets,interface=eth0,ipv6="2001:da8:215:3320:223:aeff:fe5d:3b10"' -sP +-- ./nmap -6 --script=slaac_host_discovery.nse --script-args 'newtargets,interface=eth0' -sP -- @args targets-ipv6-multicast-slaac.interface The interface to use for host discovery. author = "David and Weilin" @@ -96,7 +96,7 @@ action = function() return false end local src_mac = if_nfo.mac - local src_ip6 = packet.ip6tobin(stdnse.get_script_args("ipv6.src")) or packet.ip6tobin(if_nfo.address) + local src_ip6 = packet.ip6tobin(if_nfo.address) local dst_mac = packet.mactobin("33:33:00:00:00:01") local dst_ip6 = packet.ip6tobin("ff02::1") local id_set = {}