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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322
| #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <memory.h> #include <string.h> #include <math.h> #include "defs.h" #include <setjmp.h>
typedef uint32_t uint; typedef int8_t byte; int key[8]; jmp_buf out; void printArray(const char* name, uint8_t* v, size_t len) { printf("========%s=========\n", name); for (size_t i = 0; i < len; i++) { printf("0x%02X,", v[i]); if (i && (i &7 )==7)printf("\n"); } printf("\n=================\n"); } typedef struct EditStru { uint8_t data[64]; uint32_t cnt; uint32_t p1; uint64_t maxLen; } EditStru; uint32_t dword_7FF788114384 = 0x6a81; uint8_t byte_7FF788114391 = 0x55; uint32_t dword_7FF788114394 = 0x3fc3; uint32_t byte_7FF788114398 = 0x14; uint8_t byte_7FF788114388 = 0x73; uint32_t dword_7FF78811438C = 0x69f9; uint8_t byte_7FF788114390 = 0xd6; uint8_t byte_7FF788114399 = 0xe9; uint32_t dword_7FF78811439C = 0x6168; uint32_t dword_7FF78811420C = 0x1489; uint32_t dword_7FF788114210 = 0x4ab2; uint32_t dword_7FF788114214 = 0x5e35; uint32_t dword_7FF788114218 = 0x70d3; uint32_t dword_7FF78811421C = 0x70b9; uint32_t dword_7FF788114220 = 0x1c81;
uint8_t a3[] = { 152, 47, 138, 66, 145, 68, 55, 113, 207, 251, 192, 181, 165, 219, 181, 233, 91, 194, 86, 57, 241, 17, 241, 89, 164, 130, 63, 146, 213, 94, 28, 171, 152, 170, 7, 216, 1, 91, 131, 18, 190, 133, 49, 36, 195, 125, 12, 85, 116, 93, 190, 114, 254, 177, 222, 128, 167, 6, 220, 155, 116, 241, 155, 193, 193, 105, 155, 228, 134, 71, 190, 239, 198, 157, 193, 15, 204, 161, 12, 36, 111, 44, 233, 45, 170, 132, 116, 74, 220, 169, 176, 92, 218, 136, 249, 118, 82, 81, 62, 152, 109, 198, 49, 168, 200, 39, 3, 176, 199, 127, 89, 191, 243, 11, 224, 198, 71, 145, 167, 213, 81, 99, 202, 6, 103, 41, 41, 20, 133, 10, 183, 39, 56, 33, 27, 46, 252, 109, 44, 77, 19, 13, 56, 83, 84, 115, 10, 101, 187, 10, 106, 118, 46, 201, 194, 129, 133, 44, 114, 146, 161, 232, 191, 162, 75, 102, 26, 168, 112, 139, 75, 194, 163, 81, 108, 199, 25, 232, 146, 209, 36, 6, 153, 214, 133, 53, 14, 244, 112, 160, 106, 16, 22, 193, 164, 25, 8, 108, 55, 30, 76, 119, 72, 39, 181, 188, 176, 52, 179, 12, 28, 57, 74, 170, 216, 78, 79, 202, 156, 91, 243, 111, 46, 104, 238, 130, 143, 116, 111, 99, 165, 120, 20, 120, 200, 132, 8, 2, 199, 140, 250, 255, 190, 144, 235, 108, 80, 164, 247, 163, 249, 190, 242, 120, 113, 198 };
__int64 extendSpace(_DWORD* a1, __int64 a2) { int v2; int v3; int v4; int v5; unsigned __int64 v6; int v7; unsigned __int64 v8; int v9; int v10; unsigned int v11; int v12; int v13; unsigned __int64 v14; int v15; unsigned __int64 v16; int v17; int v18; unsigned int v19; int v20; int v21; int v22; int v23; int v24; int v25; int v26; int v27; int v28; int v29; int v30; int v31; int v32; int v33; int v34; int v35; __int64 result; unsigned int v37; unsigned int i; unsigned int v39; unsigned int v40; unsigned int v42; unsigned int v43; unsigned int v44; unsigned int v45; unsigned int v46; unsigned int v47; unsigned int v48; int v49; int v50[66];
v37 = 2 * (dword_7FF78811420C | 0xFFFFEB77) - (~dword_7FF78811420C & 0xFFFFEB77) - (((unsigned __int16)dword_7FF78811420C | 0xEB77) & 0x1488); v42 = 2 * (dword_7FF788114210 | 0x4AB2) - 19122 - dword_7FF788114210; while (v37 < ~dword_7FF788114214 + (dword_7FF788114214 | 0x5E25) - (~dword_7FF788114214 | 0x5E25u)) { v2 = *(char*)(a2 + (v42 ^ 1) + 2 - 2 * ((v42 & 1) == 0)) << 16; v3 = ~(v2 & (*(char*)(a2 + v42) << 24)) + v2 + (*(char*)(a2 + v42) << 24) + 1; v4 = *(char*)(a2 + (~v42 | 2) + (v42 | 2) + v42 + 1) << 8; v5 = *(char*)(a2 + (v42 | 3) + 3 - (~(_BYTE)v42 & 3)); v50[v37] = (v5 | ~(~(v4 & v3) + v4 + v3 + 1)) + (v5 ^ (~(v4 & v3) + v4 + v3 + 1)) + ~(v4 & v3) + v4 + v3 + 1 + 1; v37 = 2 * (v37 & 1) + (v37 & 0xFFFFFFFE) + ((v37 & 1) == 0); v42 += (~v42 | 4) + (v42 | 4) + 1; } while (v37 < (~(_WORD)dword_7FF788114218 & 0x7093) + (dword_7FF788114218 | 0x7093u) - 28819) { v6 = (unsigned __int64)(unsigned int)v50[v37 - 2] << 15; v7 = ~(v6 & HIDWORD(v6)) + v6 + HIDWORD(v6) + 1; v8 = (unsigned __int64)(unsigned int)v50[v37 - 2] << 13; v9 = ~(v8 & HIDWORD(v8)) + v8 + HIDWORD(v8) + 1; v10 = (v9 & ~v7) + (v9 | v7) - v9; v11 = (unsigned int)v50[v37 - 2] >> 10; v12 = v50[v37 - 7]; v13 = (v12 | ~(~v10 + (v11 | v10) - (v11 | ~v10))) + (v12 | (~v10 + (v11 | v10) - (v11 | ~v10))) + ~v10 + (v11 | v10) - (v11 | ~v10) + 1; v14 = (unsigned __int64)(unsigned int)v50[v37 - 15] << 25; v15 = (v14 | ~HIDWORD(v14)) + (v14 ^ HIDWORD(v14)) + HIDWORD(v14) + 1; v16 = (unsigned __int64)(unsigned int)v50[v37 - 15] << 14; v17 = (~(v50[v37 - 15] << 14) & HIDWORD(v16)) + (v16 & ~HIDWORD(v16)) + (v16 & HIDWORD(v16)); v18 = 2 * (v17 & ~v15) + v15 - v17; v19 = (unsigned int)v50[v37 - 15] >> 3; v20 = 2 * (v19 | v18) - v19 - v18 + ((2 * (v19 | v18) - v19 - v18) | v13) - ((2 * (v19 | v18) - v19 - v18) & ~v13); v21 = v50[v37 - 16]; v50[v37] = 2 * (v21 & v20) + (~v21 & v20) + (v21 & ~v20); v37 += (~v37 | 1) + (v37 | 1) + 1; } v40 = a1[20]; v44 = a1[21]; v43 = a1[22]; v48 = a1[23]; v39 = a1[24]; v46 = a1[25]; v45 = a1[26]; v47 = a1[27]; for (i = 2 * (~(_WORD)dword_7FF78811421C & 0x70B9) + dword_7FF78811421C - 28857; i < (~(_WORD)dword_7FF788114220 & 0x1CC1) + -1 - (~dword_7FF788114220 | 0x1CC1u); i = 2 * (i & 1) + (i & 0xFFFFFFFE) + ((i & 1) == 0)) { v22 = (~(v39 << 21) | (v39 >> 11)) + (v39 << 21) + ((v39 << 21) ^ (v39 >> 11)) + 1; v23 = ~(~((v39 << 26) & (v39 >> 6)) + (v39 << 26) + (v39 >> 6) + 1) + (v22 | (~((v39 << 26) & (v39 >> 6)) + (v39 << 26) + (v39 >> 6) + 1)) - (v22 | ~(~((v39 << 26) & (v39 >> 6)) + (v39 << 26) + (v39 >> 6) + 1)); v24 = (v39 << 7) + ((v39 << 7) ^ (v39 >> 25)) - ((v39 << 7) & ~(v39 >> 25)); v25 = 2 * ((2 * (v24 | v23) - v24 - v23) & v47) + (~(2 * (v24 | v23) - v24 - v23) & v47) + ((2 * (v24 | v23) - v24 - v23) & ~v47); v26 = (v45 & ~v39 & ~(v46 & v39)) + (v45 & ~v39 | v46 & v39) - (v45 & ~v39); v27 = 2 * (v26 & v25) + (~v26 & v25) + (v26 & ~v25); v28 = *((_DWORD*)a3 + i); v29 = (v28 | ~v27) + (v28 | v27) + v27 + 1; v49 = 2 * (v50[i] & v29) + (~v50[i] & v29) + (v50[i] & ~v29); v30 = ~((v40 << 19) & (v40 >> 13)) + (v40 << 19) + (v40 >> 13) + 1; v31 = (v30 & ~((v40 << 30) + ((v40 << 30) ^ (v40 >> 2)) - ((v40 << 30) & ~(v40 >> 2)))) + (v30 | ((v40 << 30) + ((v40 << 30) ^ (v40 >> 2)) - ((v40 << 30) & ~(v40 >> 2)))) - v30; v32 = ~((v40 << 10) & (v40 >> 22)) + (v40 << 10) + (v40 >> 22) + 1; v33 = 2 * (v32 & ~v31) + v31 - v32; v34 = 2 * (v43 & v44 | ((v43 & v40 & ~(v44 & v40)) + (v43 & v40 | v44 & v40) - (v43 & v40))) - (v43 & v44) - ((v43 & v40 & ~(v44 & v40)) + (v43 & v40 | v44 & v40) - (v43 & v40)); v47 = v45; v45 = v46; v46 = v39; v39 = 2 * (v49 | v48) - (v49 & ~v48) - (~v49 & (v49 | v48)); v48 = v43; v43 = v44; v44 = v40; v35 = 2 * (v34 | v33) - (v34 & ~v33) - (~v34 & (v34 | v33)); v40 = (v35 | ~v49) + (v35 | v49) + v49 + 1; } a1[20] += (v40 | ~a1[20]) + (v40 | a1[20]) + 1; a1[21] = 2 * (v44 | a1[21]) - (v44 & ~a1[21]) - (~v44 & (v44 | a1[21])); a1[22] = 2 * (v43 | a1[22]) - (v43 & ~a1[22]) - (~v43 & (v43 | a1[22])); a1[23] = 2 * (v48 | ~a1[23]) + (v48 ^ a1[23]) - 2 * ~a1[23]; a1[24] += (v39 | ~a1[24]) + (v39 | a1[24]) + 1; a1[25] = 2 * (v46 | ~a1[25]) + (v46 ^ a1[25]) - 2 * ~a1[25]; a1[26] = 2 * (v45 | a1[26]) - (v45 & ~a1[26]) - (~v45 & (v45 | a1[26])); result = ~v47; a1[27] = 2 * (v47 & a1[27]) + (result & a1[27]) + (v47 & ~a1[27]); return result; } __int64 spreadByte(EditStru* a1, char* a2) { _BYTE al4; _BYTE al8; __int64 result; _BYTE var11; _BYTE var11a; _BYTE var11b; _BYTE var11c; _QWORD; _QWORD;
var11 = a1->cnt; if (a1->cnt >= (~(_WORD)dword_7FF788114384 & 0x6AB9) + (dword_7FF788114384 | 0x6AB9u) - 27321) { var11b = (var11 | 1) + 1 - ((var11 & 1) == 0); a1->data[(char)a1->cnt] = 2 * (~byte_7FF788114391 & 0xD5) + byte_7FF788114391 + 43; while (var11b < (int)((dword_7FF788114394 | 0xFFFFC07D) - 16259 - (~dword_7FF788114394 & 0xFFFFC07D))) { al8 = var11b; var11b = (var11b | 1) + 1 - ((var11b & 1) == 0); a1->data[al8] = (~byte_7FF788114398 | 0xEC) + (byte_7FF788114398 | 0xEC) + byte_7FF788114398 + 1; } extendSpace((uint32*)a1, (__int64)a1); memset(a1, 0, 0x38u); } else { var11a = (~var11 | 1) + (var11 | 1) + var11 + 1; a1->data[(char)a1->cnt] = 2 * (~byte_7FF788114388 | 0xD) + (byte_7FF788114388 ^ 0xD) - 2 * ~byte_7FF788114388; while (var11a < (int)((dword_7FF78811438C | 0xFFFF963F) - 27073 - (~dword_7FF78811438C & 0xFFFF963F))) { al4 = var11a; var11a += (~var11a | 1) + (var11a | 1) + 1; a1->data[al4] = ~byte_7FF788114390 + (byte_7FF788114390 | 0xD6) - (~byte_7FF788114390 | 0xD6); } } a1->maxLen = 2 * (unsigned int)(8 * a1->cnt) + ((unsigned int)(8 * a1->cnt) ^ a1->maxLen) - 2 * ((unsigned int)(8 * a1->cnt) & ~a1->maxLen); a1->data[63] = a1->maxLen; a1->data[62] = BYTE1(a1->maxLen); a1->data[61] = BYTE2(a1->maxLen); a1->data[60] = BYTE3(a1->maxLen); a1->data[59] = BYTE4(a1->maxLen); a1->data[58] = (unsigned __int16)WORD2(a1->maxLen) >> 8; a1->data[57] = BYTE6(a1->maxLen); a1->data[56] = HIBYTE(a1->maxLen); extendSpace((uint32_t*)a1, (__int64)a1); for (var11c = 2 * (byte_7FF788114399 | 0xE9) + 23 - byte_7FF788114399; ; var11c = 2 * (var11c | 1) - ((var11c & 1) == 0) - ((var11c | 1) & 0xFE)) { result = (unsigned int)var11c; if ((int)result >= 2 * (dword_7FF78811439C | 0x616C) - 24940 - dword_7FF78811439C) break; a2[var11c] = *(_DWORD*)a1[1].data >> (24 - 8 * var11c); a2[2 * (var11c & 4) + (var11c & 0xFFFFFFFB) + (~var11c & 4)] = *(_DWORD*)&a1[1].data[4] >> (24 - 8 * var11c); a2[(var11c ^ 8) + 16 - 2 * (~var11c & 8)] = *(_DWORD*)&a1[1].data[8] >> (24 - 8 * var11c); a2[(var11c ^ 0xC) + 24 - 2 * (~var11c & 0xC)] = *(_DWORD*)&a1[1].data[12] >> (24 - 8 * var11c); a2[(var11c | 0x10) + 16 - (~var11c & 0x10)] = *(_DWORD*)&a1[1].data[16] >> (24 - 8 * var11c); a2[(~var11c | 0x14) + 1 + (var11c | 0x14) + var11c] = *(_DWORD*)&a1[1].data[20] >> (24 - 8 * var11c); a2[(~var11c | 0x18) + 1 + (var11c | 0x18) + var11c] = *(_DWORD*)&a1[1].data[24] >> (24 - 8 * var11c); a2[2 * (var11c & 0x1C) + (var11c & 0xFFFFFFE3) + (~var11c & 0x1C)] = *(_DWORD*)&a1[1].data[28] >> (24 - 8 * var11c); } return result; } char ess[1024] = { 97, 98, 99, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 92, 14, 136, 247, 127, 0, 0, 112, 126, 238, 85, 204, 1, 0, 0, 232, 249, 250, 30, 142, 0, 0, 0, 232, 249, 250, 30, 142, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 230, 9, 106, 133, 174, 103, 187, 114, 243, 110, 60, 58, 245, 79, 165, 127, 82, 14, 81, 140, 104, 5, 155, 171, 217, 131, 31, 25, 205, 224, 91, 64, 128, 238, 85, 204, 1, 0, 0, 105, 106, 107, 108, 109, 110, 111, 0, 64, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 175, 13, 136, 247, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 230, 15, 136, 247, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 48, 243, 15, 136, 247, 127, 0, 0, 241, 175, 13, 136, 247, 127, 0, 0, 24, 243, 15, 136, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 112, 112, 17, 136, 247, 127, 0, 0, 254, 255, 255, 255, 255, 255, 255, 255, 48, 53, 238, 85, 204, 1, 0, 0, 240, 136, 238, 85, 204, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 178, 13, 136, 247, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 112, 223, 84, 255, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 38, 180, 86, 255, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 251, 255, 255, 232, 4, 0, 0 };
char cmpData[] = { 106, 122, 167, 198, 82, 130, 140, 12, 179, 94, 91, 241, 175, 1, 186, 206, 92, 222, 112, 153, 180, 241, 113, 26, 183, 77, 253, 250, 60, 125, 31, 115, 232, 243, 49, 159, 36, 45, 229, 140, 77, 48, 137, 54, 32, 13, 62, 229, 250, 184, 168, 129, 138, 202, 62, 206, 77, 39, 114, 192, 122, 222, 76, 227, 34, 219, 86, 119, 47, 29, 178, 191, 22, 189, 240, 54, 125, 207, 189, 21, 160, 121, 130, 152, 90, 80, 104, 34, 125, 64, 79, 41, 99, 255, 40, 62, 197, 172, 31, 165, 185, 71, 182, 38, 179, 247, 61, 61, 115, 204, 41, 182, 240, 67, 7, 124, 171, 71, 248, 141, 142, 204, 127, 156, 71, 87, 196, 95, 145, 19, 131, 224, 118, 195, 88, 85, 237, 139, 70, 119, 169, 142, 60, 5, 48, 81, 237, 137, 218, 122, 166, 242, 189, 80, 182, 224, 135, 77, 11, 163, 42, 15, 178, 187, 180, 213, 106, 10, 170, 178, 124, 0, 180, 239, 15, 221, 106, 71, 188, 126, 178, 170, 12, 70, 116, 6, 156, 225, 59, 17, 253, 154, 218, 109, 163, 147, 226, 202, 217, 71, 129, 51, 77, 222, 78, 77, 174, 53, 76, 83, 41, 41, 193, 189, 106, 249, 43, 145, 111, 208, 165, 72, 146, 182, 254, 17, 7, 118, 48, 71, 41, 30, 123, 250, 171, 17, 155, 178, 18, 68, 9, 240, 188, 194, 25, 202, 83, 152, 189, 204, 143, 36, 201, 32, 160, 5, 189, 129, 130, 63, 125, 143, 178, 162, 70, 195, 86, 16, 247, 106, 177, 224, 162, 20, 128, 212, 35, 62, 86, 154, 70, 195, 164, 36, 51, 201, 210, 74, 142, 79, 5, 233, 48, 173, 241, 39, 123, 57, 208, 79, 191, 204, 119, 36, 53, 140, 230, 75, 44, 84, 142, 186, 215, 2, 19, 217, 179, 107, 37, 46, 238, 221, 100, 127, 218, 65, 51, 1, 110, 101, 194, 230, 76, 67, 105, 111, 37, 63, 46, 37, 157, 51, 180, 81, 125, 250, 81, 240, 198, 122, 206, 154, 154, 16, 64, 27, 106, 218, 52, 212, 88, 30, 167, 235, 37, 46, 92, 171, 213, 253, 195, 45, 17, 213, 207, 171, 66, 244, 168, 108, 104, 176, 49, 67, 136, 212, 44, 166, 203, 154, 254, 68, 193, 185, 91, 233, 96, 178, 245, 42, 204, 16, 28, 182, 209, 244, 153, 123, 97, 111, 10, 214, 245, 84, 23, 78, 91, 30, 24, 48, 143, 138, 136, 154, 147, 237, 80, 129, 15, 189, 204, 95, 26, 194, 78, 249, 34, 120, 145, 89, 116, 216, 35, 182, 24, 43, 87, 115, 169, 8, 179, 19, 49, 128, 242, 56, 207, 89, 73, 176, 66, 208, 217, 7, 137, 219, 29, 146, 50, 93, 174, 83, 62, 107, 4, 233, 57, 64, 55, 55, 226, 246, 117, 130, 174, 102, 46, 29, 124, 16, 8, 83, 73, 100, 79, 180, 229, 144, 19, 252, 137, 94, 142, 144, 66, 191, 154, 43, 75, 123, 206, 151 }; int main() {
char flag[65]; memset(flag, 0, 65); char res[1024]; char es[1024]; memcpy(es, ess, 0x200); char dic[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789{}_-+/"; size_t len = strlen(dic); for (size_t i = 0; i < 16; i++) { int isOk = 0; for (size_t i1 = 0; i1 < len&&!isOk; i1++) { printf("%d %d %s\n",i, i1, es); fflush(stdout); for (size_t i2 = 0; i2 < len ; i2++) { for (size_t i3 = 0; i3 < len; i3++) { for (size_t i4 = 0; i4 < len; i4++) { memcpy(es, ess, 0x200); es[0] = dic[i1]; es[1] = dic[i2]; es[2] = dic[i3]; es[3] = dic[i4]; spreadByte((EditStru*)es, res);
if (!memcmp(res, &cmpData[i*32], 32)) { printf("%s\n", es); printArray("flag4", (uint8_t*)es, 32); memcpy(&flag[i * 4], es, 4); fflush(stdout); printf("%s\n", flag); isOk = 1; } } } }
} } printf("%s\n", flag); return 0; }
|