generic_js_file

Description

Generates a JScript (.JS) file that executes a specified command when run.

Overview

Generates a JScript file that runs the specified command via WScript.Shell ActiveX object. Executed by wscript.exe, providing a LOLBin execution path distinct from PowerShell.

Parameters

Name Type Description
Command string The command to execute.
WindowStyle int Window style (0 = hidden). Default: 0.
Scroll to Top