exe run on browser window
Anybody know how to open/execute an *.exe file by clicking a link without the download prompt, or running an exe file in a browser window?
Although this can be done in ASP, are their any other ways?
Wrapping it in a Java translator wouldnt be an option either, unless its made easier...
I have an exe helper app I want to run on a browser, im trying to recode it for php but its tedious work, so im hoping theres a way to plug it directly into the site...
Greg K posted this at 21:11 — 18th April 2006.
He has: 2,145 posts
Joined: Nov 2003
You are wanting the program to run on the visitor's computer or on the server?
On the visitor's computer, don't think browsers will let it happen becasue of the security issues. (think about about if you visited a site with a link to a exe that was a virus. You don't want that to just "run"). [Also, what if someone hacked your site and changed one of your links to be an exe virus. You would be brosing your own site and then get infected]
Also, what if the visitor is on a mac or linux?
-Greg
demonhale posted this at 02:32 — 19th April 2006.
He has: 3,278 posts
Joined: May 2005
Greg, server side absolutely, I know the concern, I just want to find a way to share an exe prog, the visitor can run serverside... thanks
ptpspptps0 posted this at 16:19 — 19th April 2006.
He has: 52 posts
Joined: Apr 2006
This seems very suspicious to me. I don't want to visit your web site...
Renegade posted this at 04:29 — 19th April 2006.
He has: 3,022 posts
Joined: Oct 2002
Ok, think of yourself browsing a site and having it executing an exe. Would you want it to happen?
Now think of a host having an exe file which they have absolutely no idea what it is running on their server.
Why would you want it to run anyway? What does it do? Can you do without it? What happens if your host is running a linux server (linux doesn't run .exe files)?
demonhale posted this at 05:05 — 19th April 2006.
He has: 3,278 posts
Joined: May 2005
You can run exe by using ASP serverside, and you can do an MS exploit to make it copy itself and run on the BG... although those mentioned I dont want to do, I want to find a way to run an exe file either by wrapping it in a flash program or make it run through java applet... Its a tool I programmed, and I have no time to reprogram it in a platform that could run in the web... I dont want people to download it either...
timjpriebe posted this at 12:28 — 19th April 2006.
He has: 2,667 posts
Joined: Dec 2004
You're wanting a program to be run server-side that's a standard EXE? It would help if we knew more about what you're trying to accomplish. What kind of output would the EXE program have?
Most likely, you will have to put an execute statement within some sort of scripting language like ASP. Why are you not wanting to do it that way?
Tim
http://www.tandswebdesign.com
dk01 posted this at 18:18 — 19th April 2006.
He has: 516 posts
Joined: Mar 2002
Its impossible. The only way you could do it would be to set the security to very low and even then you'd have to basically make a trojan that would run only if the user was running IE. Frankly this just isn't done. Its considered a security breach and would require some truly ugly VBS code and security settings.
timjpriebe posted this at 18:24 — 19th April 2006.
He has: 2,667 posts
Joined: Dec 2004
Guys, he's wanting to run a program server-side. That's completely different from client-side. Client-side would pose a threat to your computer. Server-side, not so much.
If the Flash is in an HTML page, you could load an ASP page in a small, basically invisible iframe, then have that run the executable.
Does the EXE require any user input after initially launched?
Tim
http://www.tandswebdesign.com
ptpspptps0 posted this at 18:26 — 19th April 2006.
He has: 52 posts
Joined: Apr 2006
On the contrary. Assuming he's using a Windows-based machine, and "1337 H4XXOR" could DoS him by repeating this until the process locked up.
Or, I think.
timjpriebe posted this at 19:12 — 19th April 2006.
He has: 2,667 posts
Joined: Dec 2004
You think correctly, but that still wouldn't pose a threat to your computer. It would pose a threat to his web server, a completely different animal altogether.
Tim
http://www.tandswebdesign.com
ptpspptps0 posted this at 18:24 — 19th April 2006.
He has: 52 posts
Joined: Apr 2006
I've got it!
If you were to run this locally (which I'm sure your devious mind wasn't intending), you could specify a filetype to execute a program, as if it were a scripting platform! Say, an "href" to a '.dos' file, and your server would run (locally) "C:\WINDOWS\system32\cmd.exe".
I'm going to do this.
dk01 posted this at 18:51 — 19th April 2006.
He has: 516 posts
Joined: Mar 2002
I don't think he is trying to do anything devious. Just something over a lan intranet probably. Are you on a Windows Domain? If so you are better off putting this program on a network share and just have your domain server create a shortcut on your user's desktop whenever they login. Running a program out of a web browser defeats the point of having a web browser.
Greg K posted this at 19:10 — 19th April 2006.
He has: 2,145 posts
Joined: Nov 2003
[EDIT: This was supposed to be posted about 35 minutes before it was, so it is a little out of order Forgot to refresh thread before final submitting]
Macwell and dk01, it has been determined that this is something he wants to run on the server, not the visitor's computer.
I guess the next step is to answer the question of what does the program need for input (ie, command line parameters or GUI interface) and what does it give four output (visual output or just final results).
If it was jsut using command line arguments for input and just plain text output, you could probably execute it and ppe the output to a temp file and have ASP read that.
If it is a GUI with visual output, then you would need some type of web based virtual environment. I know Corel Draw for one version used a service for this for trial once. But I doubt there are many free do it yourself systems like this, mainly just services you have to pay for, and I bet quit a bit.
Perhaps get a windows system, someone to heavily lock it down from any use other than your program, and have a java based VNC type connection???
-Greg
demonhale posted this at 22:26 — 19th April 2006.
He has: 3,278 posts
Joined: May 2005
Ok to clear the air for any remarks regarding my site having to infect yours or have devious content, I can do that if I wanted to, although im running a ligitimate business and I can be sued...
Im developing an app which only uses one drop-down menu that actively changes the GUI, very simple light-weight 40kb program that I wrote... And as previously stated it can be done with ASP... it also could be done by wrapping it in a JAVA (Sun) not script functions by coding which is fairly difficult to do for just a small program...
Ok now, this discussion is not thoroughly in the net for fears of the same kind, although there is actually an exploit you can do for MS systems to run exe in the background... I dont want to use that still... I want legal and legitimate and especially easy solutions... as we discuss here, im trying to look for ways to implement this too.
So thanks so far for all the replies,
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.