Skip to content

Instantly share code, notes, and snippets.

@xenoscr
Created August 7, 2018 13:30
Show Gist options
  • Select an option

  • Save xenoscr/8298a15d49ed62655a351d91b6b6ad0b to your computer and use it in GitHub Desktop.

Select an option

Save xenoscr/8298a15d49ed62655a351d91b6b6ad0b to your computer and use it in GitHub Desktop.
Bash Convert String of Opcodes to Little-Endian
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