Nmap broadcast-pc-duo NSE Script
This page contains detailed information about how to use the broadcast-pc-duo NSE script. For list of all NSE scripts, visit the Nmap NSE Library.
Select: |
---|
Script Overview
Script source code: https://github.com/nmap/nmap/tree/master/scripts/broadcast-pc-duo.nse
Script categories: broadcast, safe
Target service / protocol: -
Target network port(s): -
List of CVEs: -
Script Description
The broadcast-pc-duo.nse script discovers PC-DUO remote control hosts and gateways running on a LAN by sending a special broadcast UDP probe.
Broadcast-pc-duo NSE Script Arguments
This is a full list of arguments supported by the broadcast-pc-duo.nse script:
broadcast-pc-duo.timeoutSpecifies the amount of seconds to sniff the network interface. (default varies according to timing. -T3 = 5s)
- - -
To use this script argument, add it to Nmap command line like in this example:
nmap --script=broadcast-pc-duo --script-args broadcast-pc-duo.timeout=value <target>
Broadcast-pc-duo NSE Script Example Usage
Here's an example of how to use the broadcast-pc-duo.nse script:
nmap --script broadcast-pc-duo
Broadcast-pc-duo NSE Script Example Output
Here's a sample output from the broadcast-pc-duo.nse script:
Pre-scan script results:
| broadcast-pc-duo:
| PC-Duo Gateway Server
| 10.0.200.113 - WIN2K3SRV-1
| PC-Duo Hosts
|_ 10.0.200.113 - WIN2K3SRV-1
Broadcast-pc-duo NSE Script Example XML Output
There is no sample XML output for this module. However, by providing the -oX <file>
option, Nmap will produce a XML output and save it in the file.xml
file.
Author
- Patrik Karlsson
References
- https://nmap.org/nsedoc/scripts/broadcast-pc-duo.html
- https://github.com/nmap/nmap/tree/master/scripts/broadcast-pc-duo.nse
See Also
Related NSE scripts to the broadcast-pc-duo.nse script:
- broadcast-ataoe-discover.nse
- broadcast-avahi-dos.nse
- broadcast-bjnp-discover.nse
- broadcast-db2-discover.nse
- broadcast-dhcp6-discover.nse
- broadcast-dhcp-discover.nse
- broadcast-dns-service-discovery.nse
- broadcast-dropbox-listener.nse
- broadcast-eigrp-discovery.nse
- broadcast-hid-discoveryd.nse
- broadcast-igmp-discovery.nse
- broadcast-jenkins-discover.nse
- broadcast-listener.nse
- broadcast-ms-sql-discover.nse
- broadcast-netbios-master-browser.nse
- broadcast-networker-discover.nse
- broadcast-novell-locate.nse
- broadcast-ospf2-discover.nse
- broadcast-pc-anywhere.nse
- broadcast-pim-discovery.nse
- broadcast-ping.nse
- broadcast-pppoe-discover.nse
- broadcast-rip-discover.nse
- broadcast-ripng-discover.nse
- broadcast-sonicwall-discover.nse
- broadcast-sybase-asa-discover.nse
- broadcast-tellstick-discover.nse
- broadcast-upnp-info.nse
- broadcast-versant-locate.nse
- broadcast-wake-on-lan.nse
- broadcast-wpad-discover.nse
- broadcast-wsdd-discover.nse
- broadcast-xdmcp-discover.nse
Visit Nmap NSE Library for more scripts.
The broadcast-pc-duo.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.
Failed to send broadcast request
Here is a relevant code snippet related to the "Failed to send broadcast request" error message:
41: socket:set_timeout(500)
42:
43: for i=1,2 do
44: local status = socket:sendto(probe.host, probe.port, probe.data)
45: if ( not(status) ) then
46: return stdnse.format_output(false, "Failed to send broadcast request")
47: end
48: end
49:
50: local timeout = TIMEOUT or ( 20 / ( nmap.timing_level() + 1 ) )
51: local stime = os.time()
Failed to get socket information
Here is a relevant code snippet related to the "Failed to get socket information" error message:
57: local srvname = data:match(probe.match)
58: if ( srvname ) then
59: local status, _, _, rhost, _ = socket:get_info()
60: if ( not(status) ) then
61: socket:close()
62: return false, "Failed to get socket information"
63: end
64: -- avoid duplicates
65: hosts[rhost] = srvname
66: end
67: end
Version
This page has been created based on Nmap version 7.92.
Go back to menu.