https://github.com/stackoverflowexcept1on/anonlink
Command line tool to automatically patch link.exe to remove Rich PE Header
https://github.com/stackoverflowexcept1on/anonlink
linker patcher pe-file rust windows
Last synced: 9 months ago
JSON representation
Command line tool to automatically patch link.exe to remove Rich PE Header
- Host: GitHub
- URL: https://github.com/stackoverflowexcept1on/anonlink
- Owner: StackOverflowExcept1on
- Created: 2022-09-16T18:30:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T09:41:09.000Z (over 1 year ago)
- Last Synced: 2025-04-06T19:38:29.459Z (9 months ago)
- Topics: linker, patcher, pe-file, rust, windows
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# anonlink
[](https://github.com/StackOverflowExcept1on/anonlink/actions/workflows/ci.yml)
[](https://crates.io/crates/anonlink)
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](http://web.archive.org/web/20240229114512/https://bytepointer.com/articles/the_microsoft_rich_header.htm)
### Installing from [crates.io](https://crates.io/crates/anonlink)
```bat
cargo install anonlink
```
### Building
```bat
cargo build --release
```
### Usage
```bat
:: 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]
```