dark way kkk
I don’t know how obscure this is, but everything indicates that by RFC, packages TCP ACK
unsolicited should be answered with TCP RST
(connection refused), which can be "abused" (and is) by programs that scan the network, known as SYN Scans.
They start a handshake
but do not end - only analyze the response of host
.
There are several of these, one of them is from Microsoft itself, and is called psping.
Using the following . bat:
@echo off
for /L %%a in (1,1,255) do (
psping -n 2 192.168.10.%%a:3389
)
Note the use of the remote desktop
, 3389 - I got reply from hosts
windows and mac that had the service enabled and disabled.
TCP connect to 192.168.20.26:3389:
3 iterations (warmup 1) ping test:
Connecting to 192.168.20.26:3389 (warmup): from 0.0.0.0:63028:
The remote computer refused the network connection.
In this case, if the computer is refusing the connection, we can assume that it exists... xD
And in the case of this old friend of mine, who blocks ICMP:
Pinging 192.168.10.200 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
He didn’t expect this:
PsPing v2.10 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
TCP connect to 192.168.10.200:3389:
11 iterations (warmup 1) ping test:
Connecting to 192.168.10.200:3389 (warmup): from 192.168.10.192:63049: 0.64ms
Connecting to 192.168.10.200:3389: from 192.168.10.192:63050: 0.47ms
Connecting to 192.168.10.200:3389: from 192.168.10.192:63051: 0.54ms
Connecting to 192.168.10.200:3389: from 192.168.10.192:63052: 0.53ms
Connecting to 192.168.10.200:3389: from 192.168.10.192:63053: 0.54ms
Connecting to 192.168.10.200:3389: from 192.168.10.192:63054: 0.53ms
This technique will not always work, obviously - and it is possible to test other ports (I, particularly not had luck with them), but they say that SYN Scans has... ;)
Sources:
ping Alternative for tcp?
Netcat Power Tools
I think the easiest way maybe would be to filter out the timeouts and only display the ones that respond to a first ping.
– user28595
If it’s online. If it’s not Timeout ping.
– Artur Trapp
@Embarrassed because it is, as I was researching, I was realizing it too, so I was just leaving the question a longer time with no accepted answer to see if there was some obscure way kkk
– Artur Trapp