Lines 1-35javascript
1import { createRequire as __fjcreateRequire } from "module";
2const require = __fjcreateRequire(import.meta.url);
4var Cv=Object.defineProperty;var he=(e,r)=>{for(var n in r)Cv(e,n,{get:r[n],enumerable:!0})};import{join as JE}from"path";import mo from"node:fs"
11 , _MATCH_HTML = /[&<>'"]/g;
12function encode_char(c) {
13 return _ENCODE_HTML_RULES[c] || c;
15`;ee.escapeXML=function(e){return e==null?"":String(e).replace(zv,Mv)};function bd(){return Function.prototype.toString.call(this)+`;
16`+jv}try{typeof Object.defineProperty=="function"?Object.defineProperty(ee.escapeXML,"toString",{value:bd}):ee.escapeXML.toString=bd}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}ee.shallowCopy=function(e,r){if(r
17`),s=Math.max(o-3,0),c=Math.min(i.length,o+3),d=t(n),u=i.slice(s,c).map(function(m,g){let v=g+s+1;return(v==o?" >> ":" ")+v+"| "+m}).join(`
HighObfuscated Payload Loader
Source contains an obfuscator-style string-array loader that reconstructs and executes hidden code.
bin/assets/generators/organisation/generator.jsView on unpkg · L15 LowEval
Package source references a known benign dynamic code generation pattern.
bin/assets/generators/organisation/generator.jsView on unpkg · L15 18`);throw e.path=d,e.message=(d||"ejs")+":"+o+`
21`+e.message,e}function Ad(e){return e.replace(/;(\s*$)/,"$1")}k.compile=function(r,n){let o;return n&&n.scope&&(console.warn("`scope` option is deprecated and will be removed in future EJS"),n.context||(n.context=n.scope),delete n.scope),o=new j(r,n),o.compile()};k.render=function(e,r,n){let o=r||w.createNullProtoObjWherePossible(),t=n||w.createNullProtoObjWherePossible();return arguments.length==2&&w.shallowCopyFromList(t,o,xd),Wt(t,e)(o)};k.renderFile=function(){let e=Array.prototype.slice.call(arguments),r=e.shift(),n,o={filename:r},t,i;return typeof arguments[arguments.length-1]=="function ...
22 function __append(s) { if (s !== undefined && s !== null) __output += s }
23`,n.outputFunctionName){if(!lo.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");o+=` ${Wr} `+n.outputFunctionName+` = __append;
24`}if(n.localsName&&!lo.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){let u=` ${Wr} __locals = (`+n.localsName+` || {}),
25`;for(let m=0;m<n.destructuredLocals.length;m++){let g=n.destructuredLocals[m];if(!lo.test(g))throw new Error("destructuredLocals["+m+"] is not a valid JS identifier.");m
26 `),u+=g+" = __locals."+g}o+=u+`;
27`}n._with!==!1&&(o+=" with ("+n.localsName+` || {}) {
29`),t+=` return __output;
30`,this.source=o+this.source+t}n.compileDebug?e=`${Wr} __line = 1
31 , __lines = `+JSON.stringify(this.templateText)+`
34`+this.source+`} catch (e) {
35 rethrow(e, __lines, __filename, __line, escapeFn);
Long lines were clipped for display.