mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 02:49:01 +00:00
3f7be738adf47fd0b6e9a90b4a03689428b2af8d
the code just took each value mod 256 and stored it as a single byte. The OID 1.3.1000.5 would encode as follows tag len 1.3 1000%256 5 06 03 2b e8 05 What you're supposed to do is break each value into 7-bit chunks, and set the high bit in every octet but the last. Now it is correctly encoded as tag len 1.3 1000 5 06 04 2b 8768 05 The length also would not have been correct for lengths over 127, and that is fixed also.
Modified UDP-payload-related code to make it independent of the NmapOps class so it can be reused by other apps like Nping. More info at http://seclists.org/nmap-dev/2009/q3/0051.html
Here is some documentation for Nmap, but these files are much less comprehensive than what you'll find at the actual Nmap documentation site ( http://nmap.org ).
Description
Languages
C
37.8%
Lua
28.1%
C++
16.7%
Shell
5.8%
Python
4.2%
Other
7.2%