# termshark **Repository Path**: liujiankang1/termshark ## Basic Information - **Project Name**: termshark - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-07 - **Last Updated**: 2021-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [twitter-follow-url]: https://twitter.com/intent/follow?screen_name=termshark [twitter-follow-img]: https://img.shields.io/twitter/follow/termshark.svg?style=social&label=Follow # Termshark A terminal user-interface for tshark, inspired by Wireshark. **V2.2 is out now with vim keys, packet marks, a command-line and themes! See the [ChangeLog](CHANGELOG.md#changelog).** ![demo21](/../gh-pages/images/demo21.png?raw=true) If you're debugging on a remote machine with a large pcap and no desire to scp it back to your desktop, termshark can help! ## Features - Read pcap files or sniff live interfaces (where tshark is permitted) - Filter pcaps or live captures using Wireshark's display filters - Reassemble and inspect TCP and UDP flows - View network conversations by protocol - Copy ranges of packets to the clipboard from the terminal - Written in Golang, compiles to a single executable on each platform - downloads available for Linux, macOS, BSD variants, Android (termux) and Windows tshark has many more features that termshark doesn't expose yet! See [What's Next](docs/FAQ.md#whats-next). ## Install Packages Termshark is pre-packaged for the following platforms: [Arch Linux](docs/Packages.md#arch-linux), [Debian (unstable)](docs/Packages.md#debian), [FreeBSD](docs/Packages.md#freebsd), [Homebrew](docs/Packages.md#homebrew), [MacPorts](docs/Packages.md#macports), [Kali Linux](docs/Packages.md#kali-linux), [NixOS](docs/Packages.md#nixos), [SnapCraft](docs/Packages.md#snapcraft), [Termux (Android)](docs/Packages.md#termux-android) and [Ubuntu](docs/Packages.md#ubuntu). ## Building Termshark uses Go modules, so it's best to compile with Go 1.12 or higher. Set `GO111MODULE=on` then run: ```bash go get github.com/gcla/termshark/v2/cmd/termshark ``` Then add ```~/go/bin/``` to your ```PATH```. For all packet analysis, termshark depends on tshark from the Wireshark project. Make sure ```tshark``` is in your ```PATH```. ## Quick Start Inspect a local pcap: ```bash termshark -r test.pcap ``` Capture ping packets on interface ```eth0```: ```bash termshark -i eth0 icmp ``` Run ```termshark -h``` for options. ## Downloads Pre-compiled executables are available via [Github releases](https://github.com/gcla/termshark/releases). Or download the latest build from the master branch - [![Build Status](https://travis-ci.org/gcla/termshark.svg?branch=master)](https://travis-ci.org/gcla/termshark). ## Documentation See the [termshark user guide](docs/UserGuide.md), and my best guess at some [FAQs](docs/FAQ.md). For a summary of updates, see the [ChangeLog](CHANGELOG.md#changelog). ## Dependencies Termshark depends on these open-source packages: - [tshark](https://www.wireshark.org/docs/man-pages/tshark.html) - command-line network protocol analyzer, part of [Wireshark](https://wireshark.org) - [tcell](https://github.com/gdamore/tcell) - a cell based terminal handling package, inspired by termbox - [gowid](https://github.com/gcla/gowid) - compositional terminal UI widgets, inspired by [urwid](http://urwid.org), built on [tcell](https://github.com/gdamore/tcell) Note that tshark is a run-time dependency, and must be in your ```PATH``` for termshark to function. Version 1.10.2 or higher is required (approx 2013). ## Contributors Thanks to everyone that's contributed ports, patches and effort! | [
Ross Jacobs](https://swit.sh)
[πŸ’»](https://github.com/gcla/termshark/commits?author=pocc "Code") [πŸ›](https://github.com/gcla/termshark/issues?q=author%3Apocc "Bug reports") [πŸ““](#userTesting-pocc "User Testing") | [
Hongarc](https://github.com/Hongarc)
[πŸ“–](https://github.com/gcla/termshark/commits?author=Hongarc "Documentation") | [
Ryan Steinmetz](https://github.com/zi0r)
[πŸ“¦](#platform-zi0r "Packaging/porting to new platform") | [
Nicolai SΓΈborg](https://sΓΈb.org/)
[πŸ“¦](#platform-NicolaiSoeborg "Packaging/porting to new platform") | [
Elliott Sales de Andrade](https://qulogic.gitlab.io/)
[πŸ’»](https://github.com/gcla/termshark/commits?author=QuLogic "Code") | [
Romanos](http://rski.github.io)
[πŸ’»](https://github.com/gcla/termshark/commits?author=rski "Code") | [
Denys](https://github.com/denyspozniak)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Adenyspozniak "Bug reports") | [
jerry73204](https://github.com/jerry73204)
[πŸ“¦](#platform-jerry73204 "Packaging/porting to new platform") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | [
Jon Knapp](http://thann.github.com)
[πŸ“¦](#platform-Thann "Packaging/porting to new platform") | [
Mario Harjac](https://github.com/mharjac)
[πŸ“¦](#platform-mharjac "Packaging/porting to new platform") | [
Andrew Benson](https://github.com/abenson)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Aabenson "Bug reports") | [
sagis-tikal](https://github.com/sagis-tikal)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Asagis-tikal "Bug reports") | [
punkymaniac](https://github.com/punkymaniac)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Apunkymaniac "Bug reports") | [
msenturk](https://github.com/msenturk)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Amsenturk "Bug reports") | [
Sandor SzΓΌcs](https://github.com/szuecs)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Aszuecs "Bug reports") | [
Dawid Dziurla](https://github.com/dawidd6)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Adawidd6 "Bug reports") [πŸ“¦](#platform-dawidd6 "Packaging/porting to new platform") | | [
jJit0](https://github.com/jJit0)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3AjJit0 "Bug reports") | [
inzel](http://colinrogers001.com)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Ainzel "Bug reports") | [
thejerrod](https://github.com/thejerrod)
[πŸ€”](#ideas-thejerrod "Ideas, Planning, & Feedback") | [
gdluca](https://github.com/gdluca)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Agdluca "Bug reports") | [
Patrick Winter](https://github.com/winpat)
[πŸ“¦](#platform-winpat "Packaging/porting to new platform") | [
Robert Larsen](https://github.com/RobertLarsen)
[πŸ€”](#ideas-RobertLarsen "Ideas, Planning, & Feedback") [πŸ““](#userTesting-RobertLarsen "User Testing") | [
MinJae Kwon](https://mingrammer.com)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Amingrammer "Bug reports") | [
the-c0d3r](https://github.com/the-c0d3r)
[πŸ€”](#ideas-the-c0d3r "Ideas, Planning, & Feedback") | | [
Gisle Vanem](https://github.com/gvanem)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Agvanem "Bug reports") | [
hook](https://github.com/hook-s3c)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Ahook-s3c "Bug reports") | [
Lennart Koopmann](https://twitter.com/_lennart)
[πŸ€”](#ideas-lennartkoopmann "Ideas, Planning, & Feedback") | [
Fernandez, ReK2](https://keybase.io/cfernandez)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3AReK2Fernandez "Bug reports") | [
mazball](https://github.com/mazball)
[πŸ€”](#ideas-mazball "Ideas, Planning, & Feedback") | [
wfailla](https://github.com/wfailla)
[πŸ€”](#ideas-wfailla "Ideas, Planning, & Feedback") | [
荣怑](https://github.com/rongyi)
[πŸ€”](#ideas-rongyi "Ideas, Planning, & Feedback") | [
thebyrdman-git](https://github.com/thebyrdman-git)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Athebyrdman-git "Bug reports") | | [
Clemens Mosig](http://www.mi.fu-berlin.de/en/inf/groups/ilab/members/mosig.html)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Acmosig "Bug reports") | [
Michael Rash](http://www.cipherdyne.org/)
[πŸ““](#userTesting-mrash "User Testing") | [
joelparker](https://github.com/joelparker)
[πŸ““](#userTesting-joelparker "User Testing") | [
Dragos Maftei](https://github.com/dragosmaftei)
[πŸ€”](#ideas-dragosmaftei "Ideas, Planning, & Feedback") | [
Matthew Giassa](http://www.giassa.net)
[πŸ€”](#ideas-IAXES "Ideas, Planning, & Feedback") | [
Sean Abbott](https://github.com/sean-abbott)
[πŸ“¦](#platform-sean-abbott "Packaging/porting to new platform") | [
Vincent Wang](http://www.linsong.org)
[πŸ€”](#ideas-linsong "Ideas, Planning, & Feedback") | [
piping](https://github.com/Piping)
[πŸ€”](#ideas-Piping "Ideas, Planning, & Feedback") | | [
kevinhwang91](https://github.com/kevinhwang91)
[πŸ€”](#ideas-kevinhwang91 "Ideas, Planning, & Feedback") [πŸ›](https://github.com/gcla/termshark/issues?q=author%3Akevinhwang91 "Bug reports") | [
Justin Overfelt](https://jbo.io)
[πŸ€”](#ideas-jboverfelt "Ideas, Planning, & Feedback") | [
Anthony](https://github.com/loudsong)
[πŸ€”](#ideas-loudsong "Ideas, Planning, & Feedback") | [
basondole](https://github.com/basondole)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Abasondole "Bug reports") | [
zoulja](https://github.com/zoulja)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Azoulja "Bug reports") | [
freddii](https://github.com/freddii)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Afreddii "Bug reports") | [
Thord Setsaas](https://github.com/thordy)
[πŸ“–](https://github.com/gcla/termshark/commits?author=thordy "Documentation") | [
deliciouslytyped](https://github.com/deliciouslytyped)
[πŸ›](https://github.com/gcla/termshark/issues?q=author%3Adeliciouslytyped "Bug reports") | | [
factorion](https://github.com/factorion)
[πŸ“¦](#platform-factorion "Packaging/porting to new platform") | [
Herby Gillot](https://github.com/herbygillot)
[πŸ“¦](#platform-herbygillot "Packaging/porting to new platform") | [
nmeum](https://github.com/nmeum)
[πŸ€”](#ideas-nmeum "Ideas, Planning, & Feedback") | [
Aaron Bieber](https://deftly.net)
[πŸ€”](#ideas-qbit "Ideas, Planning, & Feedback") | ## Contact - The author - Graham Clark (grclark@gmail.com) [![Follow on Twitter][twitter-follow-img]][twitter-follow-url] ## License [![License: MIT](https://img.shields.io/github/license/gcla/termshark.svg?color=yellow)](LICENSE)