Thursday, July 25, 2024
EHA

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

Android Application Penetration testing Part 3

Dumpsys meminfo name of .apk

Android Application Penetration testing Part 3

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

Android Application Penetration testing Part 3

Standard permissions granted to the shell can be found in /system/etc/permissions # cat platform.xml

Android Application Penetration testing Part 3
Android Application Penetration testing Part 3

Hacks via ADB:

We usually open our Android device by unlocking various gesture patterns or password key

Android Application Penetration testing Part 3

If you remove the gesture. Key or password. The key which located in data/system, you can bypass that lock.

Android Application Penetration testing Part 3

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.

Website

Latest articles

Google Chrome Warns of Malicious Files While Downloading

Google Chrome has introduced a revamped download experience with comprehensive warnings about potentially malicious...

Microsoft’s Windows Hello for Business Flaw Let Attackers Bypass Authentication

Researchers have uncovered a vulnerability in Microsoft's Windows Hello for Business (WHfB) that allows...

LummaC2 Malware Using Steam Gaming Platform as C2 Server

Cybersecurity experts have uncovered a sophisticated variant of the LummaC2 malware that leverages the...

Ukraine Hackers Hit Major Russian banks with DDoS attacks

Several prominent Russian bank clients experienced issues with their mobile apps and websites. According...

ShadowRoot Ransomware Attacking Organizations With Weaponized PDF Documents

A rudimentary ransomware targets Turkish businesses through phishing emails with ".ru" domain sender addresses....

BreachForumsV1 Database Leaked: Private messages, Emails & IP Exposed

BreachForumsV1, a notorious online platform for facilitating illegal activities, has reportedly suffered a massive...

250 Million Hamster Kombat Players Targeted Via Android And Windows Malware

Despite having simple gameplay, the new Telegram clicker game Hamster Kombat has become very...

Free Webinar

Low Rate DDoS Attack

9 of 10 sites on the AppTrana network have faced a DDoS attack in the last 30 days.
Some DDoS attacks could readily be blocked by rate-limiting, IP reputation checks and other basic mitigation methods.
More than 50% of the DDoS attacks are employing botnets to send slow DDoS attacks where millions of IPs are being employed to send one or two requests per minute..
Key takeaways include:

  • The mechanics of a low-DDoS attack
  • Fundamentals of behavioural AI and rate-limiting
  • Surgical mitigation actions to minimize false positives
  • Role of managed services in DDoS monitoring

Related Articles