You can create your own map to get new names from old ones. Mapper should write a sort table to disk / db with the following structure: Module (executable file), index, OriginalType, ObfuscatedType
Create a console application "Mapper" that works in two modes based on the argument: The application will receive the execution path as an argument
- Assembly loading
- GetTypes from loadedAssembly
- PreObfuscation deletes all records and re-writes indexes and OriginalType values. PostObfuscation ObfuscatedType updates by index. Post-build events should be as follows:
- Mapper.exe "target.exe" "Pre"
- [Blackout]
- Mapper.exe "target.exe" "Message"
Now you need a function for getObfuscatedName from OriginalName, and you're done.
Please note that this solution will not work with cropping, as the number of types will change and the indexes will no longer match between
OriginalAssembly.GetTypes()
and
ObfuscatedAssembly.GetTypes()
Cogent
source share