|
|
|
@ -48,10 +48,10 @@ if __name__ == "__main__":
|
|
|
|
print("Writing payload to file")
|
|
|
|
print("Writing payload to file")
|
|
|
|
# f = open('image_file','a')
|
|
|
|
# f = open('image_file','a')
|
|
|
|
# print("File opened")
|
|
|
|
# print("File opened")
|
|
|
|
payload = bytearray(data_block[(FC_PAYLOAD + extended):])
|
|
|
|
# payload = bytearray(data_block[(FC_PAYLOAD + extended):])
|
|
|
|
print(payload)
|
|
|
|
immutable_payload = bytes(bytearray(data_block[(FC_PAYLOAD + extended):])) # payload)
|
|
|
|
immutable_payload = bytes(payload)
|
|
|
|
print(immutable_payload)
|
|
|
|
with open("image_file", "wb") as binary_file:
|
|
|
|
with open("image_file", "ab") as binary_file:
|
|
|
|
binary_file.write(immutable_payload)
|
|
|
|
binary_file.write(immutable_payload)
|
|
|
|
# f.close()
|
|
|
|
# f.close()
|
|
|
|
sleep(60)
|
|
|
|
sleep(60)
|
|
|
|
|