Загрузка данных


$code = @'
using System;
using System.IO;
using System.Text;

public class Patcher {
    public static void Patch() {
        string fileIn = "GeometryDash.exe";
        string fileOut = "GeometryDash_Mucho.exe";
        
        if (!File.Exists(fileIn)) {
            Console.WriteLine("[-] Ошибка: Чистый GeometryDash.exe не найден в текущей папке!");
            return;
        }

        byte[] file = File.ReadAllBytes(fileIn);
        byte[] search = Encoding.ASCII.GetBytes("https://www.boomlings.com/database");
        byte[] replace = Encoding.ASCII.GetBytes("http://muchogdps.space");

        bool patched = false;

        for (int i = 0; i < file.Length - search.Length; i++) {
            bool match = true;
            for (int j = 0; j < search.Length; j++) {
                if (file[i+j] != search[j]) { 
                    match = false; 
                    break; 
                }
            }
            
            if (match) {
                // Вписываем новый URL
                for (int j = 0; j < replace.Length; j++) {
                    file[i+j] = replace[j];
                }
                // Добиваем хвост нуль-байтами (0x00)
                for (int j = replace.Length; j < search.Length; j++) {
                    file[i+j] = 0x00;
                }
                patched = true;
                break; // Меняем только основной базовый URL
            }
        }

        if (patched) {
            File.WriteAllBytes(fileOut, file);
            Console.WriteLine("[+] УСПЕХ! Создан идеальный файл: " + fileOut);
        } else {
            Console.WriteLine("[-] Оригинальная строка не найдена. Убедись, что это ЧИСТЫЙ .exe файл.");
        }
    }
}
'@

Add-Type -TypeDefinition $code
[Patcher]::Patch()