Skip to content

Command line tool to automatically patch link.exe to remove Rich PE Header

Notifications You must be signed in to change notification settings

StackOverflowExcept1on/anonlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anonlink

Build Status Latest Version

Command line tool to automatically patch link.exe to remove Rich PE Header

Why?

TL;DR: when you building exe file with MSVC toolchain, Microsoft leaks some info about your development tools, such as version of compiler and number of C/C++ source files

For more advanced users: The Undocumented Microsoft "Rich" Header

Installing from crates.io

cargo install anonlink

Building

cargo build --release

Usage

:: run as administrator!
cargo run --release
linker path: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\link.exe
Found call instruction at address 140051A96
Found add instruction at address 140051AAA
Patching bytes [03, CF] => [90, 90]

About

Command line tool to automatically patch link.exe to remove Rich PE Header

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages