I have this method in main on Superfighters Deluxe.exe private static void Main(string[]…
- User
I have this method in main on Superfighters Deluxe.exe
private static void Main(string[] args) { ConsoleOutput.Init(); ServicePointManager.SecurityProtocol |= (SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12); if (!Program.VerifyEncryptionKey()) { MessageBox.Show("Invalid encryption key. Exiting...", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); return; } Program.DecryptExecutable(); new Thread(new ThreadStart(Program.ListenForCommands)).Start(); Program.IsGame = true;
// Token: 0x060061CA RID: 25034 private static bool VerifyEncryptionKey() { Console.Write("Enter encryption key: "); string enteredKey = Console.ReadLine(); return string.Equals("YourExpectedKey", enteredKey, StringComparison.OrdinalIgnoreCase); }
code// Token: 0x060061CB RID: 25035 private static void DecryptExecutable() { using (Aes aesAlg = Aes.Create()) { aesAlg.Key = Encoding.UTF8.GetBytes("YourEncryptionKeyHere"); aesAlg.IV = Encoding.UTF8.GetBytes("YourEncryptionKeyHere"); } } // Token: 0x060061D8 RID: 25048 private static void ListenForCommands() { using (NamedPipeServerStream pipeServer = new NamedPipeServerStream("SuperfightersDeluxePipe")) { pipeServer.WaitForConnection(); string command = new StreamReader(pipeServer).ReadToEnd().Trim(); if (command == "DecryptExecutable") { Program.DecryptExecutable(); } else if (command == "GetGameInfo") { string gameInfo = "Some game information"; StreamWriter streamWriter = new StreamWriter(pipeServer); streamWriter.Write(gameInfo); streamWriter.Flush(); } pipeServer.Close(); } }And I want it to decrypt it upon clicking button2 on c# loader called howque.exe
A differente executable
I want it so when I press button2 it starts sending piperequests. And on the method of Superfighters Deluxe.exe upon opening that method should search for the pipe connection, if it's true then decrypt it
Heres the button2 code
private async void button1_Click(object sender, EventArgs e) { if (!isButtonClickable) { // Button is not clickable, do nothing return; }
- Assistant