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]
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();
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>
MSIE ActiveX , ActiveX. - (, ), . " ", , ; ( , (!)).
" JS/HTML ", " " . , , ( , - - format c: ?).
format c:
-, Java Web Start.
Java-only, , - , .EXE.
, , - .
, exe , , , , exe, - , vulnrability.
exe? javascript . , , , - .net, , , , , .
- , . - , .
.
- , - JavaScript, , exe - , , .
, - , , active-x ( ).
, .
-:. flash- ( 9, ), . , ( , windows/mac). . .
, . - HTML/Javascript, , Flash, . ( , .)
Source: https://habr.com/ru/post/1722557/More articles:SAS Script Recording - loggingadding new namespace declaration to spring configuration using spring IDE - eclipseIs it possible to call call-cc in Go? - gohaskell grouping problem - haskellhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1722556/what-are-some-options-to-store-images-securely-other-than-storing-on-database&usg=ALkJrhgjtbyZjkC-oXQNYCf_pSToztY0SQHow to access webpage data from Firefox extension? - javascriptHow do I reference the base URLs for images in XAML in Silverlight? - global-variablesError GStreamer gst_element_factory_make - c ++Translating the Q and P function from the "Small Schema" to the "General" Lisp? - lispHow can I store and retrieve British pound symbols? - javascriptAll Articles