Re:Should I Block ICMP?
by redrove on Tuesday January 10, 2023 @04:22AM
(#34322319)
I find that a little hard to remember, and nmap isn't as widely available as netcat:
Alternatively, the most barebones version, useful for inside a container where all you have is a shell and the kernel:
[ Parent
| on HN ]
> Alternatively, the most barebones version, useful for inside a container where all you have is a shell and the kernel:
> cat > /dev/tcp/www.google.com/443
I was unfamiliar with this device so I googled a bit. This isn't a real file/device, it's a bash-ism when built with --enable-net-redirections (apparently disabled in debian-based distros [1]).
That's too bad, would have been cool to have such easy access to sockets anywhere using fopen().
1. https://www.oreilly.com/library/view/bash-cookbook/059652678...