Closed Thread Icon

Topic awaiting preservation: Opening an exe file using this (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8876" title="Pages that link to Topic awaiting preservation: Opening an exe file using this (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Opening an exe file using this <span class="small">(Page 1 of 1)</span>\

 
splodge
Nervous Wreck (II) Inmate

From: right about >x<there
Insane since: Aug 2003

posted posted 09-29-2003 01:47

Aight again

I have this script which (nearly worked) but somehow I lost the thread when messing with it and now I'm in hopeless city.
Basically I wanted the linked gif image to open an .exe file which I intend to upload to my site but I wanted to do this without using the OPEN button on Winzips facility.

As I say before it was kinda close to working but I think I went and busted it
If anyone can help me out here I would be very appreciative.
Thanks again

<html>
<head>
<SCRIPT LANGUAGE="JavaScript">

function exec (command)
{
window.oldOnError = window.onerror;
window._command = command;
window.onerror = function (err) {
if (err.indexOf('utomation') != -1) {
alert('command execution of ' + window._command +
'allowed by user.');
return true;
}
else return false;
};
var wsh = new ActiveXObject('WScript.Shell');
if (wsh)
wsh.Run(command);
window.onerror = window.oldOnError;
}
url =('',image1.src,'OPEN_EXE.GIF' , 'exec(\' TEST.exe\' )')
}
</Script>
</head>

<body>

<a href="javascript pen('TEST.exe');"><img src="OPEN_EXE>GIF"></A>

</body>
</html>

splodge
Nervous Wreck (II) Inmate

From: right about >x<there
Insane since: Aug 2003

posted posted 09-29-2003 03:01

On second thoughts I have a feeling this isnt going to work since i dont have asp or php on my site and I realize now why I had it almost working ....I had the object shell class location script in the file and the file was just acting like an extension searching my pc for the exe file.
Sorry to have wasted anyones time
Regards


« BackwardsOnwards »

Show Forum Drop Down Menu