Skip to content

Obfuscate the bytes of your payload with an association dictionary

License

Notifications You must be signed in to change notification settings

ProcessusT/Dictofuscation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dictofuscation

Code obfuscation with association dictionnary

The use of a shellcode encoder by dictionary association is in the same logic as obfuscation by IP address, by Mac address or UUID, but includes linguistic consistency. This project merges security and linguistic engineering for advanced concealment.

Why strings

Some antiviruses may consider that the presence of English strings in the compiled data of a binary are considered as a historical indicator and reinforce its legitimacy against detection engines. Dictionary association does not increase entropy and allows complex data encoding to be reversed.

Execution

By default, the encoder takes a list of words from MIT, but you can also create your own. It calculates each hexadecimal value from 0x00 to 0xFF and associates a word with it. Then, each byte of your shellcode is converted to hexadecimal and encoded with the corresponding word. You can do the exact opposite in C# to get your shellcode.



COMPILATION


For C# :

> Generate your RAW shellcode file<br />
> Use the encoder to obfuscate it : python.exe .\encode_cs.py .\payload.bin<br />
> Compile your C# dropper : csc.exe /target:library /platform:x64 /out:.\malware.dll .\generated_code.cs<br />

For C++ :

> Generate your RAW shellcode file<br />
> Use the encoder to obfuscate it : python.exe .\encode_cpp.py .\payload.bin<br />
> Create a new C++ Console project in Visual Studio<br />
> Copy and paste the generated_code.cs content and build your project<br />




About

Obfuscate the bytes of your payload with an association dictionary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages