Comments (13)
This one's next up for me!
from termshark.
Thanks for the suggestion, I'll take a look at this.
from termshark.
I spent a while thinking termshark was broke until I realized it simply doesn't support this and works fine with live interfaces or pcap files :-) 👍 on the feature request
from termshark.
Hi @zerochaos - I just committed an attempt at this. Would you be willing to give it a try? This ought to compile and install the latest termshark:
export GO111MODULE=on
git clone https://github.com/gcla/termshark
cd termshark
go install ./...
Then termshark will be in ~/go/bin/
. I'm using go 1.12.1.
It was an intrusive change to the code, so do let me know if anything breaks or acts strangely.
from termshark.
read from stdin works, but my mouse stopped working. mouse works in termshark 1.0.0
from termshark.
Thanks for trying it. Broken mouse - my stupid error...
I realized I've also broken the windows build. Fixes for that coming later.
from termshark.
works now. can you please add a git tag soon? :-)
I can't do it myself, but this issue is closed (at least on linux)
from termshark.
Thanks :-) Yes, I'm trying to get v1.1.0 ship-shape, but I'm worried it's not very well-tested, and the automated tests are feeble... Hopefully not too much longer!
from termshark.
Was this added? I dont see it in --help
termshark v2.1.1
from termshark.
Hi @geekscrapy - you are right, I didn't update the help, sorry. I'll fix it. Yes, reading from stdin is in v2.2.1, though you need to use the -i flag at the moment. Try
cat foo.pcap | termshark -i -
I thought that
cat foo.pcap | termshark
worked too, but it looks like there's a bug.
from termshark.
Hi @geekscrapy - I made a small update to the master branch and this now works again:
cat foo.pcap | termshark
from termshark.
Awesome (is it in Brew yet?)! Just one thing that might trip users up (it did me), can the stdin option also apply to -r
? Seems logical to me as the file isn't an interface, but an already pcaped file. It depends on how closely you are trying to mirror wireshark and not tshark though. tshark can take pcap stdin using both -r and -i, while wireshark only takes -i... Just a consideration! Might want to make this explicit in --help as at the moment it explicitly states "Interfaces" to read from, whereas -r is a "pcap"
from termshark.
Hi @geekscrapy - no, not on Brew yet. I probably need to make another dot release for that. In the meantime, here is a pre-built binary for macOS, if that helps:
Thanks for the flags suggestion! Yes, all these should work:
cat foo.pcap | termshark -r -
cat foo.pcap | termshark -i -
cat foo.pcap | termshark
I just tweaked the handling of flags, do let me know if you run into any combinations that break!
from termshark.
Related Issues (20)
- Consider using sharkd when it's available
- Consider SIP callflow HOT 7
- New installation fails to launch HOT 1
- Guide for performing a termshark upgrade to latest version
- help
- doesn't work: The termshark UI will start when packets are detected on eth0... HOT 4
- Support decrypting HTTPS/TLS traffic via SSLKEYLOGFILE
- pkg/system/dumpcapext.go build constraints are not specific enough
- Go to packet
- Invisible packets list HOT 2
- panic: runtime error: index out of range [70] with length 70
- High CPU usage when scrolling, or when a lot of packets get received
- Wierd UI looking
- Error starting UI: character set not supported
- Vulnerability of dependency "golang.org/x/net" HOT 2
- [Packet Index, Packet Data] Pair do not match what is seen in Wireshark form Exported PCap file.
- Use Croc in lieu of Wormhole?
- Support vi-style binds in copy mode
- Unable to Quit (from long-running sessions) HOT 1
- Easy transparent background support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termshark.