diff --git a/README.md b/README.md index a249bf1..dabecea 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,13 @@ pip install ipsw ## Geting Started +Get IPSW info + ```python import ipsw client = ipsw.IpswClient(base_url='tcp://127.0.0.1:3993') + info = client.info.get("iPhone15,2_16.5_20F5028e_Restore.ipsw") print(f'{info.version} ({info.build})') for device in info.devices: @@ -64,6 +67,41 @@ for device in info.devices: - iPhone 14 Pro ``` +Get DSC info + +```python +import ipsw + +client = ipsw.IpswClient(base_url='tcp://127.0.0.1:3993') + +dsc = client.dsc.get_info("20F5028e__iPhone15,2/dyld_shared_cache_arm64e") +print(dsc) +print(dsc.dylibs[0]) + +dylib = client.dsc.get_dylib("20F5028e__iPhone15,2/dyld_shared_cache_arm64e", "libswiftCore.dylib") +print(dylib) +``` +```bash + +{'index': 1, 'name': '/usr/lib/libobjc.A.dylib', 'version': '876.0.0.0.0', 'uuid': '085A190C-6214-38EA-ACCB-428C3E8AFA65', 'load_address': 6443204608} + + +``` + +Get MachO info + +```python +import ipsw + +client = ipsw.IpswClient(base_url='tcp://127.0.0.1:3993') + +macho = client.macho.get("/bin/ls", arch="arm64e") +print(macho) +``` +```bash + +``` + ## Community You have questions, need support and or just want to talk about `ipsw-py`?