Title: Is there an editing tool to create a binary PE file in windows?
Tags: reverse-engineering;portable-executable
Question: This answer provided a way to create a binary file in linux, is there such a convenient tool for windows?

Comment: The linker does this.  What are you trying to create the binary from?

Comment: No,I need an editing tool to do this.Just to facilitate learning PE.


Here is another answer: You can start from here: http://www.phreedom.org/solar/code/tinype/ , then modify one of the files using a PE editor (e.g. CFF Explorer).

Programmatically, in Python you can use pefile to read/write the PE structure.


Here is another answer: Try LordPE or PEBrowser.

Comment for this answer: It is an error start from scratch a PE. Leave it to the linker. Compile a simple program, open it with a PE Editor and modify all that you want. Check this http://www.woodmann.com/collaborative/tools/index.php/Category:RCE_Tools

Here is another answer: Recompile those tools on windows? Shouldn't be too hard to do against a cygwin or mingw base environment.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 3, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2010:00:09/18/10', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<reverse-engineering><portable-executable>', 'Title': 'Is there an editing tool to create a binary PE file in windows?', 'ViewCount': 508, 'id': 3742321, 'user_AboutMe': None, 'user_AccountId': 652319.0, 'user_DisplayName': 'COMer', 'user_Reputation': 1057.0, 'user_Views': 121.0, 'user_id': 444905.0}}