Nmap Development mailing list archives

Re: [nmap-svn] r32099 - nmap-exp/d33tah/lua-exec-examples/ncat/scripts


From: David Fifield <david () bamsoftware com>
Date: Thu, 29 Aug 2013 10:06:06 -0700

On Thu, Aug 29, 2013 at 03:01:34PM +0000, commit-mailer () nmap org wrote:
Author: d33tah
Date: Thu Aug 29 15:01:33 2013
New Revision: 32099

Log:
Fix the value of max_char variable. This finally makes the tests pass.

Modified:
   nmap-exp/d33tah/lua-exec-examples/ncat/scripts/httpd.lua

Modified: nmap-exp/d33tah/lua-exec-examples/ncat/scripts/httpd.lua
==============================================================================
--- nmap-exp/d33tah/lua-exec-examples/ncat/scripts/httpd.lua  (original)
+++ nmap-exp/d33tah/lua-exec-examples/ncat/scripts/httpd.lua  Thu Aug 29 15:01:33 2013
@@ -61,7 +61,7 @@
 local char2_max = 2047  -- (1<<11) - 1
 local char3_max = 65535 -- (1<<16) - 1
 
-local max_char = 4103061439 --\U0010FFFF or F4 8F BF BF
+local max_char = 1114111 --\U0010FFFF or 00 10 FF FF

Why not write this in hexadecimal? Same with the constants above it.

David
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: