Skip to content

deepLink is a python script allowing to list and verify deeplinks from Android apps using an ADB access or an APK file. It can also list some potential deeplinks handling in code samples using pattern matches.

Notifications You must be signed in to change notification settings

mathis2001/deepLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

deepLink

deepLink is a python script allowing to list, verify and exploit deeplinks from Android apps using an ADB access or an APK file.

Prerequisites

  • Python3
  • Apktool
  • argparse
  • re
  • tabulate
  • colorama
  • requests
  • adb

Install

$ git clone https://github.com/mathis2001/deepLink
$ cd deepLink
$ chmod +x deepLink.py

Usage

$ ./deepLink.py [-h] (--adb | --apk APK | -l LAUNCH | -c CODE_SEARCH) [-p PACKAGE] [-s SERIAL] [-v] [-o]

List Deeplinks using ADB

$ ./deepLink.py --adb -p com.example.xyz [--verify]

List Deeplinks from an APK

$ ./deepLink.py --apk /path/to/app.apk [--verify]

Open a specific deeplink

$ ./deepLink.py -l app://deeplink.xyz

Search for potential deeplinks handling in Java / Kotlin code

$ ./deepLink.py -c /path/to/project

Options

options:
  -h, --help            show this help message and exit
  --adb                 ADB Analyze
  --apk APK             APK analyze
  -l LAUNCH, --launch LAUNCH
                        Launch a deeplink
  -c CODE_SEARCH, --code-search CODE_SEARCH
                        Search for potential deeplink handling in JAVA / Kotlin code
  -p PACKAGE, --package PACKAGE
                        Package Name (ex: com.example.xyz)
  -s SERIAL, --serial SERIAL
                        Device/Emulator to use
  -v, --verify          Verify Assets Links
  -o OUTPUT, --output OUTPUT
                        Save results in an output file

Screenshots

PoC Scenarios

BugBazaar

BugBazaar Deeplink check BugBazaar code search BugBazaar Code Review
Insecure Deeplink handling leads to CSRF
BugBazaar CSRF
Insecure Deeplink handling leads to WebView Hijacking
BugBazaar WebView Hijacking

Realistic Vulnerability Chaining

Insecure Deeplink handling + WebView Hijacking + JavaScript Bridge leads to Command Injection
RCE

About

deepLink is a python script allowing to list and verify deeplinks from Android apps using an ADB access or an APK file. It can also list some potential deeplinks handling in code samples using pattern matches.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages