A crappy project that I am experimenting to be able to interact with the computer from web pages
cd
(string): Sets the current directory to the specified one, usefoul to specify where to download the files
files
(string): Files uris to download separated by char |
wich the file name can be specified after a ^
example:
files="/~https://github.com/file.exe^f1.exe|/~https://github.com/otherFile.exe^f2.exe"
Examples:
Runs the file based in the default options
Runs a cmd based in the default options
zip
(string): The link of the zip to be downloaded, can also changed the name of the folder based on ^
can be null to be downloaded on the current dir, by default is downloaded on the current dir plus the hash of the zip uri
//Shutdown computer in 40 seconds
crun.exe cmd run="shutdown /s /t 40 /f"
//Hello world in Base64 encoded powershell command
crun.exe eps1 showwindow=1 autoclose=0 run="ZQBjAGgAbwAgACIASABlAGwAbABvACAAdwBvAHIAbABkACIA"
//Run sfc scannow
crun.exe run showwindow=1 shellexecute=1 uac=1 run="sfc" args="/ScanNow"
To use from a website
var iframe = document.createElement("iframe");
iframe.style.display = "none";
document.body.appendChild(iframe);
iframe.src = "crun://run/true/true/cmd";