From 881c38cefbfe4407bfdc7d4ecaa80afc45a4949a Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 19 Sep 2019 17:31:58 +0000 Subject: [PATCH] Fix a bug in broadcast-ping: concat instead of comma --- scripts/broadcast-ping.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/broadcast-ping.nse b/scripts/broadcast-ping.nse index 1dd87010a..065e9e26b 100644 --- a/scripts/broadcast-ping.nse +++ b/scripts/broadcast-ping.nse @@ -110,7 +110,7 @@ local icmp_packet = function(srcIP, dstIP, ttl, data_length, mtu, seqNo, icmp_id --IP header - local ip_bin = "\x45\x00", -- IPv4, no options, no DSCN, no ECN + local ip_bin = "\x45\x00" .. -- IPv4, no options, no DSCN, no ECN string.pack(">I2I2", 20 + #icmp_msg, -- total length 0) -- IP ID