Nmap Development mailing list archives

Function for generating case insensitive patterns for stdnse library


From: Rewanth Cool <ravatheruler4 () gmail com>
Date: Tue, 18 Apr 2017 01:23:51 +0530

I added a new function to the standard stdnse library which helps while
doing a case insensitive pattern matching work.

Of course, we can convert the string to be matched into lower case and then
use lower cased pattern for matching. But this is not suggested when you
are dealing with huge number of files or with large data. Converting the
complete file into lowercase is a bad idea (not so efficient and resource
consuming process) instead one can use this new function for generating a
new case insensitive pattern.

I made a PR #853 <https://github.com/nmap/nmap/pull/853> on the same and I
clearly explained the why stdnse should incorporate this new function in it
with best examples. Please review it over #853
<https://github.com/nmap/nmap/pull/853>for a better understanding.

Best regards,
Rewanth.
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: