Lines 1-30javascript
2"use strict";var Pu=Object.create;var bi=Object.defineProperty;var ju=Object.getOwnPropertyDescriptor;var Fu=Object.getOwnPropertyNames;var Lu=Object.getPrototypeOf,Du=Object.prototype.hasOwnProperty;var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nu=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Fu(e))!Du.call(t,s)&&s!==r&&bi(t,s,{get:()=>e[s],enumerable:!(n=ju(e,s))||n.enumerable});return t};var T=(t,e,r)=>(r=t!=null?Pu(Lu(t)):{},Nu(e||!t||!t.__esModule?bi(r,"default",{value:t,enumerable:!0}):r,t));var qt=P(bn=>{var dr=class extends Error{constructo ...
3`).replace(/^/gm," ".repeat(i))}let l=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(l=l.concat([r.wrap(u,s,0),""]));let d=r.visibleArguments(e).map(f=>a(r.argumentTerm(f),r.argumentDescription(f)));d.length>0&&(l=l.concat(["Arguments:",c(d),""]));let p=r.visibleOptions(e).map(f=>a(r.optionTerm(f),r.optionDescription(f)));if(p.length>0&&(l=l.concat(["Options:",c(p),""])),this.showGlobalOptions){let f=r.visibleGlobalOptions(e).map(m=>a(r.optionTerm(m),r.optionDescription(m)));f.length>0&&(l=l.concat(["Global Options:",c(f),""]))}let h=r.visibleCommands(e).map(f=>a(r.s ...
4`)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,s=40){let i=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${i}]+`);if(e.
6`),u=" ".repeat(n),p="\\s\u200B",h=new RegExp(`
7|.{1,${a-1}}([${p}]|$)|[^${p}]+?([${p}]|$)`,"g"),f=l.match(h)||[];return c+f.map((m,g)=>m===`
8`?"":(g>0?u:"")+m.trimEnd()).join(`
9`)}};Di.Help=xn});var $n=P(Cn=>{var{InvalidArgumentError:Qu}=qt(),kn=class{constructor(e,r){this.flags=e,this.description=r||
10(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11(Did you mean ${n[0]}?)`:""}Ni.suggestSimilar=rf});var Vi=P(Wi=>{var nf=require("node:events").EventEmitter,An=require("node:child_process"),Me=require
12- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new sf(e,r)}argument(e,r,n,s){let i=this.createArgument(e,r);return typeof n=="function"?i.default(s).argParser(n):i.default(n),this.addArgument(i),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last ...
13Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new On(e,r,n)),z.exit(e)}action(e){let r=n=>{let s=this.registeredArguments.length,i=n.slice(0,s);return this._storeOptionsAsProperties?i[s]=this:i[s]=this.opts(),i.push(this),e.apply(this,i)};return this._actionHandler=r,this}createOption(e,r){return new qi(e,r)}_callParseArg(e,r,n ...
14- already used by option '${r.flags}'`)}this.options.push(e)}_registerCommand(e){let r=s=>[s.name()].concat(s.aliases()),n=r(e).find(s=>this._findCommand(s));if
15 - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
16 - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
17 - ${d}`;throw new Error(p)}else if(u.code==="EACCES")throw new Error(`'${o}' not executable`);if(!l)z.exit(1);else{let d=new On(1,"commander.executeSubCommandAsync","(error)");d.nestedError=u,l(d)}}),this.runningCommand=c}_dispatchSubcommand(e,r,n){let s=this._findCommand(e);s||this.help({error:!0});let i;return i=this._chainOrCallSubCommandHook(i,s,"preSubcommand"),i=this._chainOrCall(i,()=>{if(s._executableHandler)this._executeSubCommand(s,r.concat(n));else return s._parseCommand(r,n)}),i}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.he ...
18`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
19`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
20`),this.outputHelp({error:!0}));let n=r||{},s=n.exitCode||1,i=n.code||"commander.error";this._exit(s,i,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&
21`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");let n=this.parent?._findCommand(e);if(n){let s=[n.name()].concat(n.aliases()).join("|");throw new Error(` ...
22Expecting one of '${n.join("', '")}'`);let s=`${e}Help`;return this.on(s,i=>{let o;typeof r=="function"?o=r({error:i.error,command:i.command}):o=r,o&&i.write(`${o}
23`)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();r&&e.find(s=>r.is(s))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Hi(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?s=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],n=i[3],s=i[4]),r&&s!=="0"?`${r}=${n}:${parseInt(s)+1}`:e})}Wi.Command=Rn});var Ji=P(fe=>{var{Argument:zi}=p ...
24causes have become circular...`;let n=Pn(t);return n?(e.add(t),r+`
25caused by: `+eo(n,e)):r},ff=t=>eo(t,new Set),to=(t,e,r)=>{if(!Bt(t))return"";let n=
26${b}`,_=`,
CriticalSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
dist/index.jsView on unpkg · L10 HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.jsView on unpkg · L10 HighObfuscated Payload Loader
Source contains an obfuscator-style string-array loader that reconstructs and executes hidden code.
dist/index.jsView on unpkg · L1 27${b}`);let U=Math.min(w.length,a),W=0;for(;W<U-1;W++){let J=c(String(W),w,m,g,y,b);v+=J!==void 0?J:"null",v+=_}let ee=c(String(W),w,m,g,y,b);if(v+=ee!==void 0?ee:"null",w.length-1>a){let J=w.length-a-1;v+=`${_}"... ${it(J)} not stringified"`}return y!==""&&(v+=`
28${C}`),m.pop(),`[${v}]`}let A=Object.keys(w),E=A.length;if(E===0)return"{}";if(o<m.length+1)return'"[Object]"';let $="",F="";y!==""&&(b+=y,_=`,
29${b}`,$=" ");let q=Math.min(E,a);s&&!vs(w)&&(A=bs(A,i)),m.push(w);for(let U=0;U<q;U++){let W=A[U],ee=c(W,w,m,g,y,b);ee!==void 0&&(v+=`${F}${He(W)}:${$}${ee}`,F=_)}if(E>a){let U=E-a;v+=`${F}"...":${$}"${it(U)} not stringified"`,F=_}return y!==""&&F.length>1&&(v=`
Long lines were clipped for display.