Nmap Development mailing list archives
Re: Continuous tcp ping?
From: ToddAndMargo <ToddAndMargo () zoho com>
Date: Sun, 27 Aug 2017 23:23:38 -0700
On 08/27/2017 10:31 PM, Fyodor wrote:
On Sun, Aug 27, 2017 at 7:06 PM, ToddAndMargo <ToddAndMargo () zoho com <mailto:ToddAndMargo () zoho com>> wrote:Hi All, Is there a way to use NMap to do a continuous tcp ping of a particular port? I am only after the response timeHi Todd. You would generally use our nping utility for that. It comes with Nmap. Here's an example of sending 3 TCP syn packets to port 80 of scanme.nmap.org <http://scanme.nmap.org>:# nping -tcp -c3 -p 80 scanme.nmap.org <http://scanme.nmap.org> Starting Nping 0.7.40 ( https://nmap.org/nping ) at 2017-08-27 22:28 PDTSENT (0.0456s) TCP 192.168.0.108:49232 <http://192.168.0.108:49232> > 45.33.32.156:80 <http://45.33.32.156:80> S ttl=64 id=9502 iplen=40 seq=1975150814 win=1480 RCVD (0.2278s) TCP 45.33.32.156:80 <http://45.33.32.156:80> > 192.168.0.108:49232 <http://192.168.0.108:49232> SA ttl=52 id=0 iplen=44 seq=3623470103 win=29200 <mss 1460> SENT (1.0459s) TCP 192.168.0.108:49232 <http://192.168.0.108:49232> > 45.33.32.156:80 <http://45.33.32.156:80> S ttl=64 id=9502 iplen=40 seq=1975150814 win=1480 RCVD (1.2477s) TCP 45.33.32.156:80 <http://45.33.32.156:80> > 192.168.0.108:49232 <http://192.168.0.108:49232> SA ttl=52 id=0 iplen=44 seq=3639139057 win=29200 <mss 1460> SENT (2.0478s) TCP 192.168.0.108:49232 <http://192.168.0.108:49232> > 45.33.32.156:80 <http://45.33.32.156:80> S ttl=64 id=9502 iplen=40 seq=1975150814 win=1480 RCVD (2.2678s) TCP 45.33.32.156:80 <http://45.33.32.156:80> > 192.168.0.108:49232 <http://192.168.0.108:49232> SA ttl=52 id=0 iplen=44 seq=3654733783 win=29200 <mss 1460>Max rtt: 219.887ms | Min rtt: 182.099ms | Avg rtt: 201.251ms Raw packets sent: 3 (120B) | Rcvd: 3 (138B) | Lost: 0 (0.00%) Nping done: 1 IP address pinged in 2.32 secondsIf you want to send the packets indefinitely, use -c0. More details: https://nmap.org/nping/Cheers, Fyodor
Works perfect. Had to uninstall nmap and reinstall it to get it. Thank you! -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Computers are like air conditioners. They malfunction when you open windows ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- continuous tcp ping? ToddAndMargo (Aug 25)
- <Possible follow-ups>
- Continuous tcp ping? ToddAndMargo (Aug 27)
- Re: Continuous tcp ping? Fyodor (Aug 27)
- Re: Continuous tcp ping? ToddAndMargo (Aug 27)
- Re: Continuous tcp ping? Fyodor (Aug 27)