tsting
This commit is contained in:
4
main.go
4
main.go
@@ -82,10 +82,14 @@ func openCapture(tInfo *targetInfo) *pcap.Handle {
|
||||
}
|
||||
|
||||
func main() {
|
||||
log.Panicf("Starting program\n");
|
||||
tInfo := sInit(runtime.GOOS)
|
||||
log.Printf("sInit run\n")
|
||||
|
||||
// Read package and analze them
|
||||
log.Printf("Starting capture")
|
||||
handle := openCapture(tInfo)
|
||||
log.Printf("Started capture")
|
||||
|
||||
handle.SetBPFFilter(tInfo.filter)
|
||||
packets := gopacket.NewPacketSource(handle, handle.LinkType()).Packets()
|
||||
|
||||
Reference in New Issue
Block a user