From be409657c202485536229d0cbe27279c9fdde5da Mon Sep 17 00:00:00 2001 From: nnposter Date: Sun, 1 Sep 2019 02:07:19 +0000 Subject: [PATCH] Replace references to stdnse.strjoin with stringaux.strjoin. See #1720 --- CHANGELOG | 4 ++++ nselib/msrpc.lua | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 7cf88c6c0..4dddb11d8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ #Nmap Changelog ($Id$); -*-text-*- +o [NSE][GH#1720] Functions lsa_lookupnames2 and lsa_lookupsids2 in library + msrpc were causing an error when called with debug level 2 or higher. + [Ivan Ivanov] + o [NSE] New script, dicom-brute.nse, attempts to brute force the called Application Entity Title of DICOM servers. [Paulino Calderon] diff --git a/nselib/msrpc.lua b/nselib/msrpc.lua index 2b9c4bb1b..2a942438d 100644 --- a/nselib/msrpc.lua +++ b/nselib/msrpc.lua @@ -59,6 +59,7 @@ local os = require "os" local smb = require "smb" local stdnse = require "stdnse" local string = require "string" +local stringaux = require "stringaux" local table = require "table" local unicode = require "unicode" _ENV = stdnse.module("msrpc", stdnse.seeall) @@ -2165,7 +2166,7 @@ function lsa_lookupnames2(smbstate, policy_handle, names) local result local pos, align - stdnse.debug2("MSRPC: Calling LsarLookupNames2(%s) [%s]", stdnse.strjoin(", ", names), smbstate['ip']) + stdnse.debug2("MSRPC: Calling LsarLookupNames2(%s) [%s]", stringaux.strjoin(", ", names), smbstate['ip']) -- [in] policy_handle *handle, @@ -2256,7 +2257,7 @@ function lsa_lookupsids2(smbstate, policy_handle, sids) local result local pos, align - stdnse.debug2("MSRPC: Calling LsarLookupSids2(%s) [%s]", stdnse.strjoin(", ", sids), smbstate['ip']) + stdnse.debug2("MSRPC: Calling LsarLookupSids2(%s) [%s]", stringaux.strjoin(", ", sids), smbstate['ip']) -- [in] policy_handle *handle, arguments = msrpctypes.marshall_policy_handle(policy_handle)