(key, ciphertext)
| 14 | |
| 15 | |
| 16 | def printResult(key, ciphertext): |
| 17 | print('char AESkey[] = { 0x' + ', 0x'.join(hex(x)[2:] for x in KEY) + ' };') |
| 18 | print('unsigned char AESshellcode[] = { 0x' + ', 0x'.join(hex(x)[2:] for x in ciphertext) + ' };') |
| 19 | |
| 20 | try: |
| 21 | file = open(sys.argv[1], "rb") |