Lines 1-35javascript
1import { createRequire as __fjcreateRequire } from "module";
2const require = __fjcreateRequire(import.meta.url);
4var uv=Object.defineProperty;var ve=(e,r)=>{for(var n in r)uv(e,n,{get:r[n],enumerable:!0})};import{join as sE}from"path";import ci 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(pv,fv)};function ud(){return Function.prototype.toString.call(this)+`;
16`+gv}try{typeof Object.defineProperty=="function"?Object.defineProperty(ee.escapeXML,"toString",{value:ud}):ee.escapeXML.toString=ud}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}ee.shallowCopy=function(e,r){if(r
17`),a=Math.max(i-3,0),c=Math.min(o.length,i+3),d=t(n),u=o.slice(a,c).map(function(m,g){let v=g+a+1;return(v==i?" >> ":" ")+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")+":"+i+`
21`+e.message,e}function pd(e){return e.replace(/;(\s*$)/,"$1")}N.compile=function(r,n){let i;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),i=new j(r,n),i.compile()};N.render=function(e,r,n){let i=r||w.createNullProtoObjWherePossible(),t=n||w.createNullProtoObjWherePossible();return arguments.length==2&&w.shallowCopyFromList(t,i,gd),Bt(t,e)(i)};N.renderFile=function(){let e=Array.prototype.slice.call(arguments),r=e.shift(),n,i={filename:r},t,o;return typeof arguments[arguments.length-1]=="function ...
22 function __append(s) { if (s !== undefined && s !== null) __output += s }
23`,n.outputFunctionName){if(!si.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=` ${Gr} `+n.outputFunctionName+` = __append;
24`}if(n.localsName&&!si.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){let u=` ${Gr} __locals = (`+n.localsName+` || {}),
25`;for(let m=0;m<n.destructuredLocals.length;m++){let g=n.destructuredLocals[m];if(!si.test(g))throw new Error("destructuredLocals["+m+"] is not a valid JS identifier.");m
26 `),u+=g+" = __locals."+g}i+=u+`;
27`}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
29`),t+=` return __output;
30`,this.source=i+this.source+t}n.compileDebug?e=`${Gr} __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.