new: net.sniff module is now able to capture WPA handshake from RadioTap packets.

This commit is contained in:
evilsocket 2018-02-19 16:24:45 +01:00
commit 69248094c4
3 changed files with 82 additions and 30 deletions

View file

@ -8,7 +8,6 @@ import (
"github.com/evilsocket/bettercap-ng/log"
"github.com/evilsocket/bettercap-ng/session"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/google/gopacket/pcapgo"
)
@ -78,7 +77,7 @@ func (s *Sniffer) GetContext() (error, *SnifferContext) {
}
ctx.OutputWriter = pcapgo.NewWriter(ctx.OutputFile)
ctx.OutputWriter.WriteFileHeader(65536, layers.LinkTypeEthernet)
ctx.OutputWriter.WriteFileHeader(65536, ctx.Handle.LinkType())
}
return nil, ctx