ajout du crypteur en WIP

This commit is contained in:
2023-02-03 17:13:17 +01:00
parent 6c9a923193
commit 7902e172e9
12 changed files with 560 additions and 3 deletions

18
Crypter/utils.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include "utils.hpp"
#include <Windows.h>
#include <string.h>
#include <stdio.h>
void StringReplace(char* in, const char* to_find, const char* replacement)
{
char buffer[1024];
char* p;
if (!(p = strstr(in, to_find)))
return;
strncpy(buffer, in, p - in);
buffer[p - in] = '\0';
sprintf(buffer + (p - in), "%s%s", replacement, p + strlen(to_find));
strcpy(in, buffer);
}