Nmap Development mailing list archives

Re: [nmap-svn] r31832 - nmap-exp/d33tah/ncat-lua-callbacks/ncat


From: Jacek Wielemborek <wielemborekj1 () gmail com>
Date: Thu, 15 Aug 2013 00:39:59 +0200

2013/8/15  <commit-mailer () nmap org>:
Author: david
Date: Wed Aug 14 22:37:26 2013
New Revision: 31832

Log:
Don't touch o.cmdexec in --load-lua-socket-file.

Modified:
   nmap-exp/d33tah/ncat-lua-callbacks/ncat/ncat_main.c

Modified: nmap-exp/d33tah/ncat-lua-callbacks/ncat/ncat_main.c
==============================================================================
--- nmap-exp/d33tah/ncat-lua-callbacks/ncat/ncat_main.c (original)
+++ nmap-exp/d33tah/ncat-lua-callbacks/ncat/ncat_main.c Wed Aug 14 22:37:26 2013
@@ -548,10 +548,8 @@
             else if (strcmp(long_options[option_index].name, "load-lua-socket-file") == 0) {
                 if (o.verbose)
                     logdebug("Applying Lua filter: %s\n", optarg);
-                o.cmdexec = optarg;
                 o.script = 1;
                 lua_setup();
-                o.cmdexec = NULL;
             }
 #endif
             break;

_______________________________________________
Sent through the svn mailing list
http://nmap.org/mailman/listinfo/svn

[d33tah-pc][~/shared/ncat/ncat-lua-callbacks/ncat] $ ./ncat
--load-lua-socket-file scripts/filters/numberer.lua -l  -vvvvvv
Ncat: assertion failed: o.cmdexec!=NULL QUITTING.

That blows things up. I could at most make lua_setup take o.cmdexec as
an argument, which also affects --lua-exec. For now, I'm going to
revert it.
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: