• 标 题:UNFOXALL 2.1的注册机~~~呵呵~~ (2千字)
  • 作 者:伪装者[BCG]
  • 时 间:2001-5-31 18:54:39
  • 链 接:http://bbs.pediy.com

#include "stdio.h"
#include "process.h"
#define ROTATE(a,n)  (((a)<<(n))|(((a)&0xffffffff)>>(32-(n))))
main()
{unsigned tab[18]={0xd4,0xa5,0xc4,0xdc,0xd0,0xc5,0xcf,0xa2,0xc4,0xc2,0xc5,0xf4,0xd2,0xe5,0xd6,0xdc,0xbb,0xd4};    /*"豫能信息穆鹏义周辉";*/
static unsigned char string[110],al,bl,company[30],email[25],nu[8];
char ren[]="copy unfoxall.in1 unfoxall.ini/y";
char ren1[]="del unfoxall.in1";
int i,c,h;
long d,eax,edi,ebx,t;
char s[81];
FILE *fp=fopen("unfoxall.ini","r+t");
FILE *fo=fopen("unfoxall.in1","w");
if(fp==0) {printf("YOU MUST USE THIS KEYGEN WITH YOUR 'unfoxall.ini'!!!\n");fclose(fp);fclose(fo); goto end;}
fgets(s,80,fp);fputs(s,fo);
fgets(s,80,fp);fputs(s,fo);
if(s[4]!='N')
{fgets(s,80,fp);fputs(s,fo);}
d=strlen(s);
for(i=9;i<d-1;i++)
  string[i-9]=s[i];
/*puts(string);h=strlen(string);
printf("\n%d,,,,\n",h);*/
fgets(s,80,fp);fputs(s,fo);
d=strlen(s);
for(i=12;i<d-1;i++)
  company[i-12]=s[i];
  /*puts(company);*/
  fgets(s,80,fp);fputs(s,fo);
d=strlen(s);
for(i=10;i<d-1;i++)
  email[i-10]=s[i];
  fgets(s,80,fp);fputs(s,fo);
d=strlen(s);
for(i=8;i<d-1;i++)
  nu[i-8]=s[i];
  fclose(fp);printf("******UNFOXALL 2.1********\nThis keygen is made by Pretender\nFINDING....\nYour User Name is      :  ");
puts(string);
printf("Your Company name is  :  ");
puts(company);
strcat(string,company);/*h=strlen(string);
printf("\n%d\n",h);*/
printf("Your E-MAIL address is :  ");
puts(email);
strcat(string,email);/*h=strlen(string);
printf("\n%d\n",h);*/
printf("Your User Key is      :  ");
puts(nu);
strcat(string,nu);
h=strlen(string);
/*printf("\n%d\n",h);
puts(string);*/
for(i=0;i<18;i++)
string[h+i]=tab[i];
al=bl=eax=edi=ebx=t=0;
for(i=0;i<h+18;i++)
{c=string[i];
  if(i<4) eax*=128;
  eax*=2;
  edi=edi^eax;
  al=c;
  eax=eax^al;
  t=ebx;ebx=edi;edi=t;
  bl=ebx&0xff;
  bl=bl^al;
  /*printf("%x\n",bl);*/
  ebx=ebx&0xffffff00;
  ebx+=bl;
  t=ebx;ebx=edi;edi=t;
  eax=edi;
}
  /*printf("%d",i);*/
  /*puts(string);*/
  edi=edi^0xc5f4d2e5;
  /*printf("%lx\n",edi);*/
  edi=ROTATE(edi,3);
  /*printf("%lx\n",edi);*/
  edi=~edi;
  printf("Your Register code is  :  %lX\n",edi);
  sprintf(s,"SerialNumber=%lX",edi);
  fputs(s,fo);
  fclose(fo);
  system(ren);system(ren1);
end:printf("\n *****************************      ---    ---    ---\n *Welcome to WWW.CRACKNOW.COM*      /      /      / --\n *****************************      ---    ---    --/\n");}