In my last article( Android Application Penetration Testing Part 1 ), ( Android Application Penetration Testing Part 2 )we had look at basic architecture and penetration testing tools. Now Let’s dig deeper with ADB.
Android Debug Bridge (ADB) is a versatile command-line tool that lets you communicate with a device
Adb install – It is used to install an apk file into an Emulated/Connected Device
Adb pull – It is used to fetch some data from an Emulated device (remote) to a local host (local).
Adb push – It is used to push some data from localhost (local) to Emulated Device (remote).
Adb forward – Forwards socket connections from a specified local port to a specified remote port on the emulator/device instance.
Adb shell – Adb provides a UNIX shell that you can use to run a variety of commands on an emulator or connected device. In the terminal, you can use all adb commands
Dumpsys meminfo – All process details
Dumpsys meminfo name of .apk
Android Package (APK) is the default extension for Android applications, which is just an archive file that contains all the necessary files and folders of the application.
All data of the application in the device can be found in /data/data directory.
All applications (apk files) in the device can be found in /data/app directory
Standard permissions granted to the shell can be found in /system/etc/permissions # cat platform.xml
We usually open our Android device by unlocking various gesture patterns or password key
If you remove the gesture. Key or password. The key which located in data/system, you can bypass that lock.
Try with ADB shell
Cd /data/data/com.android.providers.settings/databases sqlite3 settings.db Update system set value=0 where name='lock_pattern_autolock'; Update system set value=0 where name='lockscreen.lockedoutpermanently'; .quit
Reset your phone. Don’t worry try a random pattern or pin or Password, you will bypass it.
You can follow us on Linkedin, Twitter, and Facebook for daily Cybersecurity updates also you can take the Android Hacking and Penetration Testing Course to keep yourself self-updated.
In a groundbreaking discovery on November 20, 2024, cybersecurity researchers Shubham Shah and a colleague…
A security flaw found in Android-based kiosk tablets at luxury hotels has exposed a grave…
The U.S. Cybersecurity and Infrastructure Security Agency (CISA) issued six Industrial Control Systems (ICS) advisories…
A sophisticated cyber campaign dubbed "J-magic" has been discovered targeting enterprise-grade Juniper routers with a…
In January, Netskope Threat Labs uncovered a sophisticated global malware campaign leveraging fake CAPTCHA pages…
In a recent technical investigation, researchers uncovered critical insights into the infrastructure linked to a…