mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: net.sniff module is now able to capture WPA handshake from RadioTap packets.
This commit is contained in:
parent
047e53cf8d
commit
69248094c4
3 changed files with 82 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue