diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs index 79d181b..e112147 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Builder.cs @@ -99,10 +99,12 @@ namespace AsyncRAT_Sharp.Forms private void Builder_Load(object sender, EventArgs e) { comboBoxFolder.SelectedIndex = 0; - textPort.Text = string.Join(",", Settings.Ports.ToList()); - if (Properties.Settings.Default.DNS != null) + textPort.Text = Settings.Port; + if (Properties.Settings.Default.DNS.Length > 0) 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; } } diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs index 595c26d..ade19cd 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs @@ -80,7 +80,6 @@ namespace AsyncRAT_Sharp { if (!string.IsNullOrWhiteSpace(PORT)) { - Settings.Ports.Add(Convert.ToInt32(PORT.ToString().Trim())); listener = new Listener(); Thread thread = new Thread(new ParameterizedThreadStart(listener.Connect)); thread.Start(Convert.ToInt32(PORT.ToString().Trim())); diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/PortsFrm.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/PortsFrm.cs index 253e882..38d743b 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/PortsFrm.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/PortsFrm.cs @@ -17,10 +17,12 @@ namespace AsyncRAT_Sharp.Forms { 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; - if (Properties.Settings.Default.Password != null) + if (Properties.Settings.Default.Password.Length > 0) textPassword.Text = Properties.Settings.Default.Password; this.Text = $"{Settings.Version} | Welcome {Environment.UserName}"; diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs index 73cc0ef..47536be 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Settings.cs @@ -8,8 +8,7 @@ namespace AsyncRAT_Sharp { public static List Online = new List(); public static List Blocked = new List(); - public static string Port = "6606"; - public static List Ports = new List(); + public static string Port = "6606,7707,8808"; public static readonly string Version = "AsyncRAT 0.2.8"; public static long Sent = 0; public static long Received = 0;