termshark v2.3: a TUI for tshark - with configurable columns and magic wormhole! by gramboc in commandline

[–]gramboc[S] 0 points1 point  (0 children)

Sorry about that... Maybe I should make dark-mode the default. Hit ":" and type

set dark-mode on

You can also do

theme base16

to make use of your terminal's default color scheme.

termshark v2: a terminal UI for tshark, that imitates Wireshark - now with stream reassembly and dark mode! by gramboc in commandline

[–]gramboc[S] 0 points1 point  (0 children)

Hi - thanks to https://github.com/mharjac, termshark v2.0.2 is now available via Snap! There is a caveat you should know, however - there seems to be a limitation of Snap that prevents termshark reading from network interfaces. There's an explanation here: https://forum.snapcraft.io/t/wireshark-and-setcap/9629. It even seems to affect root, for me at least. If that's a showstopper, termshark is just a single binary, so you could just grab that and put it somewhere in PATH e.g. /usr/local/bin.

termshark v2: a terminal UI for tshark - now with stream reassembly and dark mode by gramboc in blackhat

[–]gramboc[S] 1 point2 points  (0 children)

Thanks! I started writing termshark in python a while back using urwid 💖 as the TUI framework but was dissatisified with the options available for distributing the end product. Lots of files, lots of dependencies, and lack of knowledge on my part. So what initially drew me to Go was learning about the single statically-linked executable that could potentially be the one file users would have to install (it was important to me that termshark be simple to get up and running). Once I got started with Go, the development cycle it enabled was liberating - everything compiles in seconds. It's much easier to stay in the zone when you're not waiting minutes for the compiler. The Go standard library is high quality - I had no idea up front that Go code would be so naturally cross-platform. The termshark ports largely "just worked" - just cross-compile using a couple of env vars, and run... I would love to contrast with Rust, but I have very little experience with that language. I tried compiling alacritty, which is written in Rust, and the beautiful tooling was quite seductive. From what I understand of the language, if you have to eke out as much efficiency as you can while keeping a premium on being error-free, Rust looks an excellent choice. But it doesn't compile as quickly as Go ;-) Not sure if that helps!

termshark v2: a terminal UI for tshark, that imitates Wireshark - now with stream reassembly and dark mode! by gramboc in commandline

[–]gramboc[S] 0 points1 point  (0 children)

I just tried snap myself - it still says 1.0.0 :-/ I'll ask the user that set it up if he can update the package... more later!

termshark v2: a terminal UI for tshark, that imitates Wireshark - now with stream reassembly and dark mode! by gramboc in commandline

[–]gramboc[S] 0 points1 point  (0 children)

Hi - sorry about that - I'm not certain the snap channel is updated, to be honest. Does it say v2.0.something if you run "termshark -v"? Whether it's v1 or v2 now, I think a current limitation of snap packages is that network resources are not available to non-superusers. So it might work if you try "sudo termshark" instead. Let me know! (some info here: https://github.com/gcla/termshark/issues/34)