From 5ec13e1d52cfe709903a98bf6adb6fb7b711145b Mon Sep 17 00:00:00 2001 From: jperon Date: Thu, 28 Nov 2024 08:17:09 +0100 Subject: [PATCH] Add hex: in logs --- hexdump/hook.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hexdump/hook.moon b/hexdump/hook.moon index 4ed02c5..509bfca 100644 --- a/hexdump/hook.moon +++ b/hexdump/hook.moon @@ -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