mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
refact: minor refactoring
This commit is contained in:
parent
dc58fbbb36
commit
acf1e8b612
4 changed files with 10 additions and 8 deletions
|
@ -1,8 +1,6 @@
|
|||
package modules
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/evilsocket/bettercap-ng/core"
|
||||
|
||||
"github.com/google/gopacket"
|
||||
|
@ -23,7 +21,7 @@ func dnsParser(ip *layers.IPv4, pkt gopacket.Packet, udp *layers.UDP) bool {
|
|||
if a.IP == nil {
|
||||
continue
|
||||
}
|
||||
fmt.Printf("[%s] %s %s > %s : %s is %s\n",
|
||||
SniffPrinter("[%s] %s %s > %s : %s is %s\n",
|
||||
vTime(pkt.Metadata().Timestamp),
|
||||
core.W(core.BG_DGRAY+core.FG_WHITE, "dns"),
|
||||
vIP(ip.SrcIP),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue