Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iOSForensics/pyimg4
A python lib for manipulating IMG4, IM4M and IM4P files
https://github.com/iOSForensics/pyimg4
Last synced: about 1 month ago
JSON representation
A python lib for manipulating IMG4, IM4M and IM4P files
- Host: GitHub
- URL: https://github.com/iOSForensics/pyimg4
- Owner: iOSForensics
- License: gpl-3.0
- Created: 2019-11-02T18:56:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T20:30:24.000Z (about 1 year ago)
- Last Synced: 2024-08-02T01:15:43.216Z (4 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rainmana - iOSForensics/pyimg4 - A python lib for manipulating IMG4, IM4M and IM4P files (Python)
README
# pyimg4
[![GitHub license](https://img.shields.io/cran/l/devtools.svg)](LICENSE)
A python lib for manipulating IMG4, IM4M and IM4P files.
## Requirements
scapy# Getting started
## Extracting IM4P payload from an IMG4 file:
```python
from pyimg4 import *with open("payload", 'w+') as outfile:
with open("myfile.img4", 'rb') as infile:
i = IMG4(infile.read())
i.show() # Show the img4 file content
outfile.write(str(i.IM4P.DATA))
```## Creating an IMG4 file from scratch:
```python
from pyimg4 import *>>> p = IMG4(IM4M=IM4M(DATA='MANIFEST'),IM4P=IM4P(DATA='BLOB'))
>>> p.show()
###[ IMG4 ]###
MAGIC =
\IM4P \
|###[ IM4P ]###
| MAGIC =
| TYPE =
| DESCRIPTION=
| DATA = 'BLOB'
| KBAG = None
\IM4M \
|###[ IM4M ]###
| TYPE =
| VERSION = 0x0
| DATA = 'MANIFEST'
| SIGNATURE = None
| CERTIFICATES= None
| MANP = None
| DATA = 'MANIFEST'```
# How to contribute
Contributors are essential to PyIMG4 (as they are to most open source projects).
Drop us a line if you want to contribute.
We also accept pull request.# Reporting issues
### Questions
It is OK so submit issues to ask questions (more than OK, encouraged). There is a label "question" that you can use for that.### Bugs
If you have installed PyIMG4 through a package manager (from your Linux or BSD system, from PyPI, etc.), please get and install the current development code, and check that the bug still exists before submitting an issue.Please label your issues "bug".
If you're not sure whether a behavior is a bug or not, submit an issue and ask, don't be shy!
Enhancements / feature requests
If you want a feature in PyIMG4, but cannot implement it yourself or want some hints on how to do that, open an issue with label "enhancement".Explain if possible the API you would like to have (e.g., give examples of function calls, payload creations, etc.).