cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
dreth
Level 7
Report Inappropriate Content
Message 1 of 7

need command like tcping

Jump to solution

Hi all

I need something which works similiar like tcping.

I need to run constant ping to specific port. So tbh i need to be sending constantly SYN packets to specific port and if server responds with SYN-ACK.

More or less this can be done with tracereroute <ip> -T -p 443 
But only i want to be able to receive anser like from normal ping like

ping -p 443 TCP

1 Solution

Accepted Solutions
fw_mon
Level 7
Report Inappropriate Content
Message 6 of 7

Re: need command like tcping

Jump to solution

Hi,

you can try "nc -vz host port" wrapped in a bash/perl script, most simple version:

while true; do nc -vz host port; sleep 1; done
6 Replies

Re: need command like tcping

Jump to solution

Hi,

Do you really need the SYN packets or does telnet maybe also work for you?

dreth
Level 7
Report Inappropriate Content
Message 3 of 7

Re: need command like tcping

Jump to solution

I need sometyhing which will send SYN every few seconds till i stop it. Thats the point :/

Re: need command like tcping

Jump to solution

@drethwrote:

Hi all

I need something which works similiar like tcping.

I need to run constant ping to specific port. So tbh i need to be sending constantly SYN packets to specific port and if server responds with SYN-ACK.

More or less this can be done with tracereroute <ip> -T -p 443 
But only i want to be able to receive anser like from normal ping like

ping -p 443 TCP


Hi dreth,

Consider using PsPing by

PsPing v2.10 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals - www.sysinternals.com

https://docs.microsoft.com/en-us/sysinternals/downloads/psping

psping -i 10 -t <ip addr>:443

This would ping every 10 seconds, using TCP, to the IP Addr on Port 443. It will continue to ping until Ctrl-C or Ctrl-Break entered.

Full details and options:

psping -? t

 

Hope this works for you.

Thanks,

Ron Metzger

dreth
Level 7
Report Inappropriate Content
Message 5 of 7

Re: need command like tcping

Jump to solution

But this solution is for windows machines. I need this for mcafee webgateways

fw_mon
Level 7
Report Inappropriate Content
Message 6 of 7

Re: need command like tcping

Jump to solution

Hi,

you can try "nc -vz host port" wrapped in a bash/perl script, most simple version:

while true; do nc -vz host port; sleep 1; done
dreth
Level 7
Report Inappropriate Content
Message 7 of 7

Re: need command like tcping

Jump to solution

Thanks!
This one will be enough for me!Smiley Happy