Skip to content

A minimal C project for creating Windows PE (Portable Executable) EXE files. Includes an example and a header library (pe_header.h) for building and manipulating PE file structures programmatically.

License

Notifications You must be signed in to change notification settings

sergioburdisso/pe_exe_creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PE EXE Creator

A minimal C project for creating Windows PE (Portable Executable) EXE files. This repository contains:

  • pe_header.h: Header library for building and manipulating PE file structures programmatically.
  • example.c: Example program that demonstrates how to generate a minimal PE executable from raw x86 machine code and data buffers using the library.

Features

  • Build PE headers and sections from user-provided x86 instructions and data.
  • Generate a working .exe file for Windows (x86).
  • Educational and easy to modify for your own experiments.

Usage

  1. Clone or download this repository.
  2. Compile the example:
gcc example.c -o run_example
  1. Run the example (on Windows):
./run_example

This will generate my_compiled_program.exe in the current directory.

License

MIT License. See source files for details.

About

A minimal C project for creating Windows PE (Portable Executable) EXE files. Includes an example and a header library (pe_header.h) for building and manipulating PE file structures programmatically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages