Displaying Source Code(s)
|
|
ScreenSaver Password Cracker
--------------------------------------------------------------------------------
Description : This code lets you know the Screen Saver Password.
You can now know how they encrypt the password, how we can
decrypt it.
/*
Screen Saveer Password Cracker:
Decrypts Screen Saver Password which is stored in user.dat.
*/
#include<ctype.h>
#include<stdio.h>
#include<string.h>
FILE *fp;
char *path="c:\windows\user.dat";
/*encrypted password stored in this file when u log on to
default user..
If there r multiple users..Password stored in
\windowsprofilesuser-nameuser.dat...
*/
unsigned long int search(char *s);
char *encstr(unsigned long int loc);
int toint(char a);
void main()
{
unsigned long int l;
char s[51];
int arr[]={4,8,14,14,7,6,1,13,6,7,6,9,10,1,1,11,7,10,8,12,4,7,
15,8,5,4,9,5,9,7,5,15,7,8,13,9,13,10,6,12,5,9,13,7,6,11,3,5,12,5};
//this array is 2 b xored with encrypted-string
int s1[51],s2[51];
int i,len,k;
clrscr();
l=search("ScreenSave_Data");
strcpy(s,encstr(l));
len=strlen(s);
for(i=0;i<len;i++)
{
s1[i]=toint(s[i]);
s2[i]=(s1[i])^(arr[i]);
}
printf("Current Screen Saver Password:<BR>);
for(i=0;i<len;i+=2)
printf("%c", (s2[i]*16)+(s2[i+1]) );
}
/* Searches where ScreenSave_Data is there in the file
and returns the location*/
unsigned long int search(char *s)
{
int k=0,len,ch;
unsigned long int i=0;
fp=fopen(path,"rb");
len=strlen(s);
while( (ch=getc(fp))!=EOF)
{
if(ch==s[k])
k++;
else k=0;
i++;
if(k==len)
return i;
}
}
/* It returns Encrypted String*/
char *encstr(unsigned long int loc)
{
char ch,s[55],ch1;
int i=0;
ch=toascii(0);
fp=fopen(path,"rb");
fseek(fp,loc,SEEK_SET);
while( (ch1=fgetc(fp))!=ch)
{ s[i]=ch1;
i++;
}
s[i]='
|
|
|