mirror of
https://github.com/oXis/pwnwiki.github.io.git
synced 2025-10-29 16:56:59 +00:00
Android/Python
This commit is contained in:
@@ -18,3 +18,15 @@ python -c 'import pty; pty.spawn("/bin/bash")'```
|
||||
***Print all ASCII characters***
|
||||
```python
|
||||
python -c 'import string; print string.printable'```
|
||||
|
||||
**Run OS commands through Python Interpreter**
|
||||
```python
|
||||
python -c 'import os; os.system("command here")'```
|
||||
|
||||
example:
|
||||
|
||||
```
|
||||
python -c 'import os; os.system("cat /etc/passwd")'```
|
||||
|
||||
Remember that the python console does not log code by default, so you can run all post-exploit shenanigans through the python console for added stealth.
|
||||
Also gets by certain environmental restrictions.
|
||||
|
||||
Reference in New Issue
Block a user