# Bypass SSL Pinning

SLL Pinning can be bypassed through different methods and differs if its Flutter or Java

1. apk-mitm, this tool can be used to bypass SSL Pinning through modification of the APK, this will work if the APK is not signed with code certificate, the code certificate will prevent any kind of modifications on the APK.
2. Manual bypass, you can bypass SSL Pinning through manual modification, decompile the APK and modify res/xml/network\_security\_config.xml file and remove the CA from it, then compile it and sign it.
3. Frida, SSL Pinning can be bypassed through Frida scripts for Java APK and Flutter APK.
4. reFlutter, for Flutter APKs you can use reFlutter to bypass SSL Pinning (method will be in the repo down below)

#### APK MITM Tool

{% embed url="<https://github.com/shroudedcode/apk-mitm>" %}

#### Frida Scripts

{% embed url="<https://codeshare.frida.re/@pcipolloni/universal-android-ssl-pinning-bypass-with-frida/>" %}

{% embed url="<https://github.com/NVISOsecurity/disable-flutter-tls-verification>" %}

#### reFlutter Tool

{% embed url="<https://github.com/ptswarm/reFlutter>" %}

{% embed url="<https://ayoubnajim.medium.com/bypass-ssl-pinning-for-flutter-apps-using-reflutter-framework-f77b858919b7>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pwnsec-notes.gitbook.io/ctf-notes/mobile-pentesting/bypass-ssl-pinning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
