Friday, November 18, 2011

How can I convert EXE files into a HTTP code?

I want to convert EXE files into HTTP. If your name is MUYANG GAO, don't post in this.|||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 %26lt;span%26gt; 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鈥?/a>


5. If you were using a resource extractor, link all the images in %26lt;img src=""%26gt; tags, and use %26lt;embed%26gt; tags for other kinds of media


6. Add your %26lt;html%26gt;, %26lt;head%26gt;, and %26lt;body%26gt; 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/鈥?/a>|||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.|||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:


%26lt;a href="prog.exe"%26gt;Download%26lt;/a%26gt;





If you want to embed it in your website you need the program to be written in Flash or Java.|||it is impossible to do so.





-muyang gao

No comments:

Post a Comment