Created
October 12, 2017 11:20
-
-
Save Sinkmanu/52bef2ec1da706270552e634a4ca923a to your computer and use it in GitHub Desktop.
Encode string with NOTs
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
$ 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