Last active
April 25, 2016 09:09
-
-
Save antoni/83edb611014b8255a2708f0d3ec5a21a to your computer and use it in GitHub Desktop.
Terminal escape sequences
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://m.reddit.com/r/netsec/comments/4fi3hn/detecting_the_use_of_curl_bash_server_side/ | |
$ cat > evil.sh <<EOF | |
echo rm -rf /home; FOO=^M echo "nothing fishy here!" | |
EOF | |
$ cat evil.sh | |
echo "nothing fishy here!" | |
$ source evil.sh | |
rm -rf /home | |
nothing fishy here! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment