Android Pentesting Command Cheatsheet: Pentest All The Things
Android Pentesting Command Cheatsheet: Pentest All The Things
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Useful Linux le paths
android/adt-bundle-linux-ver-number/sdk/platform-tools : adb tool
android/adt-bundle-linux-ver-number/sdk/tools : emulator, android tools
~/.android/avd/<emulator-device-name>.avd/ : emulator con g les
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
https://developer.android.com
OR
Install GenyMotion
https://www.genymotion.com
Install APIs
$ android
and choose API version to install with gui
Start emulator
Start the emulator for the created image @test:
emulator @test
$ adb shell
Install BusyBox
$ adb push busybox /data/local
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
$ adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# mkdir /system/xbin
# cat /data/local/busybox > /system/xbin/busybox
# chmod 755 /system/xbin/busybox
# busybox --install /system/xbin
# mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
# sync
# reboot
Get Portswigger cert from visiting a page in browser, export and save as Portswigger.crt
Note: must have .crt extension for android to recognise it on sdcard
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Copy the cert onto the device:
$ adb push Portswigger.crt /mnt/sdcard
Next, go to “Settings” and install from sdcard
Installing Drozer
Install drozer app on test device and run it.
From your laptop, connect to the app:
$ adb forward tcp:31415 tcp:31415
$ drozer console connect
$ drozer console --server 10.0.2.15:31415 connect
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Check the manifest le
First, unpack the apk using unzip
$ unzip AppName.apk
$ axmlprinter AndroidManifest.xml
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
dz> run scanner.provider.traversal -a com.targetpackage
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Check the Activities
Activities provide user facing components.
Can be a ected by UI redressing attacks e.g. tap jacking etc
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Instead, intents should use the exported ag or made private e.g.
<receiver android:name="my.special.receiver"
android:exported=false>
...
</receiver>
OR
<receiver android:name="my.special.receiver"
android:exported=false>
android:permission="my.own.permission"
...
</receiver>
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Check for Sticky broadcasts
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Save the database les o the device:
/data/data/packagename
cp name.db /mnt/sdcard
$ adb pull /mnt/sdcard/name.db . (otherwise won’t have perms to copy)
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Check for bad code patterns
http://domain.com/api/save.php?t=" + paramString1 + "&u=" + paramString2);
re ection
etc.
addJavascriptInterface
grep -r -n -i --include=*.java addJavascriptInterface *
grep -r -i --include=*.java \@JavascriptInterface *
shouldOverrideUrlLoading
grep -r -n -i --include=*.java shouldOverrideUrlLoading *
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Intercept with burp.
Leave a Reply
Your email address will not be published. Required elds are marked *
COMMENT
NAME *
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
EMAIL *
WEBSITE
POST COMMENT
PREVIOUS
NEXT
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
RECENT POSTS
RECENT COMMENTS
CATEGORIES
android
cheatsheet
infrastructure
pentesting
sdr
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
wi
ARCHIVES
March 2017
October 2016
September 2016
July 2016
Search …
META
Log in
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Entries RSS
Comments RSS
WordPress.org
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD