From b5ab73d44d07b96f56cb646d0524fd4ef2b4289c Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 19 Sep 2018 04:09:54 +0000 Subject: [PATCH] Replace a couple of conversion functions with transcoders from unicode.lua --- nselib/mssql.lua | 70 ++++++++++++++++-------------------------------- nselib/ncp.lua | 34 +++++------------------ 2 files changed, 30 insertions(+), 74 deletions(-) diff --git a/nselib/mssql.lua b/nselib/mssql.lua index f91c2c0c9..322d2ec4d 100644 --- a/nselib/mssql.lua +++ b/nselib/mssql.lua @@ -115,6 +115,7 @@ local stdnse = require "stdnse" local strbuf = require "strbuf" local string = require "string" local table = require "table" +local unicode = require "unicode" _ENV = stdnse.module("mssql", stdnse.seeall) -- Created 01/17/2010 - v0.1 - created by Patrik Karlsson @@ -814,7 +815,7 @@ ColumnInfo = pos, colinfo.msglen = bin.unpack("stdnse.output_result -- diff --git a/nselib/ncp.lua b/nselib/ncp.lua index 88a84f1d3..e98b9e0e7 100644 --- a/nselib/ncp.lua +++ b/nselib/ncp.lua @@ -57,6 +57,7 @@ local nmap = require "nmap" local stdnse = require "stdnse" local string = require "string" local table = require "table" +local unicode = require "unicode" _ENV = stdnse.module("ncp", stdnse.seeall) @@ -494,7 +495,7 @@ ResponseParser = { if ( iflags.BaseClass ) then pos, len = bin.unpack("