Skip to content

Instantly share code, notes, and snippets.

@0xhexmex
Last active October 21, 2020 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 0xhexmex/8a519a8fc44f37d579ed9e2ee2d318f6 to your computer and use it in GitHub Desktop.
Save 0xhexmex/8a519a8fc44f37d579ed9e2ee2d318f6 to your computer and use it in GitHub Desktop.
Random shellcode formatting tips
// Take a stageless CS Beacon raw payload and convert to shellcode in the '\xAA\xBB...' format
# Attacks > Packages > Windows Executable (S) > Raw. Save as beacon.bin
# hexdump -v -e '"\\x" 1/1 "%02X"' ./beacon.bin
// Take any raw shellcode file and get the hex from it in the 'fe9820fa...' format
# xxd -p -c 100000000000000000 ./payload.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment