Skip to content

Commit

Permalink
Add hex: in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jperon committed Nov 28, 2024
1 parent 8695c54 commit 5ec13e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hexdump/hook.moon
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ dump = =>
print"Last fragment received" if DEBUG
@ = f_ip
pkt = UDP(@data)
print"\n\n#{@src} #{pkt.sport} #{@dst} #{pkt.dport} #{protocols[@protocol] or @protocol}\n"
print l for l in @hexdump!
print"hex: --- #{@src} #{pkt.sport} #{@dst} #{pkt.dport} #{protocols[@protocol] or @protocol}"
print "hex: "..l for l in @hexdump!

if XDP
PASS = xdp.action.PASS
Expand Down

0 comments on commit 5ec13e1

Please sign in to comment.