Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignorar detectar VPN httptoolkit #90

Open
brunao-br opened this issue Apr 25, 2024 · 5 comments
Open

Ignorar detectar VPN httptoolkit #90

brunao-br opened this issue Apr 25, 2024 · 5 comments

Comments

@brunao-br
Copy link

brunao-br commented Apr 25, 2024

@pimterry Muchas aplicaciones detectan la presencia de la VPN. Cuando pruebas estas aplicaciones, ¿usas un script genérico para Frida o siempre creas uno nuevo basado en cada aplicación?

tomando nota de que "poseidontor/android-vpn-detection-bypass" no funcionó.

@pimterry
Copy link
Member

La verdad es que no he encontrado muchas problemas con detección de VPNs asi personalmente. Imagino que depende del tipo de apps que investigas.

En los pocos casos en que si me causa problemas, suelo interceptar trafico sin el VPN. Simplemente tienes que desactivar el VPN, y hacer la intercepcion con los scripts solos (instrucciones en el README: https://github.com/httptoolkit/frida-interception-and-unpinning?tab=readme-ov-file#android-getting-started-guide). Con los scripts de android/android-proxy-override.js y ./native-connect-hook.js no hace falta el VPN.

Eso funciona para ti?

(Prefieres ingles o español? Veo que lo tradujiste. Me da igual, como prefieras)

@brunao-br
Copy link
Author

frida -U -l config.js -l antiroot.js -l android-certificate-unpinning.js -l android-certificate-unpinning-fallback.js -l android-system-certificate-injection.js -l android-proxy-override.js -f "br.com.app"

Commands used

@pimterry
Copy link
Member

Ok. If you use that without the VPN, does it work for you?

I think you might also want native-connect-hook.js. This script makes sure that you capture all traffic, even if it tries to ignore the proxy settings.

@brunao-br
Copy link
Author

But httptoolkit creates a VPN connection between my cell phone and the computer. Can I use it without this VPN connection?

@pimterry
Copy link
Member

pimterry commented May 6, 2024

Yes. All the VPN does is configure proxy settings, and manually rewrite any traffic that tries to ignore those settings. It uses Android's VPN APIs to do this, but it's not a real VPN as such (more info here: https://httptoolkit.com/blog/inspecting-android-http/).

You can use the scripts here to set proxy settings (android-proxy-override.js) & manually redirect traffic (native-connect-hook.js) and then the VPN app isn't required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants