Created
March 3, 2018 22:35
-
-
Save herrcore/473133aa1387ed0b08a67d1a221b5b09 to your computer and use it in GitHub Desktop.
Simple string decryptor for Gootkit packer (IDAPython script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import idautils | |
import idaapi | |
import idc | |
def string_decrypt(data_ea, data_len): | |
data = idc.GetManyBytes(data_ea, data_len) | |
key = '89798798798g79er$' | |
out = 'str_' | |
for i in range(0 , len(data)): | |
out += chr(ord(data[i]) ^ ord(key[i%len(key)])) | |
print out | |
idc.MakeName(data_ea, out) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment