Created
June 1, 2020 22:28
-
-
Save mxrch/8a9bdf98ed87c599f52cc9a8e1d97b21 to your computer and use it in GitHub Desktop.
Obfuscate python code by using chr() functions
This file contains 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
payload = 'eval(open("/tmp/flag.txt", "r").read())' | |
final = "" | |
for i in payload: | |
final+="chr({})+".format(ord(i)) | |
final = final[:-1] | |
print("Here is your payload king :\n-> eval({})".format(final)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output :