Skip to content

Instantly share code, notes, and snippets.

View giioohbernini's full-sized avatar
😎
Stay foolish, stay hungry.

Giovanni Bernini giioohbernini

😎
Stay foolish, stay hungry.
View GitHub Profile
@giioohbernini
giioohbernini / patch_apk_for_sniffing.md
Created January 20, 2021 15:28 — forked from unoexperto/patch_apk_for_sniffing.md
How to patch Android app to sniff its HTTPS traffic with self-signed certificate

How to patch Android app to sniff its HTTPS traffic with self-signed certificate

  • Download apktool from https://ibotpeaches.github.io/Apktool/
  • Unpack apk file: java -jar /home/expert/work/tools/apktool.jar d [email protected]
  • Modify AndroidManifest.xml by adding android:networkSecurityConfig="@xml/network_security_config" attribute to application element.
  • Create file /res/xml/network_security_config.xml with following content:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config>