Re: Continuous tcp ping?

ToddAndMargo <[email protected]>
Newsgroups gmane.comp.security.nmap.devel
Message-ID <[email protected]>
On 08/27/2017 10:31 PM, Fyodor wrote:
> 
> 
> On Sun, Aug 27, 2017 at 7:06 PM, ToddAndMargo <[email protected] 
> <mailto:[email protected]>> 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 time
> 
> 
> Hi 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 PDT
> SENT (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 seconds
> 
> If 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.