Skip to content

Instantly share code, notes, and snippets.

@Sinkmanu
Created October 12, 2017 11:20
Show Gist options
  • Save Sinkmanu/52bef2ec1da706270552e634a4ca923a to your computer and use it in GitHub Desktop.
Save Sinkmanu/52bef2ec1da706270552e634a4ca923a to your computer and use it in GitHub Desktop.
Encode string with NOTs
$ echo -e 'import ctypes\nimport sys\nf="/etc/passwd"\nfor i in f:\n\tsys.stdout.write(hex(ctypes.c_uint8(~ord(i)).value)+",")\nsys.stdout.write("\\n")' | python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment