Created
August 7, 2018 13:30
-
-
Save xenoscr/8298a15d49ed62655a351d91b6b6ad0b to your computer and use it in GitHub Desktop.
Bash Convert String of Opcodes to Little-Endian
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
| opcodes=<some string output from msvenom> | |
| for j in `seq 0 8 ${#opcodes}`; do blockTXT=${opcodes:j:8}; echo -n "0x"; for i in `seq 7 -2 0`; do echo -n ${blockTXT:i-1:2}; done; echo -n ', '; done; echo '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment