Windows Script Host (WSH)
Last updated
Was this helpful?
Last updated
Was this helpful?
Windows scripting host is a built-in Windows administration tool that runs batch files to automate and manage tasks within the operating system. It is a Windows native engine, cscript.exe (for command-line scripts) and wscript.exe (for UI scripts), which are responsible for executing various Microsoft Visual Basic Scripts (VBScript), including vbs and vbe.
let's use the VBScript to run executable files. The following vbs code is to invoke the Windows calculator, proof that we can execute .exe files using the Windows native engine (WSH).
We can now execute the vbs script on the target machine
A trick is to change the .vbs extension by a randomly choosen one.