Ask Your Question
0

How to use extcap with pipes?

asked 2019-06-02 09:46:30 +0000

stanumes gravatar image

updated 2019-06-02 14:43:35 +0000

Jaap gravatar image

Currently, I have a Python script that creates a pipe and displays the captured packet on Wireshark GUI. However, it works only once and when tried to write more packets to the pipe, I get the "All pipe instances are busy " error. As suggested earlier, I looked up the extcap interface. In the following extcap_example.py is the Python script, but, what is the Python interpreter?

To use this script on Windows, please generate an extcap_example.bat inside the extcap folder, with the following content:
@echo off
<Path to python interpreter> <Path to script file> %*

Also, should I build the Wireshark source code after adding the batch file in the folder and make any changes in the makefiles? (as suggested in the last part of this link : https://jelmer.uk/klaus/wireshark/blo... )

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-02 15:21:48 +0000

grahamb gravatar image

The "python interpreter" is the python interpreter binary, i.e. python.exe, or more appropriately on Windows, pythonw.exe. The latter doesn't start a terminal window. Note that it would be best to provide the the full path to the interpreter, otherwise you'll be relying on the interpreter being added to your system or user path.

Not sure why you provide a link to an out of date third party copy of the Wireshark codebase, the project's own git repository can be accessed here which is easily found from the Wireshark website -> Develop -> Browse the Code.

The current documentation for extcap is the manpage, and the example.

If your extcap is built using C, you'll need to obtain the Wireshark source code for the appropriate headers and ensure the required libraries have been built\downloaded to allow the extcap binary to be built. If using Python for the extcap, then no recompilation should be needed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-06-02 09:46:30 +0000

Seen: 97 times

Last updated: Jun 02