(key, ciphertext)
| 13 | return ciphertext,key |
| 14 | |
| 15 | def dropFile(key, ciphertext): |
| 16 | with open("cipher.bin", "wb") as fc: |
| 17 | fc.write(ciphertext) |
| 18 | with open("key.bin", "wb") as fk: |
| 19 | fk.write(key) |
| 20 | #print('char AESkey[] = { 0x' + ', 0x'.join(hex(x)[2:] for x in KEY) + ' };') |
| 21 | #print('unsigned char AESshellcode[] = { 0x' + ', 0x'.join(hex(x)[2:] for x in ciphertext) + ' };') |
| 22 | |
| 23 | |
| 24 | try: |