First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

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

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

Vishwanath's avatar
1
Vishwanath
asked 2019-06-17 15:08:35 +0000
edit flag offensive 0 remove flag reopen merge delete

Closed for the following reason "the question is answered, right answer was accepted" by Vishwanath 2019-06-18 09:09:18 +0000

Comments

add a comment see more comments

1 Answer

0

Ignore my question, found the solution as below

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

Vishwanath's avatar
1
Vishwanath
answered 2019-06-18 09:08:08 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments