Skip to content
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

Not allowing to redirect output of USBPcapCMD.exe. #104

Open
Huded14 opened this issue Jun 20, 2020 · 5 comments
Open

Not allowing to redirect output of USBPcapCMD.exe. #104

Huded14 opened this issue Jun 20, 2020 · 5 comments

Comments

@Huded14
Copy link

Huded14 commented Jun 20, 2020

I am writing batch file to start USBPcap and read the console output .

@desowin
Copy link
Owner

desowin commented Jun 20, 2020

I don't understand what you mean by "Not allowing to redirect output of USBPcapCMD.exe" in title. Just specify "-" as the output and USBPcapCMD will output the pcap stream to stdout. For a finer control you might use the extcap interface.

@Huded14
Copy link
Author

Huded14 commented Jun 22, 2020

output of USBPcapCMD.exe
pcap

I want to redirect the console to text file

@desowin
Copy link
Owner

desowin commented Jun 22, 2020

The recommended way is to use extcap interface in such cases. It is suited for machine processing.

Use USBPcapCMD.exe --extcap-interfaces to obtain list of available interfaces, the example output would be:

interface {value=\\.\USBPcap1}{display=USBPcap1}
interface {value=\\.\USBPcap2}{display=USBPcap2}
interface {value=\\.\USBPcap3}{display=USBPcap3}

Then to get information about devices connected, use e.g. USBPcapCMD.exe --extcap-config --extcap-interface \\.\USBPcap3. This will list all available commandline options, and also all devices. It allows you to select individual devices (it is not possible using the console interface you refer to), using the --devices option.

@Huded14
Copy link
Author

Huded14 commented Jun 22, 2020

I want to retrieve which device is connected to which interface (USBPcap? i.e., USBPcap1 or USBPcap2 or USBPcap3....)
EX: suppose i have connected device Sandisk Ultra USB Device which has detected in USBPcap3 .

To get such info what i should use ?

@desowin
Copy link
Owner

desowin commented Jun 22, 2020

I want to retrieve which device is connected to which interface (USBPcap? i.e., USBPcap1 or USBPcap2 or USBPcap3....)
EX: suppose i have connected device Sandisk Ultra USB Device which has detected in USBPcap3 .

To get such info what i should use ?

USBPcapCMD.exe --extcap-config --extcap-interface \\.\USBPcap3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants