Last active
August 1, 2016 15:04
-
-
Save orleika/1e37964f7e64c2553f0dd1eb6c9d5a4a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ascii -> hex(little endian) | |
echo "/bin/sh" | rev | xxd -p | sed 's/.\{2\}$//' | fold -s8 | sed 's/^\(.*\)/0x\1/g' | |
hex format | |
echo "68732f6e69622f" | sed 's/^0x\(.*\)$/\1/g' | fold -s2 | perl -pe 's/(\w{2})\s+/\\x\1/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment