-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setting up WIrego ZMQ plugin * Trying with ZMQ (not czmq) * Wireshark plugin is now "wirego_bridge" * Added version check A bit of cleanup * Much implementation. Not mucho tests. * More stable * More cb implmentations WIP: dissect * More implem * Backported dissect * Info and protocol * Backport completed. Needs a lot a testing and refactoring. * Cleanup & refactoring * Wireshark now loads properly. Still many things to fix * Several FIX and comments in go package * Added missing source file * Using slog instead of log in order to setup verbosity level * Dissect fixed. basic use case seems to be working. * Setup timeouts * Be less verbose by default * Don't need to duplicate Wireshark's payload buffers anymore Use ipc:// by default * Updated examples Updated examples's README Added MIGRATIOn documentation for migrating from v1 to v2. * Updated documentation * Added PROTOCOL documentation. * Refer to the ZMQ protocol spec from the main README * Reorganizing project structure * Make the logo a bit smaller. * Cosmetics * Functional tests for Go package * More tests * GetProtocol and info * All functional tests for Go package. * A bit of function and ZMQ calls renaming for better clarity. * Renaming in go package * FIX in heur_detection to match new packet.h header * Added changelog * CI updates * CI cleanup * CI FIXES: - link on macos with homebrew - support Wireshark heur_dissector_add proto update between 4.2 and 4.4 * DIsable Macos build for WS 4.0 --------- Co-authored-by: Neb <bgirard@quarkslab.com>
- Loading branch information
Showing
60 changed files
with
3,318 additions
and
2,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Migrating from Wirego v1 to v2 | ||
|
||
The migration from Wirego v1 to Wirego v2 is quite easy. | ||
|
||
A few things have changed: | ||
|
||
- You code will not be loaded anymore as a dynamic library | ||
- The Setup inferface does not exist anymore | ||
- You don't need the "init()" function anymore | ||
- You need to implement the "main()" function | ||
- You need to explicitely initialize the wirego package by using **New** | ||
|
||
|
||
## Step1: update | ||
|
||
Edit your main function, which used to be empty, as follow: | ||
|
||
func main() { | ||
var wge WiregoSample | ||
|
||
wg, err := wirego.New("ipc:///tmp/wirego0", false, wge) | ||
if err != nil { | ||
fmt.Println(err) | ||
return | ||
} | ||
wg.ResultsCacheEnable(false) | ||
|
||
wg.Listen() | ||
} | ||
|
||
You should edit on the above code snippet: | ||
|
||
- var wge WiregoSample | ||
- wg.ResultsCacheEnable(false) | ||
|
||
## Step 2: cleanup | ||
|
||
Erase your init() and Setup functions. | ||
If needed, move contents to the main function. | ||
|
||
## Step 3: build | ||
|
||
Build using: | ||
|
||
go build | ||
|
||
## Step 4: running | ||
|
||
When loading Wireshark, go to the Settings and update what used to be the plugin's library path, to the defined ZMQ endpoint (in the previous example: **"ipc:///tmp/wirego0"**). | ||
Restart Wireshark. | ||
|
||
|
Oops, something went wrong.