1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 04:19:02 +00:00

Remove some more bin.lua packings, and fix one mistake in broadcast-ping.nse

This commit is contained in:
dmiller
2018-09-19 04:09:53 +00:00
parent 6986077364
commit cb24d657e2
5 changed files with 60 additions and 77 deletions

View File

@@ -115,7 +115,7 @@ local icmp_packet = function(srcIP, dstIP, ttl, data_length, mtu, seqNo, icmp_id
20 + #icmp_msg, -- total length
0) -- IP ID
.. "\x40\x00" -- DF
.. string.pack("CC",
.. string.pack("BB",
ttl,
1 -- ICMP
)