A virus which make CPU weaker.
I am going to show 2 acociated virus which make system very slow
first you have to create a source file named open in dev c++..
(if you dont have dev c++ goto have and you have the link)
2. write the source code below.
#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
ShellExecute(NULL, "open", "virus.exe", NULL, NULL, SV_HIDE);
return 0;
}
(these codes are to execute file virus .exe )
3. then compile and save it.
4. Now you have to create a source file named virus .and you have to sve the file near open.cpp
Then type the code in virus.cpp
#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
int i;
for (i=1;i<=100000000;i++)
printf("this is a fake virus");
getchar();
return 0;
}
(this code will toop a 100000000 times and print "this is a fake virus" about the loop. this will make cpu very weak for the time)
5. compile this code and run it. check your cpu usage it will be 80 or more. close it.
6. run open.exe where you saved open.cpp . then the virus.exe will run background.......if you wanna quit it go to tsk manager and end process virus.exe.....
IF YOU WANT THE SOURCE CODE OF THE ABOVE PROGRAMS....CLICK DOWNLOAD
open.cpp | |
File Size: | 0 kb |
File Type: | cpp |
virus.cpp | |
File Size: | 0 kb |
File Type: | cpp |