mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 02:49:01 +00:00
Use of the "H" bin.unpack template should be discouraged, since it leads to use of blobs of hex data without dissection. NSE scripts should be self-documenting with regard to packet contents. Similarly, chaining bin.pack and bin.unpack is usually an anti-pattern for some simpler construct. In this case, converting a number to hex, padding it with "0", and packing it is unnecessary, since the original number can be packed directly with the proper endianness and width.
9.0 KiB
9.0 KiB