libpcap
gopacket
libpcap | gopacket | |
---|---|---|
10 | 7 | |
2,523 | 6,118 | |
1.5% | 0.7% | |
9.6 | 0.0 | |
1 day ago | 7 days ago | |
C | Go | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
libpcap
-
How do remote interfaces work in wireshark?
As long as your custom service used the rpcap protocol I'd expect it to be possible. You may find this GitHub page informative, since it includes some rpcap source code and one of the main Wireshark developers appears to be a contributor there.
-
How to reverse engineer a JSON API on a single page application
mitmproxy can be used to find the HTTP request with the needed data in addition browser dev tools. At some point, I'll explore tcpdump and wireshark to reverse engineer websites for web scraping and share the learnings with you.
-
Chibicc – A Small C Compiler
(Of course, this consideration should be appropriately downweighted by YAGNI, as threading memory management through prototype or internal utility code can by itself easily force it into very non-prototype amounts of effort.)
[1] https://github.com/the-tcpdump-group/libpcap/blob/2180b6e56a...
-
Question re C interop, type, for use with std.mem
I am working with libpcap, a library that parses packets captured from tcpdump, which I have cIncluded from Zig.
-
Implement DevSecOps to Secure your CI/CD pipeline
Nmap and Wireshark, tcpdump tools can be used to scan networks and packets.
-
Working on Net+, Need Some Direction
Also definitely start looking at tcpdump and wireshark. These are invaluable tools for the non-network engineer that is perhaps a sysadmin or analyst to use for network troubleshooting.
-
Modding
For future reference, libpcap is a library that Wireshark and many other network analysis tools use to record network traffic. It has its own file format that it can use to save the recorded network traffic to disk.
- All About Libpas, Phil's Super Fast Malloc
-
Linux Debugging
A lot is covered here and here, sar might be useful, getfacl and tcpdump and probably hundred more tools I am not even aware of. The easiest to learn those is to have a problem and identify and solve it with those tools, but to do that you need to know roughly what those tools can do.
-
Gain Visibility into Istio mTLS Traffic with Mizu
For example, gopacket uses libpcap by default for capturing the traffic. Libpcap doesn't support network namespaces and we can't ask it to listen to traffic on a different namespace. However, we can change the network namespace of the calling thread and then start libpcap to see the traffic on a different namespace.
gopacket
-
As a Go developer, I’m surprised Crystal isn’t more popular
I have seen pcap but not packetz, thanks. Pcap looks unfinished and packetz has not been updated in a long time, but they might be able to make a working capture program. However the popularity and features available in Go regarding packet capture makes it very hard to beat. E.g. the Google gopacket library has 5.6k stars on github and as pretty much every feature you'd want for this sort of stuff built in.
-
eCapture: capture HTTPS traffic without CA certificates on Android/Linux using Golang.
eCapture implements the feature of saving a pcapng file by eBPF TC, and supports TLS Master Secret Key capturing by eBPF Uprobe. Also, gopacket's DSB feature is supported, based on Decryption Secrets Block (DSB)
-
Is it common to not have a local dev environment in go?
Well, there is https://github.com/google/gopacket/, you have a package that uses CGo, `pcap`, and then there is `pcapgo`, native Go implementation. Doesn't have all the features but in my case, I was able to use it and remove CGo.
-
[Go] Try capturing TCP packets
I will capturing TCP packets by gopacket/pcap.
-
Gain Visibility into Istio mTLS Traffic with Mizu
For example, gopacket uses libpcap by default for capturing the traffic. Libpcap doesn't support network namespaces and we can't ask it to listen to traffic on a different namespace. However, we can change the network namespace of the calling thread and then start libpcap to see the traffic on a different namespace.
- GO network programming resources
-
networking - getting route and interface for a destination
https://pkg.go.dev/github.com/google/gopacket/routing - Linux only and not working correctly and not actively maintained
What are some alternatives?
npcap - Nmap Project's Windows packet capture and transmission library
gopcap - A simple wrapper around libpcap for the Go programming language
tcpdump - the TCPdump network dissector
dns - DNS library in Go
ngrep - ngrep is like GNU grep applied to the network layer. It's a PCAP-based tool that allows you to specify an extended regular or hexadecimal expression to match against data payloads of packets. It understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6, IGMP and Raw, across a wide variety of interface types, and understands BPF filter logic in the same fashion as more common packet sniffing tools, such as tcpdump and snoop.
raw - Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
mimalloc-bench - Suite for benchmarking malloc implementations.
gnet - 🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go./ gnet 是一个高性能、轻量级、非阻塞的事件驱动 Go 网络框架。
WebKit - Home of the WebKit project, the browser engine used by Safari, Mail, App Store and many other applications on macOS, iOS and Linux.
ethernet - Package ethernet implements marshaling and unmarshaling of IEEE 802.3 Ethernet II frames and IEEE 802.1Q VLAN tags. MIT Licensed.
prometheus - The Prometheus monitoring system and time series database.
mdns - Simple mDNS client/server library in Golang