Fixed port issue
This commit is contained in:
parent
4c1782bb01
commit
8b394f6835
@ -118,7 +118,7 @@ namespace AsyncRAT_Sharp
|
||||
listener = new Listener();
|
||||
Thread thread = new Thread(new ParameterizedThreadStart(listener.Connect));
|
||||
thread.IsBackground = true;
|
||||
thread.Start(Convert.ToInt16(port.ToString().Trim()));
|
||||
thread.Start(Convert.ToInt32(port.ToString().Trim()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ namespace AsyncRAT_Sharp.Forms
|
||||
{
|
||||
try
|
||||
{
|
||||
Convert.ToInt16(textPort.Text.Trim());
|
||||
Convert.ToInt32(textPort.Text.Trim());
|
||||
foreach (string item in listBoxPort.Items)
|
||||
{
|
||||
if (item.Equals(textPort.Text.Trim()))
|
||||
|
@ -83,7 +83,7 @@ namespace AsyncRAT_Sharp.Forms
|
||||
{
|
||||
try
|
||||
{
|
||||
Convert.ToInt16(textPorts.Text.Trim());
|
||||
Convert.ToInt32(textPorts.Text.Trim());
|
||||
listBox1.Items.Add(textPorts.Text.Trim());
|
||||
textPorts.Clear();
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ namespace Client.Sockets
|
||||
if (Settings.Pastebin == "null")
|
||||
{
|
||||
Client.Connect(Convert.ToString(Settings.Hosts.Split(',')[new Random().Next(Settings.Hosts.Split(',').Length)]),
|
||||
Convert.ToInt16(Settings.Ports.Split(',')[new Random().Next(Settings.Ports.Split(',').Length)]));
|
||||
Convert.ToInt32(Settings.Ports.Split(',')[new Random().Next(Settings.Ports.Split(',').Length)]));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -59,7 +59,7 @@ namespace Client.Sockets
|
||||
string[] spl = resp.Split(new[] { ":" }, StringSplitOptions.None);
|
||||
Settings.Hosts = spl[0];
|
||||
Settings.Ports = spl[new Random().Next(1, spl.Length)];
|
||||
Client.Connect(Settings.Hosts, Convert.ToInt16(Settings.Ports));
|
||||
Client.Connect(Settings.Hosts, Convert.ToInt32(Settings.Ports));
|
||||
}
|
||||
}
|
||||
if (Client.Connected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user