mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
If you have trouble updating after this revision you need to follow these instructions. You have probably just seen an error like this: svn: URL 'svn://svn.insecure.org/nping' of existing directory 'nping' does not match expected URL 'svn://svn.insecure.org/nmap/nping' This is caused by the replacement of SVN externals. Here's what you need to do. First, save any local changes you might have in the nping, nsock, nbase, ncat, and zenmap directories. (For example by running "cd nping; svn diff > ../nping.diff".) If you don't have any local changes you can skip this step. Then run these commands: rm -rf nping/ nsock/ nbase/ ncat/ zenmap/ svn update svn cleanup If all else fails, you can just delete your whole working directory and check out anew: svn co --username guest --password "" svn://svn.insecure.org/nmap There may be further discussion in the mailing list thread at http://seclists.org/nmap-dev/2011/q4/303.
57 lines
1.8 KiB
Plaintext
57 lines
1.8 KiB
Plaintext
++++++++++++++++++++++++++
|
|
| NPING USAGE EXAMPLES |
|
|
++++++++++++++++++++++++++
|
|
|
|
|
|
# These can be run with no privileges ******************************************
|
|
|
|
/* Do simple TCP connect()s to one host */
|
|
nping --tcp-connect google.com
|
|
|
|
/* Do simple TCP connect()s to multiple hosts */
|
|
nping --tcp-connect google.com ask.com yahoo.com bing.com
|
|
|
|
/* Send an UDP packet with 100 bytes of random data */
|
|
nping --udp google.com -p 53 --data-length 100
|
|
|
|
/* Try to TCP connect() to a range of ports */
|
|
nping --tcp-connect google.com -p75-85 -c 1
|
|
|
|
# These require root access ****************************************************
|
|
|
|
# Send TCP Syn with the ECN flag also set
|
|
sudo nping --tcp google.com --flags syn,ecn -p80,443
|
|
|
|
# Send UDP packet with a bogus checksum from port 1337
|
|
sudo nping --udp --badsum --source-port 1337 -p 53 google.com -v6
|
|
|
|
# Send ARP requests to 192.168.1.1
|
|
sudo nping --arp 192.168.1.1
|
|
|
|
# Send ARP requests to all host in network 192.168.1.0 (inter-probe delay = 100ms)
|
|
sudo nping --arp 192.168.1.0/24 --delay 100
|
|
|
|
# Send 300 TCP packets at a rate of 100pkts/sec
|
|
sudo nping --tcp google.com --rate 100 -c 300
|
|
|
|
# Send ICMP echo request wit custom ID and Seq fields
|
|
sudo nping google.com --icmp --icmp-type echo --icmp-id 31337 --icmp-seq 1
|
|
|
|
# Send ICMP echo reply
|
|
sudo nping google.com --icmp --icmp-type echo-reply
|
|
|
|
# Send ICMP Parameter problem with custom pointer
|
|
sudo nping google.com --icmp --icmp-type parameter-problem --icmp-param-pointer 9
|
|
|
|
# Send ICMP Source Quench
|
|
sudo nping google.com --icmp --icmp-type source-quench -v6
|
|
|
|
# Send ICMP Time Exceeded because time exceeded during reassembly
|
|
sudo nping google.com --icmp --icmp-type te --icmp-code frag-exc -v5
|
|
|
|
# Send ICMP Router Advertising with 2 entries
|
|
sudo nping google.com --icmp --icmp-type 9 --icmp-advert-entry 1.1.1.1,300 --icmp-advert-entry 33.33.33.33,12345 -v6
|
|
|
|
|
|
|