mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
ae9def6d859ff8b50c8624be77aaa59a44b9db89
by collapsing them to a single .* and making sure that the DOTALL (PCRE s modifier) is set on the match. This should dramatically cut down on cases where MATCHLIMIT is returned. See http://seclists.org/nmap-dev/2009/q2/0086.html for a discussion. I chose to only use .* in this patch even though .*? will be faster in some cases. I felt the speed benefit of .*? did not outweigh the relative obscurity of lazy quantifiers. I have some ideas on how audit matches for performance and some ideas on optimizations that can be done. .*? and friends will have wait.
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%