Skip to main content

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

This project has received funding from the OSINT Got Talent program of <a href=”https://epieos.com”>EPIEOS</a>.

<img src=”docs/source/images/Osint_Got_Talent_by_Epieos.svg” width=200px>

## 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apkpatcher-0.1.37.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apkpatcher-0.1.37-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file apkpatcher-0.1.37.tar.gz.

File metadata

  • Download URL: apkpatcher-0.1.37.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for apkpatcher-0.1.37.tar.gz
Algorithm Hash digest
SHA256 72be338534ea3343d123e60921063d9f86098706503f767e6ec48f5140d9503a
MD5 49dc740172bc1a64fe905ed39013b957
BLAKE2b-256 1763c53e7b3607c4beafa07872f2b79e3fb9135a49c608369b8030fddd3fe070

See more details on using hashes here.

File details

Details for the file apkpatcher-0.1.37-py3-none-any.whl.

File metadata

  • Download URL: apkpatcher-0.1.37-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for apkpatcher-0.1.37-py3-none-any.whl
Algorithm Hash digest
SHA256 361b698bc95ad859980f7eac77d4b9e4b10c3d4b5b75cf24efa30cececc86e9c
MD5 6ea756746ab36f6bd3a4f0404c216d51
BLAKE2b-256 79ea82808588c17e61b982f9746acf939e1342d7d43904305f08dc1c977e004f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page