sniffer
sniffer copied to clipboard
Go version of a raw socket packet sniffer
Its ok when I write code like this. ``` packet := gopacket.NewPacket(data, layers.LayerTypeEthernet, gopacket.Default) if packet.NetworkLayer() == nil || packet.TransportLayer() == nil || packet.TransportLayer().LayerType() != layers.LayerTypeTCP { continue } tcp,...
Google has closed code.google.com and moved Gopacket to Github.
Can you change packets on the wire? I tried this, and it seems the contents is changed, `dns.Questions[0].Name = []byte("nytimes.com")` however if I go to a website that says it...