Fake Viruses

Posts 1–9 of 9 · Page 1 of 1
Fake Viruses
Anyone here with programming knowledge ever make a "Hack" for your friends?

I've always been interested in seeing your computer freak out right before your eyes.
Post your fake virus here (source, video, image) and please don't post any built fake viruses to give.

I can start with the one I made for my friend.
I tricked him into thinking I made a external chams wh for Minecraft which shows enemies and chest.

It's funny unless you're the one being pranked.

Code:
//C++
#include <iostream>
#include <Windows.h>
#include <fstream> //I don't remember why i included this :S


using namespace std;

void one(){
	int Copied;
		Copied = CopyFile(L"MinecraftCham.exe", L"C:/AutoUpdate.exe", FALSE);
		if(Copied > 0){
			cout << "Loading" << endl;
		}else{
			cout << "Loading..." << endl;
		}
}

void three(){
	HWND hWindow = NULL;
	while(1){
		hWindow = FindWindow( NULL, L"Minecraft");//Minecraft
		if(hWindow)
		{
			Beep(600,300);
			MessageBox(NULL, L"Missing dll 'd3dlib.dll'!", L"MinecraftCham.exe", MB_OK);
			
			return;
		}
	}
	CloseHandle(hWindow);
}

void four(){
	HWND hWindow = NULL;
	int repeats = 0;
	for(;;){
		if(repeats == 5){
			return;
		}
		hWindow = GetForegroundWindow();
		SetWindowText(hWindow, L"SYSTIM32");
		Sleep(100);
		Beep(800,100);
		Sleep(50);
		Beep(1200,100);
		Sleep(200);
		Beep(600,100);
		Sleep(100);
		Beep(800,100);
		Sleep(20);
		Beep(1200,100);
		Sleep(200);
		Beep(1200,100);
		Sleep(25);
		Beep(1200,100);
		Sleep(15);
		Beep(1000,100);
		Sleep(15);
		Beep(800,100);
		Sleep(10);
		Beep(1000,100);
		Sleep(10);
		Beep(1200,100);
		Sleep(10);
		Beep(600,100);
		Sleep(50);
		Beep(800,100);
		SendMessage(hWindow, WM_CLOSE, 0, 0);
		repeats = repeats + 1;
	}
}

void five(){
	Beep(600,700);
	Sleep(25);
	Beep(800,700);
	if(MessageBox(HWND_DESKTOP,L"Your anus smells like shit?",L"system",MB_YESNO) == IDYES)
	{
		Beep(900,500);
		MessageBox(NULL, L"You should clean it with soap.", L"system", MB_OK);
	}else{
		SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
		five();
	}
}

int main()
{
	one();
	cout << "Waiting for minecraft.exe" << endl;
	//two(); //this one was worthless 2lazy2fix
	three();
	Sleep(100);
	HWND hWnd = GetConsoleWindow();
	ShowWindow( hWnd, SW_HIDE );
	Sleep(5000);
	four();
	Sleep(1000);
	five();

}
Code:
void three(){
	HWND hWindow = NULL;
	while(1){
		hWindow = FindWindow( NULL, L"Minecraft");//Minecraft
		if(hWindow)
		{
			Beep(600,300);
			MessageBox(NULL, L"Missing dll 'd3dlib.dll'!", L"MinecraftCham.exe", MB_OK);
			
			return;
		}
	}
	CloseHandle(hWindow);
}
"return" should be "break" ?? CloseHandle() is never reached.? Do you CloseHandle() on window handles?
Sorry no ideas.
Quote Originally Posted by abuckau907 View Post
"return" should be "break" ?? CloseHandle() can never be reached. ?
Sorry no ideas.
pfft, close handles are just for show, i just skip them.
bad performance is how my computer runs anyways.


I also realized i didnt close some of the other handles
I don't think you're supposed to close them w/ CloseHandle() ...? A little embarrassed I don't know this..but did a quick test.



Since the handles aren't unique, you shouldn't need to close each one? Someone post a link if I'm wrong, please.

edit: Obviously Hwnd's are supposed to be unique. Each window has a unique one. I meant that FindWindow() just returns the Hwnd, not a unique 'handle' . ?

-------------------------------------------------------------------------
Anything you change on the user's computer (that they notice ofc..) is going to freak them out. Flashing/Closing the windows is a good idea. I wouldn't be happy if that randomly started happening : p
To expand on that a little...maybe flash/hide the Start Button/task bar?
Maybe making desktop icons disappear would be pretty noticeable too? The background-picture itself?
Blue-screen-of-death is a class. Throw that in there somewhere....maybe then a fake screen about "fixing windows"..
I think it's bad, so not really thinking too hard : ) Sorry to interrupt your post.
I've made several of these
Here is one not nothing amazing just simple c++
Quick note I used
BlockInput(true);
SwapMouseButton(true);
inside my code.
You can do break the blockinput by Ctrl+Alt+Delete.
SwaoMouseButton you need to make a quick program to reverse it.

Code:

#include <iostream>
#include <windows.h>
#include <winable.h>

using namespace std;

int main()
{
    
BlockInput(true);
SwapMouseButton(true);

SetConsoleTitle("Infected.exe");
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Sleep (10);
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;
Beep(523,90);
cout << "DON'T INTURUPT ELSE IT WILL CRACH YOUR PC!!!!!!!!!!" << endl;
cout << endl;
cout << endl;

system ("COLOR a");
Sleep (10);    

cout << "********************Loading 10%********************" << endl;
cout << endl;
   
system ("COLOR 4c");
Sleep (10);

cout << "********************Loading 20%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

cout << "********************Loading 30%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    

cout << "********************Loading 40%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);

cout << "********************Loading 50%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "********************Loading 60%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "********************Loading 70%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "********************Loading 80%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);

cout << "********************Loading 90%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);

cout << "********************Loading 92%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "********************Loading 93%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);

cout << "********************Loading 94%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "********************Loading 97%********************" << endl;
cout << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);   

cout << "********************Loading 100%********************" << endl;
cout << endl;

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);

cout << "===================Loaded Virus Success!==================" << endl;

system ("COLOR 4c");
Sleep (1);

system ("COLOR a");
Sleep (1);    
system ("COLOR 4c");
Sleep (1);

system ("COLOR a");
Sleep (1);    
system ("COLOR 4c");
Sleep (1);

system ("COLOR a");
Sleep (1);    
system ("COLOR 4c");
Sleep (1);

system ("COLOR a");
Sleep (1);    
system ("COLOR 4c");
Sleep (1);

system ("COLOR a");
Sleep (1);
    
system ("COLOR 4c");
Sleep (1);

system ("COLOR a");
Sleep (1);    
system ("COLOR 4c");
Sleep (1);

system ("COLOR a");
Sleep (1);    
system ("COLOR 4c");
Sleep (1);

cout << "==========================================================" << endl;
cout << "=                                                        =" << endl;
cout << "=                       Report                           =" << endl;
cout << "=                                                        =" << endl;
cout << "=                                                        =" << endl;

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "=          Loaded AV_Killer.exe Success!                 =" << endl;
cout << "=                                                        =" << endl;
cout << "=                                                        =" << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);

cout << "=          Loaded Launch.exe Success!                    =" << endl;
cout << "=                                                        =" << endl;
cout << "=                                                        =" << endl;
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "=          Loaded Trojan_Starter.exe Success!            =" << endl;
cout << "=                                                        =" << endl;
cout << "=                                                        =" << endl;
system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);

cout << "=          Loaded Troajn_Injector.exe Sucess!            =" << endl;

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);
cout << "=                                                        =" << endl;
cout << "=                                                        =" << endl;
system ("COLOR a");
Sleep (10);
    
system ("COLOR 4c");
Sleep (10);

system ("COLOR a");
Sleep (10);    
system ("COLOR 4c");
Sleep (10);
cout << "=          Loaded Break_Security.exe Success!            =" << endl;
cout << "=                                                        =" << endl;
cout << "==========================================================" << endl;
Beep(523,100);
MessageBox(0, "Fatal error, Windows is closing.",0,MB_ICONERROR);
MessageBox(0, "Fatal error, Windows is closing.",0,MB_ICONERROR);
MessageBox(0, "Fatal error, Windows is closing.",0,MB_ICONERROR);
MessageBox(0, "Fatal error, Windows is closing.",0,MB_ICONERROR);
MessageBox(0, "Fatal error, Windows is closing.",0,MB_ICONERROR);
MessageBox(0, "Fatal error, Windows is closing.",0,MB_ICONERROR);
MessageBox(0, "Fatal error, Windows is closing.",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
MessageBox(0, "Made by Vincent Dominguez",0,MB_ICONERROR);
system ("PAUSE");
}
Quote Originally Posted by Vincent Dominguez View Post
I've made several of these
Because loops are too mainstream
Quote Originally Posted by Biesi View Post


Because loops are too mainstream
what u mean? that was the 1st one I ever made. I have one that opens cd drive but I don't wanna give it cuz someone might not know how to stop it.
Or a code that loops sending ur cursor to a sertain pos.
Code:
int main()
{
	HWND hWnd = GetConsoleWindow();
	ShowWindow( hWnd, SW_HIDE );
        while(true) { SetCursorPos(100,100); }
        return 0;
}
Just gorgeous.
i maed a javerscript viruse 4 u

Code:
alert('u just got');
alert('HAKED!');
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?