# 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).**

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 - [](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)