dump = [0x63537b4654434749, 0x64316b5f74703172, 0x3352615f73333164, 0x7d336d346c5f] bs = b"" for b in dump: bs += b.to_bytes(8, 'little'); print(bs)