Tool use as library or in cli to patch an APK, inject some libraries inside the APK or add a custom certificate
Project description
# README
## GENERAL INFO
Project: Library to patch apk (inject frida gadget) Author: MadSquirrel License: GNU General Public License v3.0 Version: v1.0 Date: 02-06-21
## GOAL
Library to patch apk (inject frida gadget) this code is inspired by this project :https://github.com/badadaf/apkpatcher.
The improvements added by this fork are the following: - modification of xml files such as AndroidManifest without extracting the resources. Extracting the resources usually prevents to rebuild the apk. - Use as an API - Installation as a package
## USAGE
To use as library you just need to:
`python3 import apkpatcher patcher = apkpatcher.Patcher(<apk_path>, <version>, <sdktools>) patcher.patching(<path_gadget>, <arch>, output_file=<output_file>, user_certificate=<true|false>) `
To use as a program you just need to: `bash apkpatcher -a <apk_path> -g <path_gadget> -s <sdktools> -b <version> -r <arch> -o <output_file> `
You could use it as docker with this command line:
`bash docker run --rm -v .:/pwd -it madsquirrels/apkpatcher -a base.apk --download_frida_version 16.3.3 `
For more information please visit https://apkpatcher.ci-yow.com/
## EXEMPLE
`python3 import apkpatcher patcher = apkpatcher.Patcher(<apk_path>, <sdktools>, <version>) # not mandatory patcher.add_network_certificate(<custom_certificate>) patcher.set_arch(<arch>) patcher.pause = <True|False> # end not mandatory patcher.patching(<path_gadget>, <arch>, output_file=<output_file>, user_certificate=<true|false>) `
## INSTALL
`python3 sudo python3 -m pip install . `
- ### Requirement
setup your sktools as follow: - https://asthook.ci-yow.com/how.install.html#setup-sdktools install: - apktool - pip install -r requirements.txt
## CHANGELOG
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apkpatcher-0.1.28.tar.gz
.
File metadata
- Download URL: apkpatcher-0.1.28.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b81069cae8a816c73965051ca79e3e212bb607fb3f0aa514f7d9b1e68e0c29ab
|
|
MD5 |
13195e07bf2f1ff419edac3e227e4bf8
|
|
BLAKE2b-256 |
f9b7b2919c071bcad53e8350f76ccab8d360fd8c8cde8d1f2df933d51cf9e367
|
File details
Details for the file apkpatcher-0.1.28-py3-none-any.whl
.
File metadata
- Download URL: apkpatcher-0.1.28-py3-none-any.whl
- Upload date:
- Size: 36.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b2e3d9a7fb93259559b9508040d710fc905e18785c75a4ae6b87cb7d0fa6033b
|
|
MD5 |
3daec007aa8f96ad398ecb6a853d4bfa
|
|
BLAKE2b-256 |
df9dc77d5b28e14592cdd54fd28d67b79f6ae15171e4529b32a8834e7e2af442
|