Created
April 9, 2018 09:17
-
-
Save CreateRemoteThread/56ea5610fd7622f7982400fe138ae059 to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/python | |
| # x/32bx *((unsigned long *)($rbp-0x68)) | |
| # a = [0x75, 0x63, 0x6b, 0x69, 0x7b, 0x7a, 0x7d, 0x64, 0x72, 0x79, 0x73, 0x6d, 0x67, 0x70, 0x68, 0x76, 0x6c, 0x6f, 0x66, 0x6e, 0x7c, 0x77, 0x65, 0x74, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00] | |
| # a = [0x75, 0x63, 0x6b, 0x69, 0x7b, 0x7a, 0x7d, 0x64, 0x72, 0x79, 0x73, 0x6d, 0x67, 0x70, 0x68, 0x76, 0x6c, 0x6f, 0x66, 0x6e, 0x7c, 0x77, 0x65, 0x74, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00] | |
| a = [0x75, 0x63, 0x6b, 0x69, 0x7b, 0x7a, 0x7d, 0x64, 0x72, 0x79, 0x73, 0x6d, 0x67, 0x70, 0x68, 0x76, 0x6c, 0x6f, 0x66, 0x6e, 0x7c, 0x77, 0x65, 0x74, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00] | |
| b = "abcdefghijklmnopqrstuvwxyz|{}" | |
| # ORIG: | { } _ ` | |
| # KEYS: 0x71 0x6a 0x61 0x5f | |
| f = [0x7a, 0x6d, 0x75, 0x7d, 0x6a, 0x6e, 0x64, 0x7b, 0x6f, 0x7b, 0x66, 0x5f, 0x6e, 0x64, 0x6f, 0x7b, 0x7b, 0x5f, 0x68, 0x7a, 0x5f, 0x7b, 0x67, 0x61, 0x20, 0xdf, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00] | |
| # TOTAL CHARSET = |{` | |
| out = "" | |
| for fk in f: | |
| try: | |
| o = a.index(fk) | |
| out += b[o] | |
| except: | |
| if fk == 0x6a: | |
| out += "{" | |
| elif fk == 0x5f: | |
| out += "_" | |
| elif fk == 0x61: | |
| out += "}" | |
| else: | |
| print "UKNOWN FK %02x" % fk | |
| out += "#" | |
| print out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment