ROBChain/homebrew/generate_payload.py

5 lines
176 B
Python

with open('payload.bin', 'rb') as stringFile:
with open('payload.s', 'w') as f:
for byte in stringFile.read():
print('byte %s' % hex(byte), file=f)