Skip to main content

An SSL Pinning Remover for Android Apps

Project description

PyPI version shields.io made-with-python

Brief history

All it started with two simple questions:

How we can sniff ssl traffic in order to understand which services are invoked?

and

Is there a method to automate all the process from decompile a .apk to upload on your device?

For the first questions i found a lot of guides that explain the procedure of modify the AndroidManifest.xml and the network_security_config.xml but there is not a single formula, there are different factors to understand in order to do it correctly.

For the second question is: Yes... but.

i found different types of project the on Github but they aren't completely automated in all those phases so here we are.

I read a lot of guides most of those requires to have a rooted device so i tried to create something to sniff the encrypted traffic unrooted devices in order to help all security researchers, this software is UNSTABLE for now a lot of "unlocked" apps will not work with this mod.

How it work?

ssl_pinning_remover has all the following phases:

  1. Unpack the .apk app with apktool
  2. Check if the AndroidManifest.xml has the correct attributes and if network_security_config.xml exists with the correct tags
  3. Repack the modified files in a new apk packet
  4. Sign the new apk with a self signed certificate
  5. Align the certified apk
  6. it upload the new jar in the connected android device (Optional)

Prerequisites

To use this script you need to install all those softwares in your environment:

On your device:

How to install

$ pip install -r requirements.txt
$ pip install ssl-pinning-remover

How to use

Parameter Description Mandatory
-i --input Used to specify the input .apk path Yes
-v --verbose Used to increase the stdout verbosity No
-u --upload Used to specify if you want upload the "unlocked" apk in the connected device or not No

Example

Elaborate without uploading .apk:

ssl_pinning_remover -i test.apk -v

Elaborate and upload .apk:

ssl_pinning_remover -i test.apk -v -u

ToDo List

  • Continue implementing studying difference configuration cases

  • Make the software working for most of the applications in the play store

  • Add more options

  • Code review

Disclaimer

This project is for educational and research purposes only. Any actions and/or activities related to the material contained on this GitHub Repository is solely your responsibility. The misuse of the information in this GitHub Repository can result in criminal charges brought against the persons in question. The author will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this GitHub Repository to break the law.

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

ssl-pinning-remover-1.0.0.tar.gz (115.0 kB view details)

Uploaded Source

Built Distribution

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

ssl_pinning_remover-1.0.0-py3-none-any.whl (126.0 kB view details)

Uploaded Python 3

File details

Details for the file ssl-pinning-remover-1.0.0.tar.gz.

File metadata

  • Download URL: ssl-pinning-remover-1.0.0.tar.gz
  • Upload date:
  • Size: 115.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for ssl-pinning-remover-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9da012ad4e686e43ab43924a4a30e6ad25c564e287d344f66be33e6be2c3d357
MD5 95f0a26526fce4a581e09c42cc7c7972
BLAKE2b-256 e88dd150a151269ff6e16c4549682f67a17a9e09921f34a85e1a72af977e0bf6

See more details on using hashes here.

File details

Details for the file ssl_pinning_remover-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ssl_pinning_remover-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 126.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for ssl_pinning_remover-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 193cd454ba009fcc1eaf7ae6d9d844e0ff9dcf3434d15bf173e13d7ad4b20b09
MD5 3e7209202aebd6a5c2bd9acec96ec96c
BLAKE2b-256 d582438e71797483a566ee1585cea2cea67a89fb5e4a3b4e505136dedc82b02f

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