Apply my refactoring changes from r31989.

git-svn-id: https://svn.nmap.org/nmap@32301 e0a8ed71-7df4-0310-8962-fdc924857419
Restore the dump_stack routine, it's really useful for debugging.

git-svn-id: https://svn.nmap.org/nmap@32302 e0a8ed71-7df4-0310-8962-fdc924857419
Add ncat_main.c facilities for -L. Currently still with the ugly
o.script name.

git-svn-id: https://svn.nmap.org/nmap@32303 e0a8ed71-7df4-0310-8962-fdc924857419
Add script loading facilities.

git-svn-id: https://svn.nmap.org/nmap@32304 e0a8ed71-7df4-0310-8962-fdc924857419
Add null.lua, a filter meant for testing supersocket.

git-svn-id: https://svn.nmap.org/nmap@32305 e0a8ed71-7df4-0310-8962-fdc924857419
Add connect-mode recv() and send() support.

git-svn-id: https://svn.nmap.org/nmap@32306 e0a8ed71-7df4-0310-8962-fdc924857419
Revert r32301..r32306.

Committed accidentally.

git-svn-id: https://svn.nmap.org/nmap@32307 e0a8ed71-7df4-0310-8962-fdc924857419
fflush stderr in all messages sent by Ncat. This makes
it more comfortable to test Ncat under Cygwin, which
doesn't fflush even if the message contains \n.
(At least not in my ssh+screen+zsh combination).


git-svn-id: https://svn.nmap.org/nmap@32309 e0a8ed71-7df4-0310-8962-fdc924857419
Update the httpd.lua comment, the "list the directory contents" is irrelevant.


git-svn-id: https://svn.nmap.org/nmap@32313 e0a8ed71-7df4-0310-8962-fdc924857419
Allow NSE_TYPE_CONNECT_SSL to be canceled.

This fixes a really bad bug that seems to have been there for a while. Canceling
a nsock connect SSL operation fails with fatal(). I have never seen it in real
life though.

Added a corresponding unit test.

git-svn-id: https://svn.nmap.org/nmap@32324 e0a8ed71-7df4-0310-8962-fdc924857419
Replace the current list of checks with a is_valid_path function.

git-svn-id: https://svn.nmap.org/nmap@32325 e0a8ed71-7df4-0310-8962-fdc924857419
Whitespace.

git-svn-id: https://svn.nmap.org/nmap@32326 e0a8ed71-7df4-0310-8962-fdc924857419
Disallow any backslashes.

git-svn-id: https://svn.nmap.org/nmap@32327 e0a8ed71-7df4-0310-8962-fdc924857419
Change the comment.

git-svn-id: https://svn.nmap.org/nmap@32328 e0a8ed71-7df4-0310-8962-fdc924857419
Reorder the checks a bit.

git-svn-id: https://svn.nmap.org/nmap@32329 e0a8ed71-7df4-0310-8962-fdc924857419
Change the comment.

git-svn-id: https://svn.nmap.org/nmap@32330 e0a8ed71-7df4-0310-8962-fdc924857419
Replace some of the rules with per-directory ones.

git-svn-id: https://svn.nmap.org/nmap@32331 e0a8ed71-7df4-0310-8962-fdc924857419
Fix French man page for Nmap, corrections reported by Antoine MÉRIC.

git-svn-id: https://svn.nmap.org/nmap@32332 e0a8ed71-7df4-0310-8962-fdc924857419
Add request from Jacek Wielemborek

git-svn-id: https://svn.nmap.org/nmap@32353 e0a8ed71-7df4-0310-8962-fdc924857419