Coder Social home page Coder Social logo

cruninstaller's Introduction

Build status CodeFactor Codacy Badge MIT License visitors Downloads

CRUNInstaller

A crappy project that I am experimenting to be able to interact with the computer from web pages

Default Options

showwindow boolean: Hides or shows the file of the process

shellexecute boolean: Turn on shell execute

uac boolean: Request admin elevation to the file

cd (string): Sets the current directory to the specified one, usefoul to specify where to download the files

run (string): The file path or the url of the file or the command in case of (cmd | ps1 | eps1)

args (string): The arguments of the file to run

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:

RUN

Runs the file based in the default options

CMD

Runs a cmd based in the default options

autoclose (boolean): Auto closes the cmd after it end whatever is running

PS1

autoclose (boolean): Auto closes the powershell after it end whatever is running

EPS1

autoclose (boolean): Auto closes the powershell after it end whatever is running

ZIP

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

Examples

//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";

cruninstaller's People

Contributors

mrgaton avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.