-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selected capture options result in empty capture. #45
Comments
This seems to be caused by the |
I'm having the very same bug :/ Windows 10 as well |
I'm getting the exact same error ("Selected capture options result in empty capture"), also using the same command, following this guide: But I'm on Windows 8.1 |
I found out that adding the
|
The same happened to me with Windows XP. I downgraded to 1.0.0.7 and that one worked. |
I am also having the same issue with Windows 8.1. I will try downgrading to 1.0.0.7 and see if that fixes it. |
same problem here on W7 64 |
I am wondering the same thing. @desowin is that something that you could see happening in the near future if time allows? |
When I choose the first device to be monitored, and then ctrl+c, my wireless device can't work with my computer anymore. orz |
The best way is to use the extcap interface in Wireshark and simply click that through from Wireshark GUI. If you want to capture from all devices on given root hub, add the -A command line parameter. |
I have noticed that the multicheck in Wireshark Qt interface is not really working properly. It works fine in the Wireshark Legacy interface (GTK+) in 2.0.16. The GTK+ interface was removed. The "click that through from Wireshark GUI" in Wireshark Qt can lead to Wireshark calling USBPcapCMD with invalid parameters (without supplying --devices argument parameter). |
So this is actually a Wireshark issue, right? It seems the Wireshark GitHub mirror doesn't accept issues and I am not willing to sign up for a mailing list, if you are, they have issue reporting info here: https://www.wireshark.org/docs/wsug_html_chunked/ChIntroHelp.html |
EDIT: This got me confused a lot, everything seems fine, check comments below. |
Okay, then it seems like something fixable in thus codebase so I will reopen so that you can close when you get around to fixing it. Thanks for looking into this! |
It would be god-like if there were a dll by then... but I understand that you have other things to do. Anyways, thanks a lot for coming back on the project ! I am planning to add an UsbPcap integration to scapy as soon as we have it working correctly again... |
@gpotter2 In fact a dll with a clean interface would be really good to use in the USBPcamCMD itself. I have rather hard time in going through it now as I am trying to understand what's going on. The CMD code needs major redesign (that's to be done after 1.2.0.4 where the goal is to fix some important problems). |
One additional note about the screenshot - if you only select the USB hub ("[5] Rodzajowy koncentrator USB") it will only capture the communication with the hub itself, not with the devices that are connected to the hub (unless you select them separately). |
@desowin Thanks for your answer ! I am really hoping to see a 2.0 version with a nice fancy dull soon :) I don’t know if it’s possible, but can USBPcap send packets ? scapy is a wireshark-like util which is used a lot to send custom created frames |
@gpotter2 No, USBPcap cannot send packets and it's not really supposed to. The easiest way to send custom packets would be to use libusb, but that requires installing the libusb as the USB device driver (replacing the original driver). |
Got it. Thanks ! |
It seems that even if you add the -A option and redirect USBPcapCMD stdout to Wireshark, it still won't really work as the AttachConsole() call in attach_parent_console() can reopen redirected stdout. This unwanted stdout change done by AttachConsole() essentially makes Wireshark to not receive the data (it is printed to the console). This behavior is described in https://github.com/rprichard/win32-console-docs#allocconsole-attachconsole-traditional |
So it's not possible to start live capture from command line anymore? |
Hey, when I run
USBPcapCMD.exe
it shows me a device called\\.\USBPcap1
which has the device I want to monitor on it:(Sorry for Czech, stuck on Windows 10 Home with no option to change display language.)
The Brother PT-D600 printer is what I am looking to inspect.
However, when I run this:
USBPcapCMD.exe -d \\.\USBPcap1 -o - | "C:\Program Files\Wireshark\Wireshark.exe" -k -i -
…it says what it says in the issue title. The options seem to be fine to me - the correct device and no output file. Taken straight from the website.
What can I do to fix this?
The text was updated successfully, but these errors were encountered: