How to write and executable Windows .exe manually (machine code with Hex editor)?

后端 未结 6 579
野趣味
野趣味 2021-01-30 07:06

I\'d like to know how is it possible to write something as simple as an Hello World program just by using an Hex Editor. I know that I could use an assembler and assembly langua

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 07:17

    I make binaries by hand, but I think it's easier in assembly itself than a pure hex editor, where updating anything would be difficult.

    • The easiest is surely DOS COM format, which you can even type in notepad, or at least, it's very easy even for a normal Hello World.

    • The EXE (non DOS format) doesn't require much either see here.

    • If you're trying to make a PE, you can make a TinyPE.

    Most binaries should be available as PE, and EXE and COM.

提交回复
热议问题