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.39.tar.gz (38.8 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.39-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apkpatcher-0.1.39.tar.gz
  • Upload date:
  • Size: 38.8 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.39.tar.gz
Algorithm Hash digest
SHA256 0bce3324b13c8c91a6dda58ce669cbe328e42ca9319713fc17371164068652b1
MD5 8bd0973cde4fe12a1036a6680f88cbed
BLAKE2b-256 54e5ae825f1789202b505baf88b165dd75c8d2ae2827f73fcaa4a771e7270168

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apkpatcher-0.1.39-py3-none-any.whl
  • Upload date:
  • Size: 37.5 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.39-py3-none-any.whl
Algorithm Hash digest
SHA256 602a2ddc1197afb48e2b6b300c71ac77f900ff2462cc09f5b88da11a59af2588
MD5 33f00fa52064f38c76f4d9159d58db82
BLAKE2b-256 2a7642eccac780d2348be5512a08e1545a2b3e1a9053e4f24ba54011dd15a554

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