1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 15:09:01 +00:00
dmiller 40f36a4e3e Some string optimizations in NSE
Changes fall into these categories:

1. Avoid pathological string building. Loops over x = x .. "foo" can
become very slow. Instead, use strbuf.lua, table.concat, or just one
continuous concatenation; a = x .. y .. z is one operation, better than
a = x .. y; a = a .. z

2. Use hex-escaped strings instead of string.char. I find this more
readable in many cases, and it avoids a table lookup and function call.

3. Don't duplicate code. A few libraries and scripts had re-implemented
stdnse.generate_random_string or openssl.rand_bytes.
2014-09-03 04:49:54 +00:00
2014-08-29 18:43:18 +00:00
2014-06-26 20:12:54 +00:00
2014-08-16 01:52:33 +00:00
2014-08-29 18:43:18 +00:00
2014-08-29 18:43:18 +00:00
2014-08-29 18:43:18 +00:00
2014-09-03 04:49:54 +00:00
2014-09-03 04:49:54 +00:00
2014-08-26 02:54:03 +00:00
2014-08-29 18:43:18 +00:00
2014-08-18 03:12:00 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2012-12-06 02:34:28 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2012-12-06 02:25:46 +00:00
2014-08-29 18:43:18 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-06-26 20:12:54 +00:00
2014-06-26 20:12:54 +00:00
2014-08-18 03:12:00 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-29 18:43:18 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00
2014-08-16 01:52:33 +00:00

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 ).
Languages
C 37.8%
Lua 28.1%
C++ 16.7%
Shell 5.8%
Python 4.2%
Other 7.2%