a simple virus in c++

Posts 1–10 of 10 · Page 1 of 1
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 <windows.h>
#include <stdio.h>

using namespace std;

int main() 
{
    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++.
Dude, don't be a retard and go to school.
Useless, this is not a virus.
this is just a code used to delete files a virus gains unauthorized permission but still intresting
Eh, you just ripped that of from youtube..

Quote Originally Posted by naid View Post
Eh, you just ripped that of from youtube..

YouTube - C++ Beep Program | Beginners
Just because i used Beep doesnt mean i ripped off a youtube video, the only thing in common with that video and this code is they happen to use Beep. Anywhere in that video does it tell you how to code to delete a file. You could find anything on youtube, and i dont use youtube for tuts because there all basic things like passwords and hello worlds.

Are you canadian???
Quote Originally Posted by Foosh View Post
Dude, don't be a retard and go to school.
wtf this has nothing to do with schools what so ever
stop spamming
hahah so stupid he punked u and all u gave him was a stupid comback as are u canadian wow and now the topic on this thread i have some crap like that on my computer but not a virus but my computer beeps
This isn't a virus...

Also what's point of making viruses? you wont gain anything from it
I can see why people make keylogger/trojans/backdoors etc but viruses are just lame as fuck
Quote Originally Posted by dk173 View Post
hahah so stupid he punked u and all u gave him was a stupid comback as are u canadian wow and now the topic on this thread i have some crap like that on my computer but not a virus but my computer beeps
Check what beep is coming from e.g. Motherboard or speakers
if speakers:
  • make sure they are plugged in etc
  • using correct sound drivers


if motherboard:
  • Check if your computer may be overheating
  • Check pc for any odd application which may be making beep sound (fuckin noobie programmers)
  • Check all hardware is working fine (e.g. voltages etc )


If this don't fix your problem reply on this thread again or send me a private message
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us