0

Is it possible to open notepad and type some gibberish and save it as a .exe file and run it? :mrgreen:

4
Contributors
4
Replies
6
Views
13 Years
Discussion Span
Last Post by Nuez_Jr
1

>Is it possible to open notepad and type some gibberish and save it as a .exe file and run it?
If you want to work out the machine code for your system that would be equivalent for a properly assembled executable, then figure out what combination of keyboard characters will give you that machine code...I suppose it might be possible to do this if Notepad doesn't add anything in the process of saving the file as an executable.

0

Not in Notepad, no. In a hex editor, maybe with a ton of patience. But an exe generally has a header record and sections with headers before them and the like. Try using DUMPBIN on a small exe and see how much crud is in there.

Using a hex editor you could modify an existing exe, but even that would take more patience than its worth.

That's why the compilers were invented, after all!

0

Not in Notepad, no. In a hex editor, maybe with a ton of patience.

Does Windows filter the input so much that typing ALT+(ASCII) codes won't produce the right results?

*Nuez goes to check.

Yeah, guess it does. :rolleyes:

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.