Download and run the EXE file after downloading the website

Is there any way to download and run the exe file on the client side after loading the web page? [with java script or HTML]

+3
source share
7 answers

To do this, there are (for example, ||) several JS-interfaces that are most likely blocked by modern browsers for obvious security reasons.

Thus, your clients trust you and install the extensions [FF / IE / Safari / etc.] Or ...

However, regarding the FF extension method, see my answer in this.

:

Starting an external application in accordance with this post can be done as follows:

var file = Components.classes["@mozilla.org/file/local;1"]
                     .createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("c:\\myapp.exe");
file.launch();

IE

<script lang='vbscript'>
    set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "C:\program files\program\program.exe"
</script>
+2

MSIE ActiveX , ActiveX. - (, ), . " ", , ; ( , (!)).

" JS/HTML ", " " . , , ( , - - format c: ?).

+2

-, Java Web Start.

Java-only, , - , .EXE.

, , - .

+2

, exe , , , , exe, - , vulnrability.

exe? javascript . , , , - .net, , , , , .

+1

- , . - , .

.

- , - JavaScript, , exe - , , .

, - , , active-x ( ).

+1

, .


-:
. flash- ( 9, ), . , ( , windows/mac). . .

+1

, . - HTML/Javascript, , Flash, . ( , .)

0

Source: https://habr.com/ru/post/1722557/


All Articles