python: edit ISO file directly

前端 未结 4 1617
抹茶落季
抹茶落季 2021-01-03 10:53
  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
4条回答
  •  [愿得一人]
    2021-01-03 11:23

    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.

提交回复
热议问题