Skip to content

Instantly share code, notes, and snippets.

@widhisec
Created March 13, 2019 21:55
Show Gist options
  • Save widhisec/eceed14ebf7983505c208a50f235a52d to your computer and use it in GitHub Desktop.
Save widhisec/eceed14ebf7983505c208a50f235a52d to your computer and use it in GitHub Desktop.
echo -n 'text' | xxd -ps | sed 's/[[:xdigit:]]\{2\}/\\x&/g'
CMD="\x63\x75\x72\x6c"
OUTPUT="$(echo -e $CMD)"
eval "${OUTPUT}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment