Giter Site home page Giter Site logo

Comments (8)

emanuele-f avatar emanuele-f commented on June 11, 2024 1

I saw other fixes done in 10.2.2 so I will update the addon to use the latest version. I will share a beta version here, officially this will be available in PCAPdroid 1.7.0

from pcapdroid.

vvyushmanov avatar vvyushmanov commented on June 11, 2024 1

Hi!

I've tested both --ignore-hosts/--allow-hosts (--ignore-hosts .*:5061 and --allow-hosts .*:443) and the fix works! thx
It successfully bypasses the packets on the remote 5061 port and does what I needed it to do :)

from pcapdroid.

emanuele-f avatar emanuele-f commented on June 11, 2024 1

Great! I've added this info to https://emanuele-f.github.io/PCAPdroid/tls_decryption#331-exclude-specific-hostsports . For now this is enough to address this task, if there are other needs in the future we can evaluate them

from pcapdroid.

vvyushmanov avatar vvyushmanov commented on June 11, 2024

I've followed mitmproxy documentation, tried the following options

  1. --ignore-hosts .*:5061 - didn't work, for some reason, the port is not taken into consideration, although the docs state it should be
  2. --tcp .*
  3. --tcpraw

Basically, one of 2 options would resolve this:

  1. A way to intercept/decode HTTPS (port 443) traffic ONLY
  2. A way to give custom certificate for mitmproxy (which is possible, but it's unclear how to give a path to it within PCAPDroid)

from pcapdroid.

vvyushmanov avatar vvyushmanov commented on June 11, 2024

I've also tried setting up external mitmproxy, and it seems to respect the --ignore-hosts=.*:5061 parameter.
So, it looks like this (respecting the port, and not the host only) is something they've added relatively recently.

Is it possible to update the mitmproxy addon to respect the host:port parameters for allow/ignore host options?

from pcapdroid.

emanuele-f avatar emanuele-f commented on June 11, 2024

What about --ignore-hosts :5061? I would avoid adding a whitelist for this, working with an ip or domain decryption rule does not work for your use case?

from pcapdroid.

vvyushmanov avatar vvyushmanov commented on June 11, 2024

Thanks for the reply!

Yeah, this is the exact option I was trying to use in the "mitmproxy additional options".
It is working on the latest mitmproxy for Linux, but does not work on the version embedded with the addon.

I did some digging and found this issue on mitmproxy Github mitmproxy/mitmproxy#6325
mitmproxy/mitmproxy#6594
mitmproxy/mitmproxy#6614

Turns out, this was fixed just recently.
Can you please apply these fixes or update to the latest mitmproxy version?

from pcapdroid.

emanuele-f avatar emanuele-f commented on June 11, 2024

The issue you had with the --ignore-hosts option was probably related to my patches to remove the aioquic_mitmproxy and mitmproxy_rs native module from mitmproxy. This is fixed in emanuele-f/mitmproxy@88cc641 .

For the mitmproxy 10.2.2 update, since the rework done in mitmproxy/mitmproxy@6e38a56 introduces non-trivial conflicts with my patches, I've just backported the --ignore-hosts/--allow-hosts fixes to 10.1.6.

All the fixes are now available in v1.1 release of PCAPdroid-mitm. You can test it with the following beta apk: PCAPdroid_1.6.9-1bab9e0.apk. Let me know how it works for you

from pcapdroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.