ROBChain/kexploit/generate_payload.py

5 lines
176 B
Python
Raw Normal View History

2019-01-18 19:58:28 +01:00
with open('payload.bin', 'rb') as stringFile:
with open('payload.s', 'w') as f:
2017-07-31 22:35:28 +02:00
for byte in stringFile.read():
print('byte %s' % hex(byte), file=f)