refact: better sniffer messages

This commit is contained in:
evilsocket 2018-02-05 18:56:52 +01:00
commit e64a24dd13
5 changed files with 7 additions and 15 deletions

View file

@ -52,8 +52,7 @@ func httpParser(ip *layers.IPv4, pkt gopacket.Packet, tcp *layers.TCP) bool {
"path": url,
"agent": ua,
},
"[%s] %s %s %s %s %s",
vTime(pkt.Metadata().Timestamp),
"%s %s %s %s %s",
core.W(core.BG_RED+core.FG_BLACK, "http"),
vIP(ip.SrcIP),
core.W(core.BG_LBLUE+core.FG_BLACK, method),