This program is an example of how to create a virus in C. This program demonstrates a simple virus program which upon execution (Running) creates a copy of itself in the other file. Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another [...]
Archive for the ‘C Programs’ Category
The following C program print’s the entered number in words. For example if the number entered is 12345 then the program prints the entered number in words as One Two Three Four Five #include<stdio.h> void main() { int i=0; unsigned long int digit; char str[12],ch; puts(“Enter the number (less than 10 digit)”); scanf(“%lu”,&digit); ultoa(digit,str,10); /*converts [...]
C Program to count the number of digits in the entered number
Posted: 28th July 2010 by Ravi Chopra in C ProgramsThis program displays the number of digits present in the number that is entered through the input. #include<stdio.h> #include<conio.h> void main() { unsigned long int num; int i=0; clrscr(); printf(“Enter the digit\n”); scanf(“%lu”,&num); while(num!=0) { num=num/10; ++i; } printf(“Length=%d”,i); getch(); } People who read this also read:No Related Posts
C Program to display the results without Output command
Posted: 28th July 2010 by Ravi Chopra in C ProgramsNote:- This program works only on a 16-bit C/C++ compiler. This program can be used to print a string without using any output statements such as printf, puts etc. However this program only works in 16-bit mode since it directly writes to VDU Memory #include<stdio.h> #include<conio.h> char str[]=”Hello Ravi”; char far *v=(char far *)0xb8000000; void [...]
#include<stdio.h> char *program=”#include<stdio.h>%cchar *program=%c%s%c;%cvoid main()%c{%cprintf(program,10,34,program,34,10, 10,10,10);%c}”;void main() { printf(program,10,34,program,34,10,10,10,10); } People who read this also read:No Related Posts
C Program to remove comments and blank lines from another C Program
Posted: 28th July 2010 by Ravi Chopra in C Programs#include<stdio.h> #include<conio.h> #include<process.h> #include<dos.h> void main() { FILE *a,*b; char fname[20],ch,tch=NULL,tch1=NULL; int flag1=0,flag=0,count=0,count1=0,count2=0; clrscr(); printf(“Enter the file name (.C or .TXT)\n”); gets(fname); a=fopen(fname,”r”); if(a==NULL) { puts(“Cannot open the source file!!!”); delay(500); exit(1); } b=fopen(“target.c”,”w”); if(b==NULL) { puts(“Cannot create target file!!!”); delay(500); exit(1); } while(1) { ch=fgetc(a); if(ch==EOF) break; else { if(ch==’\n’) { count1=1; tch1=ch; continue; [...]
Create Virus to Restart Computer On Start Up
Posted: 29th June 2010 by vaibhav in C Programs, Computer Hacking, Cool Computer Tricks, Learn Hacking, Virus Hacking, Windows 7 hacking, Windows Vista Hacking, Windows XP HackingTags: C program, Computer Hacking, create virus, Create Virus in C to Restart Computer On Start Up, Hacking, Internet Hacking, Learn Hacking, virus, Virus Hacking, Virus writing
I suppose everyone using Computer might have come across the term Virus but have you ever wondered about creating one? In this post I will tell you how to create a virus in C that restarts computer on startup You need to compile the code given in C compiler and make it yours. Source Code [...]

