views:

44

answers:

3

This answer provided a way to create a binary file in linux, is there such a convenient tool for windows?

A: 

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

crazyscot
Not by compiling ...
COMer
A: 

Try LordPE or PEBrowser.

dgarcia
How to do it with LordPE?
COMer
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
dgarcia
A: 

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.

Vlad