From: Mike Stepanek (mstepane) Date: Wed, 25 May 2022 16:52:43 +0000 (+0000) Subject: Pull request #3427: docs: JS Normalizer: track constructed objects X-Git-Tag: 3.1.31.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf9cba26b87615bd108b85e359c999e37119d63;p=thirdparty%2Fsnort3.git Pull request #3427: docs: JS Normalizer: track constructed objects Merge in SNORT/snort3 from ~DKYRYLOV/snort3:doc_js_class_track to master Squashed commit of the following: commit 94a5709811b971bdec31035b9970866143914e07 Author: dkyrylov Date: Wed May 18 14:20:14 2022 +0300 doc: add class track description to user doc --- diff --git a/doc/user/http_inspect.txt b/doc/user/http_inspect.txt index 3637f5c0d..b09c48219 100755 --- a/doc/user/http_inspect.txt +++ b/doc/user/http_inspect.txt @@ -279,6 +279,15 @@ For example: var a = console.log a("hello") // will be substituted to 'console.log("hello")' +For class names and constructors in the list, when the class is used with the +keyword 'new', created object will be tracked, and its properties will be kept intact. +Identifier of the object itself, however, will be brought to unified form. + +For example: + + var o = new Array() // normalized to 'var var_0000=new Array()' + o.push(10) // normalized to 'var_0000.push(10)' + The default list of ignore-identifiers is present in "snort_defaults.lua". Unescape function names should remain intact in the output. They ought to be