mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
with the struct (bin) library available:
function hextobin(str) return bin.pack("H", str) end
function bintohex(str) return bin.unpack("H", str) end
Also removed a commented copy that was in the sniffer-detect.nse script.
3.7 KiB
3.7 KiB