strdec is an IDAPython tool for automatic decryption of string literals, encrypted with the Nim's module strenc
.
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.
-
Load the binary in IDA Pro.
-
Go to
File > Script file...
or hitAlt+F7
and load the scriptstrdec.py
. -
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.
- The tool is written in Python3.
- Only
PE
andELF
binaries are currently supported. - strdec has been tested with IDA Pro 7.6, 8.x and 9.x.