mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: added hostname to net.sniff.leak.http event (fixes #139)
This commit is contained in:
parent
67d0e151ab
commit
10c3f702bd
1 changed files with 2 additions and 1 deletions
|
@ -23,10 +23,11 @@ func httpParser(ip *layers.IPv4, pkt gopacket.Packet, tcp *layers.TCP) bool {
|
|||
ip.SrcIP.String(),
|
||||
req.Host,
|
||||
req,
|
||||
"%s %s %s %s %s",
|
||||
"%s %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, req.Method),
|
||||
core.Yellow(req.Host),
|
||||
vURL(req.URL.String()),
|
||||
core.Dim(req.UserAgent()),
|
||||
).Push()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue