Skip to content

An IDAPython tool for automatic decryption of string literals encrypted with the Nim's module "strenc".

License

Notifications You must be signed in to change notification settings

rasti37/nim-strdec-ida

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strdec - IDAPython tool for Nim string literal decryption

strdec is an IDAPython tool for automatic decryption of string literals, encrypted with the Nim's module strenc.

📓 About

This python tool decrypts all the string literals inside the loaded binary. The strenc module encrypts the string literalls with simple XOR encryption so one can re-apply the encryption to decrypt the strings. For many literals, it can be annoying to do manually so that's why I made this automation tool.

Note

The script modifies the database by setting a comment with the decrypted string literal.

🎞️ Demonstration

🚧 How to use

  1. Load the binary in IDA Pro.

  2. Go to File > Script file... or hit Alt+F7 and load the script strdec.py.

  3. Done.

Important

Make sure you do not rename the strenc symbol. By default, it should contain the identifier gkkaekgaEE. If the symbols are stripped, you will have to find the function yourself and give it a name that contains this identifier. Then the tool should work normally.

📝 Notes

  • The tool is written in Python3.
  • Only PE and ELF binaries are currently supported.
  • strdec has been tested with IDA Pro 7.6, 8.x and 9.x.

About

An IDAPython tool for automatic decryption of string literals encrypted with the Nim's module "strenc".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages