mirror of
https://github.com/bettercap/bettercap
synced 2025-07-31 12:10:10 -07:00
[net.sniff.sni] Use 'host' instead of 'domain' in SnifferEvent.SniffData - consistency with net.sniff.http module
This commit is contained in:
parent
27dfaf6f12
commit
10ff3bf21c
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@ package modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"regexp"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap-ng/core"
|
"github.com/evilsocket/bettercap-ng/core"
|
||||||
"regexp"
|
|
||||||
|
|
||||||
"github.com/google/gopacket"
|
"github.com/google/gopacket"
|
||||||
"github.com/google/gopacket/layers"
|
"github.com/google/gopacket/layers"
|
||||||
|
@ -37,7 +37,7 @@ func sniParser(ip *layers.IPv4, pkt gopacket.Packet, tcp *layers.TCP) bool {
|
||||||
ip.SrcIP.String(),
|
ip.SrcIP.String(),
|
||||||
domain,
|
domain,
|
||||||
SniffData{
|
SniffData{
|
||||||
"Domain": domain,
|
"host": domain,
|
||||||
},
|
},
|
||||||
"[%s] %s %s > %s",
|
"[%s] %s %s > %s",
|
||||||
vTime(pkt.Metadata().Timestamp),
|
vTime(pkt.Metadata().Timestamp),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue