Nmap broadcast-pc-anywhere NSE Script
This page contains detailed information about how to use the broadcast-pc-anywhere 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-anywhere.nse
Script categories: broadcast, safe
Target service / protocol: -
Target network port(s): -
List of CVEs: -
Script Description
The broadcast-pc-anywhere.nse script sends a special broadcast probe to discover PC-Anywhere hosts running on a LAN.
Broadcast-pc-anywhere NSE Script Arguments
This is a full list of arguments supported by the broadcast-pc-anywhere.nse script:
broadcast-pc-anywhere.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-anywhere --script-args broadcast-pc-anywhere.timeout=value <target>
Broadcast-pc-anywhere NSE Script Example Usage
Here's an example of how to use the broadcast-pc-anywhere.nse script:
nmap --script broadcast-pc-anywhere
Broadcast-pc-anywhere NSE Script Example Output
Here's a sample output from the broadcast-pc-anywhere.nse script:
Pre-scan script results:
| broadcast-pc-anywhere:
|_ 10.0.200.113 - WIN2K3SRV-1
Broadcast-pc-anywhere 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-anywhere.html
- https://github.com/nmap/nmap/tree/master/scripts/broadcast-pc-anywhere.nse
See Also
Related NSE scripts to the broadcast-pc-anywhere.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-duo.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-anywhere.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:
37: socket:set_timeout(500)
38:
39: for i=1,2 do
40: local status = socket:sendto(host, port, "NQ")
41: if ( not(status) ) then
42: return stdnse.format_output(false, "Failed to send broadcast request")
43: end
44: end
45:
46: local timeout = TIMEOUT or ( 20 / ( nmap.timing_level() + 1 ) )
47: local responses = {}
Failed to get socket information
Here is a relevant code snippet related to the "Failed to get socket information" error message:
53: local srvname = data:match("^NR([^_]*)_*AHM_3___\0$")
54: if ( srvname ) then
55: local status, _, _, rhost, _ = socket:get_info()
56: if ( not(status) ) then
57: socket:close()
58: return false, "Failed to get socket information"
59: end
60: -- avoid duplicates
61: responses[rhost] = srvname
62: end
63: end
Version
This page has been created based on Nmap version 7.92.
Go back to menu.