Skip to content

Instantly share code, notes, and snippets.

@sunary
Last active February 21, 2020 09:55
Show Gist options
  • Save sunary/039d52ba3e71022f6062ad6a23d1c4ea to your computer and use it in GitHub Desktop.
Save sunary/039d52ba3e71022f6062ad6a23d1c4ea to your computer and use it in GitHub Desktop.
bypass ssl pinning

Decompile android

  • Download apktool from https://ibotpeaches.github.io/Apktool/
  • Unpack apk file: java -jar d apktool.jar app.apk
  • 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>
    <trust-anchors>
        <certificates src="system" />
        <certificates src="user" />
    </trust-anchors>
</base-config>
</network-security-config>

rooted device

  • Android:
    JustTrustMe (based on Xposed)
    Android-SSL-TrustKiller (Cydia Substrate)
  • iOS:
    SSL Kill Switch 2 (based on Cydia)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment