Skip to content

Instantly share code, notes, and snippets.

@itsecurityco
Last active January 28, 2018 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsecurityco/86d620b8b0f28cb00b04dd08efe2a5a1 to your computer and use it in GitHub Desktop.
Save itsecurityco/86d620b8b0f28cb00b04dd08efe2a5a1 to your computer and use it in GitHub Desktop.
This script takes a filename as argument and will write bytes in \x format to the file
#!/usr/bin/env python
# Author: @itseco
# This script takes a filename as argument
# will write bytes in \x format to the file
import sys
handle = open(sys.argv[1], 'w')
buf = "Paste the shellcode here..."
handle.write(buf)
handle.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment