exe run on browser window

demonhale's picture

He has: 3,278 posts

Joined: May 2005

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's picture

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's picture

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

He has: 52 posts

Joined: Apr 2006

demonhale wrote: 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

This seems very suspicious to me. I don't want to visit your web site...

Renegade's picture

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's picture

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's picture

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?

dk01's picture

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's picture

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?

He has: 52 posts

Joined: Apr 2006

timjpriebe wrote: 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.

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's picture

He has: 2,667 posts

Joined: Dec 2004

Maxwell wrote: 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.

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.

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's picture

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's picture

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 Wink 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's picture

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.