add iOS pull binary shell usage example

This commit is contained in:
iddoeldor 2018-11-26 16:05:44 +02:00 committed by GitHub
parent 00dfdf717d
commit 3aadf1c18c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,16 @@ def ls(folder):
print(chunk.strip().decode()) print(chunk.strip().decode())
``` ```
Pull binary from iOS
```python
cmd = Shell(['/bin/sh', '-c', 'cat /System/Library/PrivateFrameworks/Example.framework/example'], None)
cmd.exec()
with open('/tmp/example', 'wb+') as f:
f.writelines(cmd.output)
# $ file /tmp/example
# /tmp/example: Mach-O 64-bit 64-bit architecture=12 executable
```
</details> </details>
<br>[⬆ Back to top](#table-of-contents) <br>[⬆ Back to top](#table-of-contents)