Bash sockets using /dev/tcp

If you dont`t have telnet client or netcat you can do this:

#!/bin/bash
exec 3<>/dev/tcp/linuxscripting.blogspot.com/80
echo -e "GET / HTTP/1.1\nHost: kinqpinz.info;\nConnection: close\n\n">&3
cat <&3

No comments:

Post a Comment