Comment by cratermoon
Comment by cratermoon 2 days ago
There's also /dev/tcp in Linux
exec 5<>/dev/tcp/www.google.com/80
echo -e "GET / HTTP/1.1\r\nhost: www.google.com\r\nConnection: close\r\n\r\n" >&5
cat <&5
Comment by cratermoon 2 days ago
There's also /dev/tcp in Linux
exec 5<>/dev/tcp/www.google.com/80
echo -e "GET / HTTP/1.1\r\nhost: www.google.com\r\nConnection: close\r\n\r\n" >&5
cat <&5
/dev/tcp does not exist in Linux.
It is an abstraction in GNU Bash.