Giter VIP home page Giter VIP logo

Comments (5)

emanuele-f avatar emanuele-f commented on June 15, 2024 2

This should be fixed in 1bb6ae3 . Can you try the debug apk https://github.com/emanuele-f/PCAPdroid/blob/debug-apks/PCAPdroid-debug-1bb6ae3.apk and confirm it works? Please note that you will need to manually uninstall the old apk in order to install this.

from pcapdroid.

okdimok avatar okdimok commented on June 15, 2024

Thank you for such a quick response!

I've installed the debug apk and I was able to capture the traffic from the app to the backpack and back, if the connection had been established before the capture start.
However, if I first started the capture and then tried to initiate the connection, it didn't work.

So this is the capture, when I

  1. Connect successfully to the backpack
  2. Start the PCAP capture
  3. Send some commands from the app to the backpack
    capture 1

And this is the capture, where I

  1. Start the PCAP capture
  2. Cannot connect to the backpack
    capture 2

I guess the reason may be the source of the response, which is 255.255.255.255
image

from pcapdroid.

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

"capture 2" shows that the UDP connection is now handled correctly. I've also tested it with a UDP tester app on android and I can correctly receive the UDP broadcast response.

The led space application may employ some checks on the local network which prevent the connection from happening, e.g. 192.168.43.1 is not into the main network of the phone, which is 10.215.173.0/24 due to the VPN. For this reason I would consider this issue as solved, unless you can prove that the UDP broadcast is not handled correctly.

from pcapdroid.

okdimok avatar okdimok commented on June 15, 2024

I think this line could be changed to something like

if(conn->tuple.dst_ip.ip4 == INADDR_BROADCAST) {
 ip->saddr = gateway_IP;
}
else ip->saddr = conn->tuple.dst_ip.ip4;

to simulate a more real response, but my applied goal is now achievable, thanks to you, so I'm OK with closing the bug.

from pcapdroid.

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

You assume that the reply comes from the gateway IP, but this may not be the case, for example it may come from another device into your LAN.

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.