Giter Club home page Giter Club logo

Comments (8)

p1-mmr avatar p1-mmr commented on June 12, 2024

Hello,

Thank you for your feedback and ioctl log! I have updated the concerned source code in 02c2a54, and recompiled the binary. Can you tell me whether you obtain different results?

Regards,

from qcsuper.

madushan1000 avatar madushan1000 commented on June 12, 2024

Hi,

Looks like that issue is fixed, but now, when I use adb shell and run the adb_bridge as root on the phone. It prints Connection to Diag established.

But, If I run adb shell su -c /data/local/tmp/adb_bridge (like the python script does), it doesn't print above message. Since the python script expects this output, python script just get stuck when I run ./qcsuper.py --adb --wireshark-live

I tried commenting out the for loop at https://github.com/P1sec/QCSuper/blob/master/inputs/adb.py#L141, but then I get a crash

Traceback (most recent call last):
  File "/Users/madushan/Dev/my/QCSuper/inputs/_base_input.py", line 156, in _read_thread
    self.read_loop()
  File "/Users/madushan/Dev/my/QCSuper/inputs/adb.py", line 249, in read_loop
    socket_read = self.socket.recv(1024 * 1024 * 10)
ConnectionResetError: [Errno 54] Connection reset by peer

from qcsuper.

madushan1000 avatar madushan1000 commented on June 12, 2024

Just figured out that if I run the adb_bridge as root separately, and then run the script. It works properly, I can see the packets showing up in wireshark.

from qcsuper.

p1-mmr avatar p1-mmr commented on June 12, 2024

Thank you for your feedback; when you were talking about "running the adb_bridge as root separately", is this about running another command than adb shell su -c /data/local/tmp/adb_bridge? e.g., using adb root, spawning an adb shell then running the su -c command, using the sudo command, or another mean?

If no, does it differ from just running adb shell su -c /data/local/tmp/adb_bridge as mentioned above?

Thank you!

from qcsuper.

madushan1000 avatar madushan1000 commented on June 12, 2024

Yeah, running adb shell su -c /data/local/tmp/adb_bridge, and then running ./qcsuper.py --adb --wireshark-live works. Even though the first command doesn't output anything to stdout.

from qcsuper.

p1-mmr avatar p1-mmr commented on June 12, 2024

Ok. Here are a few things I would suggest for further troubleshooting:

  • May it be confirmed whether replacing adb shell with adb exec-out (i.e, editing the inputs/adb.py file of the source code and replacing 'shell' with 'exec-out') outputs something? I have read that this more recent adb command may ensure that buffering is disabled. However it may not work on older devices.
  • Can you provide the version for your local and remote adb instances, by running: adb version and adb shell su -c "adbd --version"
  • Can you confirm whether you can run other commands through adb shell su -c and obtain output, for example: adb shell sh -c id
  • Can you confirm whether you are using a Linux system?

Regards,

from qcsuper.

pierlon avatar pierlon commented on June 12, 2024

I'm having the same problem as @madushan1000. Replacing shell with exec-out does fix the issue.

Also something to note, if I disconnect the device and reconnect it I get the error ioctl: Invalid argument. Setting up a signal handler to close diag_fd probably should fix that.

from qcsuper.

cewatkins avatar cewatkins commented on June 12, 2024

I needed to add sleep 5, cause file not quite there it thinks.

from qcsuper.

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.