Question:
How can I convert EXE files into a HTTP code?
?
2009-06-18 02:27:01 UTC
I want to convert EXE files into HTTP. If your name is MUYANG GAO, don't post in this.
Four answers:
Just Jess
2009-06-20 14:38:37 UTC
1. Find a disassembler/decompiler, resource extractor, etc. Here's a sample, http://web.vip.hr/inga.vip/index.htm

2. Run it on your exe file and open up the resulting code with your favorite text editor

3. Go through and rename as many variables as you can into something that makes sense in English

4. Using your text editor's find/replace function, wrap different parts of the source code in different tags, so that they show up in different fonts, colors, and styles. There are code beautifiers that will do this for you, here is an example http://www.faqs.org/docs/Linux-HOWTO/C-C++Beautifier-HOWTO.html

5. If you were using a resource extractor, link all the images in tags, and use tags for other kinds of media

6. Add your , , and tags to the resulting source



Now you have an html representation of an exe file :D



If you want to run the html file as if it were an exe file,

1. Write or download a command line filter program that will get rid of all the html in a file

2. Read the program into your filter, and run the result through a compiler

3. Test the resulting program, and adjust the source until it works properly. You may need the windows api reference for this, you can find it here http://msdn.microsoft.com/en-us/library/aa383749(VS.85).aspx
2009-06-18 02:37:12 UTC
It's not possible. If people could turn EXE files into HTML, then every website you visit could be a virus!



You can link to an EXE file from HTML however. When a user clicks the link, they are prompted with a "save or run" screen:

Download



If you want to embed it in your website you need the program to be written in Flash or Java.
binarystarr01
2009-06-18 02:34:42 UTC
HTTP is a protocol, not a code. Even if you are talking about HTML it is not possible as an EXE is a compiled program - you can't simply convert one to the other.
?
2009-06-18 02:55:58 UTC
it is impossible to do so.



-muyang gao


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...