String Decryption, Ida database
Adding a tool for decrypting strings however I'm not familiar with ida python or python in general. so you have to enter strings manually. In the database there is a func named Main2, it looks like some forum of memory communication by writing to something however it is not used
This commit is contained in:
24
Tools/main.cpp
Normal file
24
Tools/main.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <defs.h>
|
||||
|
||||
void Decrypt(int a1, int size)
|
||||
{
|
||||
unsigned int i; // [esp+10h] [ebp-4h]
|
||||
|
||||
for (i = 0; i <= (size - 2); ++i)
|
||||
*(char*)(a1 + i) ^= (char)i + 3;
|
||||
*(char*)(a1 + (size - 1)) = 0;
|
||||
}
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
char string[] = "Pgdhiagm+jb|/";
|
||||
|
||||
Decrypt((int)string, sizeof(string));
|
||||
|
||||
std::cout << string << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user