Neat project. How does it compare to Wireshark' console cousin tshark?
Once nice thing about this is that it's memory-safe, which is something you really want for a packet capture tool.
Gosniff: A TUI-Based Tcpdump
11–20 of 22 posts
Re: Gosniff: A TUI-Based Tcpdump
#12Hey everyone, I'm the original author of this library. This is actually my first software project ever-- I'm a full-time officer in the military who was just messing around. It's extremely flattering to see this shared so publicly, but I feel the need to pre-emptively apologize to readers. This is just a hobby project for now, but I would appreciate feedback.
Re: Gosniff: A TUI-Based Tcpdump
#13Hey everyone, I'm the original author of this library. This is actually my first software project ever-- I'm a full-time officer in the military who was just messing around. It's extremely flattering to see this shared so publicly, but I feel the need to pre-emptively apologize to readers. This is just a hobby project for now, but I would appreciate feedback.
A question to everyone:
Can anyone explain the networking part of this a bit? I see the `gopacket` package has been used. Is it only capable of "readonly" operations like this?
I'm trying to make a cross-platform system wide URL-based blocker and was wondering if this (gopacket) could achieve that. Any good resources for studying about the same?
I've seen projects do the same for Linux with proxies.
Re: Gosniff: A TUI-Based Tcpdump
#14tshark[0][1] has been the go-to standard for CLI packet analysis for a long time. It'd be really nice if Gosniff provided some kind of documentation on how it differentiates itself from tshark. [0] https://tshark.dev/ [1] https://blog.wireshark.org/2014/07/to-infinity-and-beyond-ca...
Re: Gosniff: A TUI-Based Tcpdump
#15Earlier quoted context omitted.
Once nice thing about this is that it's memory-safe, which is something you really want for a packet capture tool.
Hrm. Interesting point. There have been a fair number of parser CVEs, but GoLang isn't immune to some of the (based on an admittedly cursory look) parser issues.
Re: Gosniff: A TUI-Based Tcpdump
#16Hey everyone, I'm the original author of this library. This is actually my first software project ever-- I'm a full-time officer in the military who was just messing around. It's extremely flattering to see this shared so publicly, but I feel the need to pre-emptively apologize to readers. This is just a hobby project for now, but I would appreciate feedback.
Re: Gosniff: A TUI-Based Tcpdump
#17reminds me of termshark at https://github.com/gcla/termshark also written in golang
Re: Gosniff: A TUI-Based Tcpdump
#18Re: Gosniff: A TUI-Based Tcpdump
#19Earlier quoted context omitted.
Hrm. Interesting point. There have been a fair number of parser CVEs, but GoLang isn't immune to some of the (based on an admittedly cursory look) parser issues.
A protocol analyzer implemented in anything short of formally-verified code is going to be "vulnerable" to logic errors, such that it might print (or not print) the wrong things. But a protocol analyzer implemented in C standard a decent chance of coughing up RCE.
"Parse this packet and get a reverse shell on analyst's workstation?"
To be clear: I am not in any way attempting to disparage the project. It is damned cool, and as a neophyte Go practitioner myself, I very much appreciate its existance and utility. Just working through all the edge cases :)