Claudiu Claudiu - 1 year ago 152
Python Question

python: edit ISO file directly

  1. Is it possible to take an ISO file and edit a file in it directly, i.e. not by unpacking it, changing the file, and repacking it?

  2. It is possible to do 1. from Python? How would I do it?

Answer Source
  1. Of course, as with any file.

  2. It can be done with open/read/write/seek/tell/close operations on a file. Pack/unpack the data with struct/ctypes. It would require serious knowledge of the contents of ISO, but I presume you already know what to do. If you're lucky you can try using mmap - the interface to file contents string-like.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download