Skip to content
프로젝트

소개

APK 파일을 스캔해 URI, 엔드포인트 및 비밀 정보를 찾습니다.

보안 및 개인정보 보호

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+6
in 15 days
+11
in 1 month
+34

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

APKLeaks

version contributions

Scanning APK file for URIs, endpoints & secrets.

APKLeaks

Installation

It's fairly simple to install APKLeaks:

from PyPi

$ pip3 install apkleaks

from Source

Clone repository and install requirements:

$ git clone https://github.com/dwisiswant0/apkleaks
$ cd apkleaks/
$ pip3 install -r requirements.txt

from Docker

Pull the Docker image by running:

$ docker pull dwisiswant0/apkleaks:latest

Dependencies

The APKLeaks utilizes the jadx disassembler to decompile APK files. If jadx is not present in your system, it will prompt you to download it.

Usage

Simply,

$ apkleaks -f ~/path/to/file.apk
# from Source
$ python3 apkleaks.py -f ~/path/to/file.apk
# or with Docker
$ docker run -it --rm -v /tmp:/tmp dwisiswant0/apkleaks:latest -f /tmp/file.apk

Options

Here are all the options it supports.

| Argument | Description | Example | |--------------- |--------------------------------------------- |------------------------------------------------------------- | | -f, --file | APK file to scanning | apkleaks -f file.apk | | -o, --output | Write to file results (random if not set) | apkleaks -f file.apk -o results.txt | | -p, --pattern | Path to custom patterns JSON | apkleaks -f file.apk -p custom-rules.json | | -a, --args | Disassembler arguments | apkleaks -f file.apk --args="--deobf --log-level DEBUG" | | --json | Save as JSON format | apkleaks -f file.apk -o results.json --json |

Output

In general, if you don't provide -o argument, then it will generate results file automatically.

[!TIP] By default it will also save the results in text format, use --json argument if you want JSON output format.

Pattern

Custom patterns can be added with the following argument to provide sensitive search rules in the JSON file format: --pattern /path/to/custom-rules.json. If no file is set, the tool will use the default patterns found in regexes.json file.

Here's an example of what a custom pattern file could look like:

// custom-rules.json
{
  "Amazon AWS Access Key ID": "AKIA[0-9A-Z]{16}",
  // ...
}

To run the tool using these custom rules, use the following command:

$ apkleaks -f /path/to/file.apk -p rules.json -o ~/Documents/apkleaks-results.txt

Arguments (disassembler)

We give user complete discretion to pass the disassembler arguments. For example, if you want to activate threads in jadx decompilation process, you can add it with -a/--args argument, example: --args="--threads-count 5".

$ apkleaks -f /path/to/file.apk -a "--deobf --log-level DEBUG"

[!WARNING] Please pay attention to the default disassembler arguments we use to prevent collisions.

License

apkleaks is distributed under Apache 2.

Acknowledments

Since this tool includes some contributions, and I'm not an asshole, I'll publically thank the following users for their helps and resources:

관련 프로젝트 살펴보기

불러오는 중…