Comment 15 for bug 215034

superdug (superdug) wrote :

exec 3<>/dev/tcp/www.google.com/80
echo -e "GET / HTTP/1.1\n\n">&3
cat <&3

Will in fact get you the index page from google. However you won't see a /dev/tcp if you look in /dev it is intercepted by bash itself. Also worth noting that bash is not the default shell in ubuntu 9.10, it is dash.

/bin/bash is where the binary for the shell is located

strings /bin/bash | grep -iE "tcp|udp"
/dev/tcp/*/*
/dev/udp/*/*