add iOS pull binary shell usage example
This commit is contained in:
parent
00dfdf717d
commit
3aadf1c18c
10
README.md
10
README.md
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user