refact: refactored sniffer to allow several parsers

This commit is contained in:
evilsocket 2018-01-09 23:43:23 +01:00
commit 55b9b1f189
5 changed files with 235 additions and 180 deletions

View file

@ -0,0 +1,16 @@
package modules
import (
"fmt"
// "github.com/evilsocket/bettercap-ng/session"
"github.com/google/gopacket"
)
type SnifferPacketParser func(pkt gopacket.Packet) bool
var PacketParsers = []SnifferPacketParser{}
func noParser(pkt gopacket.Packet) bool {
fmt.Println(pkt.Dump())
return true
}