Ask Your Question
0

Unable to use androiddump in windows with named pipe [closed]

asked 2019-06-17 15:08:35 +0000

Vishwanath gravatar image

Hi

I am able to use androiddump in Ubuntu, but I am unable to perform the same on windows with named pipe.

Below works on ubuntu, but if i perform the same on windows it does not work

1) mkfifo /tmp/wireshark

2) androiddump --extcap-interface=android-logcat-text-main-NUSV2E0042 --fifo=/tmp/wireshark --capture

3) wireshark -i /tmp/wireshark -k

In Windows I am trying to create named pipe and then invoke androiddump and wireshark from same script, using the examples from https://wiki.wireshark.org/CaptureSet...

Named pipe created using python example, but looks like androiddump seems to be unable to access the same.

    pipe = win32pipe.CreateNamedPipe(r'\\.\pipe\wireshark',
                              win32pipe.PIPE_ACCESS_DUPLEX,
                              win32pipe.PIPE_TYPE_MESSAGE | win32pipe.PIPE_READMODE_MESSAGE | win32pipe.PIPE_WAIT,
                              1, 65536, 65536,
                              300, None)

But I get below errros

* (androiddump.exe:11200): WARNING *: The path to the file "\.\pipe\wireshark" doesn't exist.

And when i launch wireshark as well from same script using step 3 above, wireshark also shows same error

"The capture session on \.\pipe\wireshark could not start due to error on pipe open: The system cannot find the file specified"

Please let me know if i am missing anything, thanks

Regards Vishwanath

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Vishwanath
close date 2019-06-18 09:09:18.476414

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-18 09:08:08 +0000

Vishwanath gravatar image

Ignore my question, found the solution as below

wireshark -i android-bluetooth-btsnoop-net-<<device id="">> -k

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-06-17 15:08:35 +0000

Seen: 1,546 times

Last updated: Jun 18 '19