Skip to content

Instantly share code, notes, and snippets.

@gelias
Created July 28, 2016 18:36
Show Gist options
  • Select an option

  • Save gelias/d6b3edee1302ca7d589c5d4eebf848c7 to your computer and use it in GitHub Desktop.

Select an option

Save gelias/d6b3edee1302ca7d589c5d4eebf848c7 to your computer and use it in GitHub Desktop.
#!/bin/sh
host=<URL_HOST>
port=<PORT>
cmd="GET http://<URL_DESTINY> HTTP/1.1 Host: www.<URL_HOST>"
( echo open ${host} ${port}
sleep 1
echo -e "\r"
sleep 1
echo ${cmd}
sleep 1
echo -e "\r"
sleep 1
echo exit ) | telnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment