├── NotMe_CPP ├── .idea │ ├── .name │ ├── Trigger-BSOD.iml │ ├── .gitignore │ ├── vcs.xml │ ├── misc.xml │ ├── modules.xml │ ├── cmake.xml │ ├── deployment.xml │ ├── inspectionProfiles │ │ └── Project_Default.xml │ └── runConfigurations │ │ └── All_targets.xml ├── rc.rc ├── icon.ico ├── PowerShell_Wininit.cpp ├── TaskKill_Wininit.cpp ├── NTSD_Winlogon.cpp ├── CloseWindowStation.cpp ├── SetProcessIsCritical.h ├── CMakeSettings.json ├── NTSD_Winlogon.h ├── SetProcessIsCritical.cpp ├── NtRaiseHardError.cpp ├── ZwRaiseHardError.cpp ├── CMakeLists.txt ├── AllinOne.cpp └── RaiseHardError.h ├── .gitattributes ├── Assets └── Images │ ├── icon.ico │ └── hazard_stripes_seamless.jpg ├── NotMe_CSharp ├── GUI │ ├── icon.ico │ ├── hazard_stripes_seamless.jpg │ ├── app.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── App.xaml.cs │ ├── App.xaml │ ├── MainWindow.xaml.cs │ ├── MainWindow.xaml │ └── NotMe.csproj ├── NTSD_Winlogon │ ├── icon.ico │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── NTSD_Winlogon.csproj ├── CloseWindowStation │ ├── icon.ico │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Program.cs │ └── CloseWindowStation.csproj ├── NtRaiseHardError │ ├── icon.ico │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Program.cs │ └── NtRaiseHardError.csproj ├── PowerShell_Wininit │ ├── icon.ico │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── PowerShell_Wininit.csproj ├── TaskKill_Wininit │ ├── icon.ico │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── TaskKill_Wininit.csproj ├── ZwRaiseHardError │ ├── icon.ico │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Program.cs │ └── ZwRaiseHardError.csproj ├── SetProcessIsCritical │ ├── icon.ico │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Program.cs │ └── SetProcessIsCritical.csproj └── NotMe_CSharp.sln ├── NotMyFault ├── exe │ ├── icon1.ico │ ├── notmyfault.rc │ ├── NotMyfault.suo.old │ ├── NotMyfault.dep │ ├── notmyfault.h │ ├── resource.h │ ├── NotMyfault.sln │ ├── IOCTLCMD.H │ ├── NotMyfault.vcxproj.filters │ ├── driver.c │ ├── NotMyfault.vcproj │ ├── NotMyfault.vcxproj │ └── notmyfault.c └── sys │ ├── SOURCES │ ├── MAKEFILE │ ├── myfault.rc │ └── myfault.c ├── .github └── workflows │ └── cmake-single-platform.yml ├── README.md └── .gitignore /NotMe_CPP/.idea/.name: -------------------------------------------------------------------------------- 1 | Trigger-BSOD -------------------------------------------------------------------------------- /NotMe_CPP/rc.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "icon.ico" -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /NotMe_CPP/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CPP/icon.ico -------------------------------------------------------------------------------- /Assets/Images/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/Assets/Images/icon.ico -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/GUI/icon.ico -------------------------------------------------------------------------------- /NotMyFault/exe/icon1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMyFault/exe/icon1.ico -------------------------------------------------------------------------------- /NotMyFault/exe/notmyfault.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMyFault/exe/notmyfault.rc -------------------------------------------------------------------------------- /NotMyFault/sys/SOURCES: -------------------------------------------------------------------------------- 1 | TARGETNAME=myfault 2 | TARGETTYPE=DRIVER 3 | 4 | SOURCES=myfault.c myfault.rc 5 | 6 | -------------------------------------------------------------------------------- /NotMe_CSharp/NTSD_Winlogon/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/NTSD_Winlogon/icon.ico -------------------------------------------------------------------------------- /NotMyFault/exe/NotMyfault.suo.old: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMyFault/exe/NotMyfault.suo.old -------------------------------------------------------------------------------- /NotMe_CPP/.idea/Trigger-BSOD.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /NotMe_CSharp/CloseWindowStation/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/CloseWindowStation/icon.ico -------------------------------------------------------------------------------- /NotMe_CSharp/NtRaiseHardError/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/NtRaiseHardError/icon.ico -------------------------------------------------------------------------------- /NotMe_CSharp/PowerShell_Wininit/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/PowerShell_Wininit/icon.ico -------------------------------------------------------------------------------- /NotMe_CSharp/TaskKill_Wininit/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/TaskKill_Wininit/icon.ico -------------------------------------------------------------------------------- /NotMe_CSharp/ZwRaiseHardError/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/ZwRaiseHardError/icon.ico -------------------------------------------------------------------------------- /Assets/Images/hazard_stripes_seamless.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/Assets/Images/hazard_stripes_seamless.jpg -------------------------------------------------------------------------------- /NotMe_CSharp/SetProcessIsCritical/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/SetProcessIsCritical/icon.ico -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/hazard_stripes_seamless.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lzcapp/NotMe-BSOD/HEAD/NotMe_CSharp/GUI/hazard_stripes_seamless.jpg -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /NotMyFault/exe/NotMyfault.dep: -------------------------------------------------------------------------------- 1 | # Microsoft Developer Studio Generated Dependency File, included by NotMyfault.mak 2 | 3 | .\notmyfault.c : \ 4 | ".\IOCTLCMD.H"\ 5 | ".\notmyfault.h"\ 6 | 7 | -------------------------------------------------------------------------------- /NotMe_CPP/PowerShell_Wininit.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | HWND hWnd = GetConsoleWindow(); 5 | ShowWindow(hWnd, SW_HIDE); 6 | 7 | return system("powershell wininit"); 8 | } -------------------------------------------------------------------------------- /NotMe_CPP/TaskKill_Wininit.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | HWND hWnd = GetConsoleWindow(); 5 | ShowWindow(hWnd, SW_HIDE); 6 | 7 | return system("taskkill /f /im wininit.exe"); 8 | } -------------------------------------------------------------------------------- /NotMe_CPP/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /NotMe_CPP/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /NotMyFault/sys/MAKEFILE: -------------------------------------------------------------------------------- 1 | # 2 | # DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source 3 | # file to this component. This file merely indirects to the real make file 4 | # that is shared by all the driver components of the Windows NT DDK 5 | # 6 | 7 | !INCLUDE $(NTMAKEENV)\makefile.def 8 | -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Windows; 6 | 7 | namespace NotMe { 8 | /// 9 | /// App.xaml 的交互逻辑 10 | /// 11 | public partial class App : Application { } 12 | } -------------------------------------------------------------------------------- /NotMe_CPP/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /NotMe_CPP/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /NotMe_CPP/.idea/cmake.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /NotMe_CPP/NTSD_Winlogon.cpp: -------------------------------------------------------------------------------- 1 | #include "NTSD_Winlogon.h" 2 | 3 | int main() { 4 | HWND hWnd = GetConsoleWindow(); 5 | ShowWindow(hWnd, SW_HIDE); 6 | 7 | DWORD pid = FindPID("winlogon.exe"); 8 | if (pid == NULL) { 9 | pid = FindPID("WINLOGON.EXE"); 10 | } 11 | char command[100]; 12 | sprintf(command, "cmd /c start /min ntsd -c q -p %lu 1>nul 2>nul", pid); 13 | return system(command); 14 | } -------------------------------------------------------------------------------- /NotMe_CPP/CloseWindowStation.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | HWND hWnd = GetConsoleWindow(); 5 | ShowWindow(hWnd, SW_HIDE); 6 | 7 | DWORD dwDesiredAccess = GENERIC_READ | GENERIC_WRITE; 8 | HWINSTA hWinSta = CreateWindowStation("WindowStation", NULL, dwDesiredAccess, nullptr); 9 | SetHandleInformation(hWinSta, HANDLE_FLAG_PROTECT_FROM_CLOSE, HANDLE_FLAG_PROTECT_FROM_CLOSE); 10 | return CloseWindowStation(hWinSta); 11 | } -------------------------------------------------------------------------------- /NotMe_CPP/.idea/deployment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /NotMe_CPP/.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /NotMe_CPP/.idea/runConfigurations/All_targets.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /NotMe_CPP/SetProcessIsCritical.h: -------------------------------------------------------------------------------- 1 | #ifndef TRIGGER_BSOD_SETPROCESSISCRITICAL_H 2 | #define TRIGGER_BSOD_SETPROCESSISCRITICAL_H 3 | 4 | #define SE_DEBUG_PRIVILEGE 0x14 5 | 6 | #include 7 | 8 | typedef NTSTATUS(NTAPI *pdef_RtlAdjustPrivilege)( 9 | ULONG Privilege, 10 | BOOLEAN Enable, 11 | BOOLEAN Client, 12 | PBOOLEAN WasEnabled 13 | ); 14 | 15 | typedef NTSTATUS(NTAPI *pdef_RtlSetProcessIsCritical)( 16 | IN BOOLEAN NewValue, 17 | OUT PBOOLEAN OldValue OPTIONAL, 18 | IN BOOLEAN CheckFlag 19 | ); 20 | 21 | #endif //TRIGGER_BSOD_SETPROCESSISCRITICAL_H 22 | -------------------------------------------------------------------------------- /NotMyFault/exe/notmyfault.h: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | // 3 | // NotMyFault.h 4 | // 5 | // Copyright (C) 2002 Mark Russinovich 6 | // Sysinternals - www.sysinternals.com 7 | // 8 | // Simple interface to myfault device driver. 9 | // 10 | //====================================================================== 11 | 12 | 13 | #define SYS_FILE "MYFAULT.SYS" 14 | #define SYS_NAME "MYFAULT" 15 | 16 | #define MYFAULT_DRIVER_KEY "System\\CurrentControlSet\\Services\\Myfault" 17 | 18 | extern HANDLE SysHandle; 19 | 20 | 21 | BOOL LoadDeviceDriver(const char* Name, const char* Path, 22 | HANDLE* lphDevice, PDWORD Error); 23 | BOOL UnloadDeviceDriver(const char* Name); 24 | -------------------------------------------------------------------------------- /NotMe_CSharp/NTSD_Winlogon/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace NTSD_Winlogon { 5 | public abstract class Program { 6 | private static void Main() { 7 | NTSD_Winlogo(); 8 | } 9 | 10 | public static void NTSD_Winlogo() { 11 | try { 12 | var process = new Process(); 13 | var startInfo = new ProcessStartInfo { 14 | WindowStyle = ProcessWindowStyle.Hidden, 15 | FileName = "ntsd.exe", 16 | Arguments = "-c q -pn winlogon.exe" 17 | }; 18 | process.StartInfo = startInfo; 19 | process.Start(); 20 | } catch (Exception) { 21 | // ignored 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /NotMe_CPP/CMakeSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Debug-x86", 5 | "generator": "Visual Studio 17 2022", 6 | "configurationType": "Debug", 7 | "inheritEnvironments": [ 8 | "msvc_x86" 9 | ], 10 | "buildRoot": "${projectDir}\\out\\vs\\${name}", 11 | "installRoot": "${projectDir}\\out\\install\\${name}", 12 | "cmakeCommandArgs": "", 13 | "ctestCommandArgs": "" 14 | }, 15 | { 16 | "name": "Release-x86", 17 | "generator": "Visual Studio 17 2022", 18 | "configurationType": "MinSizeRel", 19 | "buildRoot": "${projectDir}\\out\\vs\\${name}", 20 | "installRoot": "${projectDir}\\out\\install\\${name}", 21 | "ctestCommandArgs": "", 22 | "inheritEnvironments": [ 23 | "msvc_x86" 24 | ], 25 | "intelliSenseMode": "windows-msvc-x86" 26 | } 27 | ] 28 | } -------------------------------------------------------------------------------- /NotMe_CPP/NTSD_Winlogon.h: -------------------------------------------------------------------------------- 1 | #ifndef TRIGGER_BSOD_NTSD_WINLOGON_H 2 | #define TRIGGER_BSOD_NTSD_WINLOGON_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | inline DWORD FindPID(const char *procname) { 9 | PROCESSENTRY32 pe; 10 | DWORD pid = NULL; 11 | 12 | HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); 13 | if (INVALID_HANDLE_VALUE == hSnapshot) { 14 | return NULL; 15 | } 16 | 17 | pe.dwSize = sizeof(PROCESSENTRY32); 18 | BOOL hResult = Process32First(hSnapshot, &pe); 19 | 20 | while (hResult) { 21 | if (strcmp(procname, pe.szExeFile) == 0) { 22 | pid = pe.th32ProcessID; 23 | break; 24 | } 25 | hResult = Process32Next(hSnapshot, &pe); 26 | } 27 | 28 | CloseHandle(hSnapshot); 29 | 30 | return pid; 31 | } 32 | 33 | #endif //TRIGGER_BSOD_NTSD_WINLOGON_H 34 | -------------------------------------------------------------------------------- /NotMe_CPP/SetProcessIsCritical.cpp: -------------------------------------------------------------------------------- 1 | #include "SetProcessIsCritical.h" 2 | 3 | int main() { 4 | HWND hWnd = GetConsoleWindow(); 5 | ShowWindow(hWnd, SW_HIDE); 6 | 7 | auto hNtdll = LoadLibraryA("ntdll.dll"); 8 | if (hNtdll == nullptr) { 9 | FreeLibrary(hNtdll); 10 | return ERROR_BAD_ENVIRONMENT; 11 | } 12 | 13 | auto RtlAdjustPrivilege = reinterpret_cast(GetProcAddress(hNtdll, "RtlAdjustPrivilege")); 14 | BOOLEAN enabled; 15 | if (RtlAdjustPrivilege(SE_DEBUG_PRIVILEGE, TRUE, FALSE, &enabled) != 0) { 16 | FreeLibrary(hNtdll); 17 | return ERROR_ACCESS_DENIED; 18 | } 19 | 20 | auto RtlSetProcessIsCritical = reinterpret_cast(GetProcAddress(hNtdll, "RtlSetProcessIsCritical")); 21 | FreeLibrary(hNtdll); 22 | BOOLEAN OldValue; 23 | return RtlSetProcessIsCritical(TRUE, &OldValue, FALSE); 24 | } 25 | -------------------------------------------------------------------------------- /NotMe_CSharp/TaskKill_Wininit/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace TaskKill_Wininit { 5 | public abstract class Program { 6 | private static void Main() { 7 | TaskKill_Wininit(); 8 | } 9 | 10 | public static void TaskKill_Wininit() { 11 | try { 12 | var process = new Process { 13 | StartInfo = new ProcessStartInfo { 14 | WindowStyle = ProcessWindowStyle.Hidden, 15 | FileName = "taskkill", 16 | Arguments = "-f -im wininit.exe", 17 | UseShellExecute = true, 18 | Verb = "runas" 19 | } 20 | }; 21 | process.Start(); 22 | } catch (Exception) { 23 | // ignored 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /NotMe_CSharp/PowerShell_Wininit/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace PowerShell_Wininit { 5 | public abstract class Program { 6 | private static void Main() { 7 | PowerShell_Wininit(); 8 | } 9 | 10 | public static void PowerShell_Wininit() { 11 | try { 12 | var process = new Process { 13 | StartInfo = new ProcessStartInfo { 14 | WindowStyle = ProcessWindowStyle.Hidden, 15 | FileName = "powershell.exe", 16 | Arguments = "wininit", 17 | UseShellExecute = true, 18 | Verb = "runas" 19 | } 20 | }; 21 | process.Start(); 22 | } catch (Exception) { 23 | // ignored 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /NotMe_CPP/NtRaiseHardError.cpp: -------------------------------------------------------------------------------- 1 | #include "RaiseHardError.h" 2 | 3 | int main() { 4 | HWND hWnd = GetConsoleWindow(); 5 | ShowWindow(hWnd, SW_HIDE); 6 | 7 | auto hNtdll = LoadLibraryA("ntdll.dll"); 8 | if (hNtdll == nullptr) { 9 | FreeLibrary(hNtdll); 10 | return ERROR_BAD_ENVIRONMENT; 11 | } 12 | 13 | auto RtlAdjustPrivilege = reinterpret_cast(GetProcAddress(hNtdll, "RtlAdjustPrivilege")); 14 | BOOLEAN enabled; 15 | if (RtlAdjustPrivilege(SE_SHUTDOWN_PRIVILEGE, TRUE, FALSE, &enabled) != 0) { 16 | FreeLibrary(hNtdll); 17 | return ERROR_ACCESS_DENIED; 18 | } 19 | 20 | auto NtRaiseHardError = reinterpret_cast(GetProcAddress(hNtdll, "NtRaiseHardError")); 21 | FreeLibrary(hNtdll); 22 | HARDERROR_RESPONSE Response; 23 | return NtRaiseHardError(Error_Status, 0, nullptr, nullptr, OptionShutdownSystem, &Response); 24 | } -------------------------------------------------------------------------------- /NotMe_CPP/ZwRaiseHardError.cpp: -------------------------------------------------------------------------------- 1 | #include "RaiseHardError.h" 2 | 3 | int main() { 4 | HWND hWnd = GetConsoleWindow(); 5 | ShowWindow(hWnd, SW_HIDE); 6 | 7 | auto hNtdll = LoadLibraryA("ntdll.dll"); 8 | if (hNtdll == nullptr) { 9 | FreeLibrary(hNtdll); 10 | return ERROR_BAD_ENVIRONMENT; 11 | } 12 | 13 | auto RtlAdjustPrivilege = reinterpret_cast(GetProcAddress(hNtdll, "RtlAdjustPrivilege")); 14 | BOOLEAN enabled; 15 | if (RtlAdjustPrivilege(SE_SHUTDOWN_PRIVILEGE, TRUE, FALSE, &enabled) != 0) { 16 | FreeLibrary(hNtdll); 17 | return ERROR_ACCESS_DENIED; 18 | } 19 | 20 | auto ZwRaiseHardError = reinterpret_cast(GetProcAddress(hNtdll, "ZwRaiseHardError")); 21 | FreeLibrary(hNtdll); 22 | HARDERROR_RESPONSE Response; 23 | return ZwRaiseHardError(Error_Status, 0, nullptr, nullptr, OptionShutdownSystem, &Response); 24 | } -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace NotMe.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /NotMe_CSharp/NTSD_Winlogon/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("NTSD_Winlogon")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NTSD_Winlogon")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("067eb2ed-57f8-4a9c-860e-a563a8a13211")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /NotMe_CSharp/NtRaiseHardError/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("NtRaiseHardError")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NtRaiseHardError")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("65340c14-3429-4bca-8b10-d4b6cb708da2")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] -------------------------------------------------------------------------------- /NotMe_CSharp/ZwRaiseHardError/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("ZwRaiseHardError")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ZwRaiseHardError")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("253c96c1-80c6-4f8a-8123-dce0b983e44d")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] -------------------------------------------------------------------------------- /NotMe_CSharp/TaskKill_Wininit/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("TaskKill_Wininit")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("TaskKill_Wininit")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("fd7e0d8a-5f2d-44b3-b254-bb64d6bb4c82")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /NotMe_CSharp/CloseWindowStation/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("CloseWindowStation")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CloseWindowStation")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("ce7207fa-118a-4576-9a41-b64da63eb332")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /NotMe_CSharp/PowerShell_Wininit/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("PowerShell_Wininit")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PowerShell_Wininit")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("05a3813e-0e43-46d1-bcae-1edd9c67836f")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /NotMe_CSharp/SetProcessIsCritical/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("RtlSetProcessIsCritical")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("RtlSetProcessIsCritical")] 13 | [assembly: AssemblyCopyright("Copyright © 2024")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("3929947f-7c8b-44aa-b103-e3211cbb934e")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] -------------------------------------------------------------------------------- /NotMyFault/sys/myfault.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define VER_DEBUG 0 4 | #define VER_PRERELEASE 0 5 | #define VER_FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 6 | #define VER_FILEOS VOS_NT_WINDOWS32 7 | #define VER_FILEFLAGS (VER_PRERELEASE|VER_DEBUG) 8 | 9 | #define VER_FILETYPE VFT_DRV 10 | #define VER_FILESUBTYPE VFT2_DRV_SYSTEM 11 | 12 | #define VER_COMPANYNAME_STR "Sysinternals" 13 | #define VER_PRODUCTNAME_STR "Sysinternals Myfault" 14 | #define VER_LEGALCOPYRIGHT_YEARS "2002-2004" 15 | #define VER_LEGALCOPYRIGHT_STR "Copyright (C) M. Russinovich " VER_LEGALCOPYRIGHT_YEARS 16 | #define VER_LEGALTRADEMARKS_STR "Copyright (C) 2002-2004 Mark Russinovich" 17 | 18 | #define VER_PRODUCTVERSION 2,0,00,00 19 | #define VER_PRODUCTVERSION_STR "2.0" 20 | #define VER_PRODUCTVERSION_W (0x0200) 21 | #define VER_PRODUCTVERSION_DW (0x0200) 22 | #define VER_FILEDESCRIPTION_STR "Crash Test Driver" 23 | #define VER_INTERNALNAME_STR "myfault.sys" 24 | #define VER_ORIGINALFILENAME_STR "myfault.sys" 25 | 26 | #include "common.ver" 27 | 28 | -------------------------------------------------------------------------------- /NotMe_CSharp/NtRaiseHardError/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace NtRaiseHardError { 5 | public abstract class Program { 6 | [DllImport("ntdll.dll")] 7 | private static extern uint RtlAdjustPrivilege(int privilege, bool bEnablePrivilege, bool isThreadPrivilege, out bool previousValue); 8 | 9 | [DllImport("ntdll.dll")] 10 | private static extern uint NtRaiseHardError(uint errorStatus, uint numberOfParameters, uint unicodeStringParameterMask, IntPtr parameters, uint validResponseOption, out uint response); 11 | 12 | private const int Privilege = 19; 13 | 14 | private const uint ErrorStatus = 0xc0000022; 15 | 16 | private const uint ValidResponseOption = 6; 17 | 18 | private static void Main() { 19 | NtRaiseHardError(); 20 | } 21 | 22 | public static void NtRaiseHardError() { 23 | try { 24 | _ = RtlAdjustPrivilege(Privilege, true, false, out _); 25 | 26 | NtRaiseHardError(ErrorStatus, 0, 0, IntPtr.Zero, ValidResponseOption, out _); 27 | } catch (Exception) { 28 | // ignored 29 | } 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /NotMe_CSharp/ZwRaiseHardError/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace ZwRaiseHardError { 5 | public abstract class Program { 6 | [DllImport("ntdll.dll")] 7 | private static extern uint RtlAdjustPrivilege(int privilege, bool bEnablePrivilege, bool isThreadPrivilege, out bool previousValue); 8 | 9 | [DllImport("ntdll.dll")] 10 | private static extern uint ZwRaiseHardError(uint errorStatus, uint numberOfParameters, uint unicodeStringParameterMask, IntPtr parameters, uint validResponseOption, out uint response); 11 | 12 | private const int Privilege = 19; 13 | 14 | private const uint ErrorStatus = 0xc0000022; 15 | 16 | private const uint ValidResponseOption = 6; 17 | 18 | private static void Main() { 19 | ZwRaiseHardError(); 20 | } 21 | 22 | public static void ZwRaiseHardError() { 23 | try { 24 | _ = RtlAdjustPrivilege(Privilege, true, false, out _); 25 | 26 | ZwRaiseHardError(ErrorStatus, 0, 0, IntPtr.Zero, ValidResponseOption, out _); 27 | } catch (Exception) { 28 | // ignored 29 | } 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /NotMe_CSharp/SetProcessIsCritical/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Reflection; 4 | using System.Runtime.InteropServices; 5 | 6 | namespace SetProcessIsCritical { 7 | public abstract class Program { 8 | [DllImport("ntdll.dll")] 9 | private static extern void RtlSetProcessIsCritical(uint newValue, uint oldValue, uint checkFlag); 10 | 11 | private static void Main() { 12 | SetProcessIsCritical(); 13 | } 14 | 15 | public static void SetProcessIsCritical() { 16 | try { 17 | Process.EnterDebugMode(); 18 | } catch (Exception) { 19 | var process = new Process { 20 | StartInfo = { 21 | FileName = Assembly.GetExecutingAssembly().Location, 22 | UseShellExecute = true, 23 | Verb = "runas" 24 | } 25 | }; 26 | try { 27 | process.Start(); 28 | } catch (Exception) { 29 | return; 30 | } 31 | } 32 | 33 | RtlSetProcessIsCritical(1, 0, 0); 34 | 35 | Environment.Exit(1); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace NotMe { 4 | public partial class MainWindow { 5 | public MainWindow() { 6 | InitializeComponent(); 7 | } 8 | 9 | private void BtnNtRaiseHardError_Click(object sender, RoutedEventArgs e) { 10 | NtRaiseHardError.Program.NtRaiseHardError(); 11 | } 12 | 13 | private void BtnZwRaiseHardError_Click(object sender, RoutedEventArgs e) { 14 | ZwRaiseHardError.Program.ZwRaiseHardError(); 15 | } 16 | 17 | private void BtnSetProcessIsCritical_Click(object sender, RoutedEventArgs e) { 18 | SetProcessIsCritical.Program.SetProcessIsCritical(); 19 | } 20 | 21 | private void BtnCloseWindowStation_Click(object sender, RoutedEventArgs e) { 22 | CloseWindowStation.Program.CloseWindowStation(); 23 | } 24 | 25 | private void BtnNTSDWinlogon_Click(object sender, RoutedEventArgs e) { 26 | NTSD_Winlogon.Program.NTSD_Winlogo(); 27 | } 28 | 29 | private void BtnPowerShellWininit_Click(object sender, RoutedEventArgs e) { 30 | PowerShell_Wininit.Program.PowerShell_Wininit(); 31 | } 32 | 33 | private void BtnTaskKillWininit_Click(object sender, RoutedEventArgs e) { 34 | TaskKill_Wininit.Program.TaskKill_Wininit(); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /NotMe_CSharp/CloseWindowStation/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace CloseWindowStation { 5 | public abstract class Program { 6 | [DllImport("user32.dll")] 7 | private static extern IntPtr CreateWindowStation(string lpwinsta, uint dwFlags, uint dwDesiredAccess, IntPtr lpsa); 8 | 9 | [DllImport("kernel32.dll")] 10 | private static extern bool SetHandleInformation(IntPtr hObject, uint dwMask, uint dwFlags); 11 | 12 | [DllImport("user32.dll")] 13 | private static extern bool CloseWindowStation(IntPtr hWinSta); 14 | 15 | private const long GENERIC_READ = 0x80000000L; 16 | 17 | private const long GENERIC_WRITE = 0x40000000L; 18 | 19 | private const int HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x2; 20 | 21 | private static void Main() { 22 | CloseWindowStation(); 23 | } 24 | 25 | public static void CloseWindowStation() { 26 | try { 27 | const uint dwDesiredAccess = (uint)(GENERIC_READ | GENERIC_WRITE); 28 | IntPtr hWinSta = CreateWindowStation("WindowStation", 0, dwDesiredAccess, IntPtr.Zero); 29 | SetHandleInformation(hWinSta, HANDLE_FLAG_PROTECT_FROM_CLOSE, HANDLE_FLAG_PROTECT_FROM_CLOSE); 30 | CloseWindowStation(hWinSta); 31 | } catch (Exception) { 32 | // ignored 33 | } 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /NotMyFault/exe/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by notmyfault.rc 4 | // 5 | #define IDI_ICON1 105 6 | #define IDC_BUFFEROVERFLOW 1000 7 | #define IDC_WILDPOINTER 1001 8 | #define IDC_DEADLOCK 1002 9 | #define IDC_STACKTRASH 1003 10 | #define IDC_HANG 1004 11 | #define IDC_PAGEFAULT 1005 12 | #define IDC_IRQL 1006 13 | #define IDC_LEAK 1007 14 | #define IDC_LEAK_PAGE 1007 15 | #define IDC_HANGIRP 1008 16 | #define IDC_LEAK_NONPAGE 1009 17 | #define IDC_EDIT1 1010 18 | #define IDC_LEAKMB 1010 19 | #define IDC_SPIN1 1011 20 | #define IDCOLOR 1012 21 | #define IDC_RADIOFG 1013 22 | #define IDC_RADIOBG 1014 23 | #define IDC_DONE 1015 24 | #define IDC_PREVIEW 1016 25 | #define IDC_STATIC -1 26 | 27 | // Next default values for new objects 28 | // 29 | #ifdef APSTUDIO_INVOKED 30 | #ifndef APSTUDIO_READONLY_SYMBOLS 31 | #define _APS_NEXT_RESOURCE_VALUE 106 32 | #define _APS_NEXT_COMMAND_VALUE 40001 33 | #define _APS_NEXT_CONTROL_VALUE 1017 34 | #define _APS_NEXT_SYMED_VALUE 101 35 | #endif 36 | #endif 37 | -------------------------------------------------------------------------------- /NotMyFault/exe/NotMyfault.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.11.35327.3 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NotMyfault", "NotMyfault.vcxproj", "{7C86ACEC-4A92-4977-8346-F9A6C37896B8}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x64.ActiveCfg = Debug|x64 17 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x64.Build.0 = Debug|x64 18 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x86.ActiveCfg = Debug|Win32 19 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Debug|x86.Build.0 = Debug|Win32 20 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x64.ActiveCfg = Release|x64 21 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x64.Build.0 = Release|x64 22 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x86.ActiveCfg = Release|Win32 23 | {7C86ACEC-4A92-4977-8346-F9A6C37896B8}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {D83E184A-B459-4859-A5B5-60D1FAAF04A1} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /.github/workflows/cmake-single-platform.yml: -------------------------------------------------------------------------------- 1 | # This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. 2 | # See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml 3 | name: CMake on a single platform 4 | 5 | on: 6 | push: 7 | branches: [ "main" ] 8 | pull_request: 9 | branches: [ "main" ] 10 | 11 | env: 12 | # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) 13 | BUILD_TYPE: Release 14 | 15 | jobs: 16 | build: 17 | defaults: 18 | run: 19 | working-directory: NotMe_CPP 20 | 21 | # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. 22 | # You can convert this to a matrix build if you need cross-platform coverage. 23 | # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix 24 | runs-on: windows-latest 25 | 26 | steps: 27 | - uses: actions/checkout@v4 28 | 29 | - name: Configure CMake 30 | # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. 31 | # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type 32 | run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} 33 | 34 | - name: Build 35 | # Build your program with the given configuration 36 | run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} 37 | 38 | -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // 有关程序集的一般信息由以下 8 | // 控制。更改这些特性值可修改 9 | // 与程序集关联的信息。 10 | [assembly: AssemblyTitle("NotMe")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("NotMe")] 15 | [assembly: AssemblyCopyright("Copyright © Seeleo (LZC.app) 2024")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // 将 ComVisible 设置为 false 会使此程序集中的类型 20 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 21 | //请将此类型的 ComVisible 特性设置为 true。 22 | [assembly: ComVisible(false)] 23 | 24 | //若要开始生成可本地化的应用程序,请设置 25 | //.csproj 文件中的 CultureYouAreCodingWith 26 | //在 中。例如,如果你使用的是美国英语。 27 | //使用的是美国英语,请将 设置为 en-US。 然后取消 28 | //对以下 NeutralResourceLanguage 特性的注释。 更新 29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, //主题特定资源词典所处位置 35 | //(未在页面中找到资源时使用, 36 | //或应用程序资源字典中找到时使用) 37 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置 38 | //(未在页面中找到资源时使用, 39 | //、应用程序或任何主题专用资源字典中找到时使用) 40 | )] 41 | 42 | 43 | // 程序集的版本信息由下列四个值组成: 44 | // 45 | // 主版本 46 | // 次版本 47 | // 生成号 48 | // 修订号 49 | // 50 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 51 | //通过使用 "*",如下所示: 52 | // [assembly: AssemblyVersion("1.0.*")] 53 | [assembly: AssemblyVersion("1.0.0.0")] 54 | [assembly: AssemblyFileVersion("1.0.0.0")] -------------------------------------------------------------------------------- /NotMyFault/exe/IOCTLCMD.H: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | // 3 | // ioctlcmd.h 4 | // 5 | // Copyright (C) 2002 Mark Russinovich 6 | // 7 | // This file contains driver IOCTLs and definitions shared by the 8 | // driver and the GUI. 9 | // 10 | //====================================================================== 11 | 12 | // 13 | // Device type 14 | // 15 | #define FILE_DEVICE_MYFAULT 0x00008336 16 | 17 | 18 | // 19 | // IOCTLS 20 | // 21 | #define IOCTL_BUFFER_OVERFLOW (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x00, METHOD_BUFFERED, FILE_ANY_ACCESS ) 22 | #define IOCTL_WILD_POINTER (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x01, METHOD_BUFFERED, FILE_ANY_ACCESS ) 23 | #define IOCTL_PAGE_FAULT (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x02, METHOD_BUFFERED, FILE_ANY_ACCESS ) 24 | #define IOCTL_DEADLOCK (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x03, METHOD_BUFFERED, FILE_ANY_ACCESS ) 25 | #define IOCTL_TRASH_STACK (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x04, METHOD_BUFFERED, FILE_ANY_ACCESS ) 26 | #define IOCTL_LEAK_PAGED (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x05, METHOD_BUFFERED, FILE_ANY_ACCESS ) 27 | #define IOCTL_IRQL (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x06, METHOD_BUFFERED, FILE_ANY_ACCESS ) 28 | #define IOCTL_HANG (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x07, METHOD_BUFFERED, FILE_ANY_ACCESS ) 29 | #define IOCTL_HANG_IRP (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x08, METHOD_BUFFERED, FILE_ANY_ACCESS ) 30 | #define IOCTL_LEAK_NONPAGED (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x09, METHOD_BUFFERED, FILE_ANY_ACCESS ) 31 | #define IOCTL_BSOD_COLOR (ULONG) CTL_CODE( FILE_DEVICE_MYFAULT, 0x10, METHOD_BUFFERED, FILE_ANY_ACCESS ) 32 | -------------------------------------------------------------------------------- /NotMyFault/exe/NotMyfault.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {8244ffb9-4ad7-454f-a48b-e69f5b138640} 6 | cpp;c;cxx;rc;def;r;odl;idl;hpj;bat 7 | 8 | 9 | {a3b94c08-2c31-4b38-b78c-8d56007a276d} 10 | h;hpp;hxx;hm;inl 11 | 12 | 13 | {965922dc-decf-4f13-9801-8ec2169ac873} 14 | ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | Source Files 23 | 24 | 25 | 26 | 27 | Header Files 28 | 29 | 30 | Header Files 31 | 32 | 33 | Header Files 34 | 35 | 36 | 37 | 38 | Resource Files 39 | 40 | 41 | 42 | 43 | Resource Files 44 | 45 | 46 | -------------------------------------------------------------------------------- /NotMe_CPP/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.10) 2 | 3 | project(Trigger-BSOD) 4 | 5 | set(CMAKE_CXX_STANDARD 11) 6 | set(CMAKE_CXX_STANDARD_REQUIRED True) 7 | 8 | set(CMAKE_EXE_LINKER_FLAGS -static) 9 | 10 | add_executable(AllinOne AllinOne.cpp rc.rc) 11 | 12 | add_executable(NTSD_Winlogon NTSD_Winlogon.cpp rc.rc) 13 | 14 | add_executable(TaskKill_Wininit TaskKill_Wininit.cpp rc.rc) 15 | 16 | add_executable(NtRaiseHardError NtRaiseHardError.cpp rc.rc) 17 | add_executable(ZwRaiseHardError ZwRaiseHardError.cpp rc.rc) 18 | 19 | add_executable(PowerShell_Wininit PowerShell_Wininit.cpp rc.rc) 20 | 21 | add_executable(CloseWindowStation CloseWindowStation.cpp rc.rc) 22 | 23 | add_executable(SetProcessIsCritical SetProcessIsCritical.cpp rc.rc) 24 | 25 | add_custom_command(TARGET SetProcessIsCritical POST_BUILD 26 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/CMakeCache.txt 27 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/cmake_install.cmake 28 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/Makefile 29 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/CTestTestfile.cmake 30 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/CTestConfiguration.cmake 31 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/CTestCustom.cmake 32 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/cmake_install.cmake 33 | COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/Trigger-BSOD.cbp 34 | COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/.cmake 35 | COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/CMakeFiles 36 | COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/CMakeScripts 37 | COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/Testing 38 | ) -------------------------------------------------------------------------------- /NotMe_CPP/AllinOne.cpp: -------------------------------------------------------------------------------- 1 | #include "RaiseHardError.h" 2 | #include "SetProcessIsCritical.h" 3 | 4 | int RaiseHardError() { 5 | auto hNtdll = LoadLibraryA("ntdll.dll"); 6 | if (hNtdll == nullptr) { 7 | FreeLibrary(hNtdll); 8 | return ERROR_BAD_ENVIRONMENT; 9 | } 10 | 11 | auto RtlAdjustPrivilege = reinterpret_cast(GetProcAddress(hNtdll, "RtlAdjustPrivilege")); 12 | BOOLEAN enabled; 13 | if (RtlAdjustPrivilege(SE_SHUTDOWN_PRIVILEGE, TRUE, FALSE, &enabled) != 0) { 14 | FreeLibrary(hNtdll); 15 | return ERROR_ACCESS_DENIED; 16 | } 17 | 18 | auto NtRaiseHardError = reinterpret_cast(GetProcAddress(hNtdll, "NtRaiseHardError")); 19 | auto ZwRaiseHardError = reinterpret_cast(GetProcAddress(hNtdll, "ZwRaiseHardError")); 20 | FreeLibrary(hNtdll); 21 | HARDERROR_RESPONSE Response; 22 | NtRaiseHardError(Error_Status, 0, nullptr, nullptr, OptionShutdownSystem, &Response); 23 | ZwRaiseHardError(Error_Status, 0, nullptr, nullptr, OptionShutdownSystem, &Response); 24 | return Response; 25 | } 26 | 27 | int SetCriticalProcess() { 28 | auto hNtdll = LoadLibraryA("ntdll.dll"); 29 | if (hNtdll == nullptr) { 30 | FreeLibrary(hNtdll); 31 | return ERROR_BAD_ENVIRONMENT; 32 | } 33 | 34 | auto RtlAdjustPrivilege = reinterpret_cast(GetProcAddress(hNtdll, "RtlAdjustPrivilege")); 35 | BOOLEAN enabled; 36 | if (RtlAdjustPrivilege(SE_DEBUG_PRIVILEGE, TRUE, FALSE, &enabled) != 0) { 37 | FreeLibrary(hNtdll); 38 | return ERROR_ACCESS_DENIED; 39 | } 40 | 41 | auto RtlSetProcessIsCritical = reinterpret_cast(GetProcAddress(hNtdll, "RtlSetProcessIsCritical")); 42 | FreeLibrary(hNtdll); 43 | BOOLEAN OldValue; 44 | return RtlSetProcessIsCritical(TRUE, &OldValue, FALSE); 45 | } 46 | 47 | int main() { 48 | HWND hWnd = GetConsoleWindow(); 49 | ShowWindow(hWnd, SW_HIDE); 50 | 51 | RaiseHardError(); 52 | SetCriticalProcess(); 53 | } 54 | 55 | -------------------------------------------------------------------------------- /NotMe_CPP/RaiseHardError.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #pragma clang diagnostic push 3 | #pragma ide diagnostic ignored "bugprone-reserved-identifier" 4 | #ifndef TRIGGER_BSOD_RAISEHARDERROR_H 5 | #define TRIGGER_BSOD_RAISEHARDERROR_H 6 | 7 | #define Error_Status 0xC0000002 8 | #define SE_SHUTDOWN_PRIVILEGE 0x13 9 | 10 | #include 11 | #include 12 | 13 | typedef enum _HARDERROR_RESPONSE_OPTION { 14 | OptionAbortRetryIgnore, 15 | OptionOk, 16 | OptionOkCancel, 17 | OptionRetryCancel, 18 | OptionYesNo, 19 | OptionYesNoCancel, 20 | OptionShutdownSystem 21 | } HARDERROR_RESPONSE_OPTION, * PHARDERROR_RESPONSE_OPTION; 22 | 23 | typedef enum _HARDERROR_RESPONSE { 24 | ResponseReturnToCaller, 25 | ResponseNotHandled, 26 | ResponseAbort, 27 | ResponseCancel, 28 | ResponseIgnore, 29 | ResponseNo, 30 | ResponseOk, 31 | ResponseRetry, 32 | ResponseYes 33 | } HARDERROR_RESPONSE, * PHARDERROR_RESPONSE; 34 | 35 | typedef NTSTATUS(NTAPI *pdef_RtlAdjustPrivilege)( 36 | ULONG Privilege, 37 | BOOLEAN Enable, 38 | BOOLEAN Client, 39 | PBOOLEAN WasEnabled 40 | ); 41 | 42 | typedef NTSTATUS(NTAPI *pdef_NtRaiseHardError)( 43 | IN NTSTATUS ErrorStatus, 44 | IN ULONG NumberOfParameters, 45 | IN PUNICODE_STRING UnicodeStringParameterMask, 46 | IN PULONG_PTR Parameters, 47 | IN HARDERROR_RESPONSE_OPTION ValidResponseOptions, 48 | OUT PHARDERROR_RESPONSE Response 49 | ); 50 | 51 | typedef NTSTATUS(NTAPI *pdef_ZwRaiseHardError)( 52 | IN NTSTATUS ErrorStatus, 53 | IN ULONG NumberOfParameters, 54 | IN PUNICODE_STRING UnicodeStringParameterMask, 55 | IN PULONG_PTR Parameters, 56 | IN HARDERROR_RESPONSE_OPTION ValidResponseOptions, 57 | OUT PHARDERROR_RESPONSE Response 58 | ); 59 | 60 | #endif //TRIGGER_BSOD_RAISEHARDERROR_H 61 | 62 | #pragma clang diagnostic pop -------------------------------------------------------------------------------- /NotMe_CSharp/NTSD_Winlogon/NTSD_Winlogon.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {067EB2ED-57F8-4A9C-860E-A563A8A13211} 8 | WinExe 9 | NTSD_Winlogon 10 | NTSD_Winlogon 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | icon.ico 36 | 37 | 38 | NTSD_Winlogon.Program 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /NotMe_CSharp/NtRaiseHardError/NtRaiseHardError.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {65340C14-3429-4BCA-8B10-D4B6CB708DA2} 8 | WinExe 9 | NtRaiseHardError 10 | NtRaiseHardError 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | NtRaiseHardError.Program 36 | 37 | 38 | icon.ico 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /NotMe_CSharp/TaskKill_Wininit/TaskKill_Wininit.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {FD7E0D8A-5F2D-44B3-B254-BB64D6BB4C82} 8 | WinExe 9 | TaskKill_Wininit 10 | TaskKill_Wininit 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | icon.ico 36 | 37 | 38 | TaskKill_Wininit.Program 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /NotMe_CSharp/ZwRaiseHardError/ZwRaiseHardError.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {253C96C1-80C6-4F8A-8123-DCE0B983E44D} 8 | WinExe 9 | ZwRaiseHardError 10 | ZwRaiseHardError 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | ZwRaiseHardError.Program 36 | 37 | 38 | icon.ico 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /NotMe_CSharp/CloseWindowStation/CloseWindowStation.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {CE7207FA-118A-4576-9A41-B64DA63EB332} 8 | WinExe 9 | CloseWindowStation 10 | CloseWindowStation 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | icon.ico 36 | 37 | 38 | CloseWindowStation.Program 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /NotMe_CSharp/PowerShell_Wininit/PowerShell_Wininit.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {05A3813E-0E43-46D1-BCAE-1EDD9C67836F} 8 | WinExe 9 | PowerShell_Wininit 10 | PowerShell_Wininit 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | PowerShell_Wininit.Program 36 | 37 | 38 | icon.ico 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /NotMe_CSharp/SetProcessIsCritical/SetProcessIsCritical.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {3929947F-7C8B-44AA-B103-E3211CBB934E} 8 | WinExe 9 | SetProcessIsCritical 10 | SetProcessIsCritical 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | SetProcessIsCritical.Program 36 | 37 | 38 | icon.ico 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace NotMe.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// 一个强类型的资源类,用于查找本地化的字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// 返回此类使用的缓存的 ResourceManager 实例。 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NotMe.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// 重写当前线程的 CurrentUICulture 属性,对 51 | /// 使用此强类型资源类的所有资源查找执行重写。 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /NotMe_CSharp/GUI/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 13 |