New answers tagged

0

I was making a basic and bizarre mistake: I was swapping the IP addresses of both machines, so I was listening on machine A and making a request from machine B to machine B. Since this was using B's lo interface, I couldn't capture the packages in the wlan0 interface. Oops! :)


3

Though Ncat does not yet support -z, you can get the same behavior with shell redirection: $ ncat google.com 80 </dev/null >/dev/null && echo "yes" yes $ ncat google.com 81 </dev/null >/dev/null && echo "yes" Ncat: Connection timed out. $ ncat scanme.nmap.org 1234 </dev/null >/dev/null && echo "yes" Ncat: Connection ...


6

Bash allows you to connect to TCP and/or UDP ports by redirecting to special files: /dev/tcp/host/port If host is a valid hostname or Internet address, and port is an integer port number or service name, Bash attempts to open the corresponding TCP socket. /dev/udp/host/port If host is a valid hostname or Internet address, and port is an ...



Top 50 recent answers are included