1

I would like to convert exe file to bites in python and save the bites file.

The output file should look like this

Can anyone share a code that solves this issue? Is there any way to do it?

Thanks

  • 2
    Does this answer your question? [Reading binary file and looping over each byte](https://stackoverflow.com/questions/1035340/reading-binary-file-and-looping-over-each-byte) – Havin Leung Mar 29 '21 at 17:40
  • 1
    Also [How to read binary files as hex in Python?](https://stackoverflow.com/q/34687516) – 001 Mar 29 '21 at 17:40

0 Answers0