-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathstring_decoder.c
More file actions
56 lines (52 loc) · 762 Bytes
/
string_decoder.c
File metadata and controls
56 lines (52 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <stdio.h>
int main(int argc, char * argv[]) {
/* Extracted from 5.6 ioncube loader */
char encryption_data[] = {
0x25,
0x68,
0xd3,
0xc2,
0x28,
0xf2,
0x59,
0x2e,
0x94,
0xee,
0xf2,
0x91,
0xac,
0x13,
0x96,
0x95
};
/* Replace with your dataz. Remember not to include the 0x00 at the end */
char encrypted_string[] = {
0x9b,
0x36,
0x40,
0xd7,
0x9b,
0x90,
0xf4,
0x8c,
0x56,
0xe0,
0xf0,
0x4b,
0x1c,
0xf3,
0x8a,
0x49,
0x9c,
0x3d,
0x42,
0xf1,
0x9c,
0xf2
};
int size = sizeof(encrypted_string);
for (int i = 0; i < size; i++) {
encrypted_string[i] = encrypted_string[i] ^ encryption_data[(size + i - 1) % sizeof(encryption_data)];
}
printf("%s\r\n", encrypted_string);
}