Categories: Android

Android Application Penetration Testing Part 3

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

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

  • We can install applications via ADB shell or directly by using the app use dashboard

Some Important notes

  • UID– Every time a new application is initiated in the Android device, it is assigned a unique User ID
  • PID– As every application has its own process id
  • GID– group IDs of the application that owns that process

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

Hacks via ADB:

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.

Another method

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.

Android Application Penetration Testing Part – 4

Also, read

You can follow us on LinkedinTwitter, and Facebook for daily Cybersecurity updates also you can take the Android Hacking and Penetration Testing Course to keep yourself self-updated.

Gurubaran

Gurubaran is a co-founder of Cyber Security News and GBHackers On Security. He has 10+ years of experience as a Security Consultant, Editor, and Analyst in cybersecurity, technology, and communications.

Recent Posts

Threat Actors Manipulate Search Results to Lure Users to Malicious Websites

Cybercriminals are increasingly exploiting search engine optimization (SEO) techniques and paid advertisements to manipulate search…

1 day ago

Hackers Imitate Google Chrome Install Page on Google Play to Distribute Android Malware

Cybersecurity experts have unearthed an intricate cyber campaign that leverages deceptive websites posing as the…

1 day ago

Dangling DNS Attack Allows Hackers to Take Over Organization’s Subdomain

Hackers are exploiting what's known as "Dangling DNS" records to take over corporate subdomains, posing…

1 day ago

HelloKitty Ransomware Returns, Launching Attacks on Windows, Linux, and ESXi Environments

Security researchers and cybersecurity experts have recently uncovered new variants of the notorious HelloKitty ransomware,…

1 day ago

RansomHub Ransomware Group Hits 84 Organizations as New Threat Actors Emerge

The RansomHub ransomware group has emerged as a significant danger, targeting a wide array of…

1 day ago

Threat Actors Leverage Email Bombing to Evade Security Tools and Conceal Malicious Activity

Threat actors are increasingly using email bombing to bypass security protocols and facilitate further malicious…

2 days ago