Comments (5)
wouldn't you use -r mypipe? pipes are files
from termshark.
termshark
and tshark
are both used in the example above. Can you provide a full counter-example so I can get a better idea of what you're talking about?
from termshark.
first establish the pipe and something writing to the pipe. note, tcpdump, tshark, etc are writing to a FILE, that's what a pipe is.
theprophet /tmp # mkfifo mypipe
theprophet /tmp # tcpdump -i eth1 -w mypipe
dropped privs to tcpdump
Then try to read it
zero@theprophet /tmp % tcpdump -i mypipe
tcpdump: mypipe: You don't have permission to capture on that device
(socket: Operation not permitted)
zero@theprophet /tmp % tshark -i mypipe
Capturing on 'mypipe'
Note that tcpdump can't find an interface called mypipe (because one doesn't exist) but tshark seems to have some kind of special handling for pretending a file is an interface, but tcpdump doesn't. tcpdump can read the file just fine
zero@theprophet /tmp % tcpdump -r mypipe
reading from file mypipe, link-type EN10MB (Ethernet)
This odd kind of special handling is confusing for users, and makes for confusion in the code. pipes are files, read them like files. That said, termshark doesn't seem to support reading pipes as files either, so this is still a feature request
from termshark.
Cheers for the writeup. This is more descriptive than my initial post.
from termshark.
I just committed a change for this. I'll mark this as - Duplicate of #9
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.