/*黑客字典,可以完成生日字典,穷举,自定义,电话,手机等密码的设置,最多生成20位密码,
功能还不是很完善,有空在完善它^_^*/
#include <conio.h>
#include <stdio.h>
#include <string.h>
#include <dos.h>
#include <stdlib.h>
#define R ((T=(z==1)?m:(z==2)?0:m)) /*宏定义,参数传递用*/
#define Q ((P=(z==1)?(n+1):(z==2)?lh:n))
#define Max 100
#define M 600
void crack(void);
void crack4(void);
void crack2(void);
void Txt2Dic(void);
void help(void);
char a[]={'0','1','2','3','4','5','6','7','8','9','0','A','B','C','D',
'E','F','G','H','I','G','K','L','M','N','O',
'P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d',
'e','f','g','h','i','j','k','l','m','n','o','p','q','r','s',
't','u','v','w','x','y','z','~','@','#','$','%','^','&','*','-','+',
'<','>','','[',']','(',')'};
void help(void)
{
char aa[600]={"Written by W.Z.T Don't be lazy,Just go ahead\n\n"};
int i,k;
long int j=10000000;
for(i=0;i<strlen(aa);i++)
{
for(k=0;k<4;k++)
delay(j);
printf("%c",aa);
}
}
void crack(void)
{
FILE *fp;
int T,P,z,lh,ii,jj,i,j,k,l,o,p,q,r,s,t,u,v,m,n,kk,ll,mm,oo,pp,qq,rr,ww;
char ch,le[100];
long int lenth=0;
printf("1.Brute Force\t2.Custom Range\nchoice:");
scanf("%d",&z);
printf("password lenth(3-20):");
scanf("%d",&lh);
fp=fopen("c:\\pass.dic","w+");
if(z==1)
{
printf("\nInput 0-9,will be numbers\n");
printf("Input 10-35,will be letters(A-Z)\n");
printf("Input 36-61,will be letters(a-z)\n");
printf("Input 62-89,will be other letters\n");
printf("\ninput m,n:\n");
scanf("%d%d",&m,&n);
}
if(z==2)
{
printf("Input chars:\n");
scanf("%s",a);
}
for(i=R;i<Q;i++) /*一个程序段,完成了两个功能,他上面宏定义用到了*/
{
for(j=R;j<Q;j++)
{
for(k=R;k<Q;k++)
{
if(lh==3)
{
fprintf(fp,"%c%c%c\n",a,a[j],a[k]);
continue;
}
for(l=R;l<Q;l++)
{
if(lh==4)
{
fprintf(fp,"%c%c%c%c\n",a,a[j],a[k],a[l]);
continue;
}
for(o=R;o<Q;o++)
{
if(lh==5)
{
fprintf(fp,"%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o]);
continue;
}
for(p=R;p<Q;p++)
{
if(lh==6)
{
fprintf(fp,"%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p]);
continue;
}
for(q=R;q<Q;q++)
{
if(lh==7)
{
fprintf(fp,"%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q]);
continue;
}
for(r=R;r<Q;r++)
{
if(lh==8)
{
fprintf(fp,"%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r]);
continue;
}
for(s=R;s<Q;s++)
{
if(lh==9)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s]);
continue;
}
for(t=R;t<Q;t++)
{
if(lh==10)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t]);
continue;
}
for(u=R;u<Q;u++)
{
if(lh==11)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a);
continue;
}
for(v=R;v<Q;v++)
{
if(lh==12)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v]);
continue;
}
for(kk=R;kk<Q;kk++)
{
if(lh==13)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk]);
continue;
}
for(ll=R;ll<Q;ll++)
{
if(lh==14)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll]);
continue;
}
for(mm=R;mm<Q;mm++)
{
if(lh==15)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm]);
continue;
}
for(oo=R;oo<Q;oo++)
{
if(lh==16)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo]);
continue;
}
for(pp=R;pp<Q;pp++)
{
if(lh==17)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp]);
continue;
}
for(rr=R;rr<Q;rr++)
{
if(lh==18)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp],a[rr]);
continue;
}
for(qq=R;qq<Q;qq++)
{
if(lh==19)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],
a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp],a[rr],a[qq]);
continue;
}
for(ww=R;ww<Q;ww++)
{
if(lh==20)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],
a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp],a[rr],a[qq],a[ww]);
continue;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
rewind(fp);
while((ch=fgetc(fp))!=EOF)
{
if(ch=='\n')
++lenth;
}
fclose(fp);
printf("\n");
puts(a);
printf("Done.\nThe file has %ld hang in c:\\pass.txt.\n",lenth);
}
void crack4(void)
{
FILE *fp;
int p,q,j,z,w=0;
char ch;
long m,n,i,lenth=0;
printf("1.mobile_num\t2.telphone_num\n");
scanf("%d",&z);
fp=fopen("c:\\pass1.dic","w+");
if(z==1)
{
printf("\nmobile phone number make:\n\n");
printf("EXP:130 137 start_number end_number:\n\n");
printf("Input:\n");
while(1)
{
scanf("%d%d%ld%ld",&p,&q,&m,&n);
if(p>q||m>n)
{
printf("error,p must <= q or m <= n please input again:\n");
}
else
break;
}
printf("waiting...\n\n");
for(j=p;j<=q;j++)
for(i=m;i<=n;i++)
fprintf(fp,"%d%ld\n",j,i);
rewind(fp);
while((ch=fgetc(fp))!=EOF)
{
if(ch=='\n')
++lenth;
}
printf("done.the file has %ld words in c:\\pass1.dic\n",lenth);
fclose(fp);
}
if(z==2)
{
printf("\ntelnel phone number make:\n\n");
printf("If the local number <=1000,don't input 0:\n\n");
printf("EXP:813 start_number end_number:\n");
printf(" 0476 8442132 8442159\n\n");
printf("Input:\n");
while(1)
{
scanf("%d%ld%ld",&p,&m,&n);
if(m>=n)
printf("error.start_n must <= end_n\n");
else
break;
}
printf("waiting...\n\n");
if(p>=1000)
{
for(i=m;i<=n;i++)
fprintf(fp,"%d%ld\n",p,i);
}
else
{
for(i=m;i<=n;i++)
fprintf(fp,"%d%d%ld\n",w,p,i);
}
}
rewind(fp);
while((ch=fgetc(fp))!=EOF)
{
if(ch=='\n')
++lenth;
}
fclose(fp);
printf("\nDone.\nThe file has %ld hang in c:\\pass1.txt.\n",lenth);
}
功能还不是很完善,有空在完善它^_^*/
#include <conio.h>
#include <stdio.h>
#include <string.h>
#include <dos.h>
#include <stdlib.h>
#define R ((T=(z==1)?m:(z==2)?0:m)) /*宏定义,参数传递用*/
#define Q ((P=(z==1)?(n+1):(z==2)?lh:n))
#define Max 100
#define M 600
void crack(void);
void crack4(void);
void crack2(void);
void Txt2Dic(void);
void help(void);
char a[]={'0','1','2','3','4','5','6','7','8','9','0','A','B','C','D',
'E','F','G','H','I','G','K','L','M','N','O',
'P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d',
'e','f','g','h','i','j','k','l','m','n','o','p','q','r','s',
't','u','v','w','x','y','z','~','@','#','$','%','^','&','*','-','+',
'<','>','','[',']','(',')'};
void help(void)
{
char aa[600]={"Written by W.Z.T Don't be lazy,Just go ahead\n\n"};
int i,k;
long int j=10000000;
for(i=0;i<strlen(aa);i++)
{
for(k=0;k<4;k++)
delay(j);
printf("%c",aa);
}
}
void crack(void)
{
FILE *fp;
int T,P,z,lh,ii,jj,i,j,k,l,o,p,q,r,s,t,u,v,m,n,kk,ll,mm,oo,pp,qq,rr,ww;
char ch,le[100];
long int lenth=0;
printf("1.Brute Force\t2.Custom Range\nchoice:");
scanf("%d",&z);
printf("password lenth(3-20):");
scanf("%d",&lh);
fp=fopen("c:\\pass.dic","w+");
if(z==1)
{
printf("\nInput 0-9,will be numbers\n");
printf("Input 10-35,will be letters(A-Z)\n");
printf("Input 36-61,will be letters(a-z)\n");
printf("Input 62-89,will be other letters\n");
printf("\ninput m,n:\n");
scanf("%d%d",&m,&n);
}
if(z==2)
{
printf("Input chars:\n");
scanf("%s",a);
}
for(i=R;i<Q;i++) /*一个程序段,完成了两个功能,他上面宏定义用到了*/
{
for(j=R;j<Q;j++)
{
for(k=R;k<Q;k++)
{
if(lh==3)
{
fprintf(fp,"%c%c%c\n",a,a[j],a[k]);
continue;
}
for(l=R;l<Q;l++)
{
if(lh==4)
{
fprintf(fp,"%c%c%c%c\n",a,a[j],a[k],a[l]);
continue;
}
for(o=R;o<Q;o++)
{
if(lh==5)
{
fprintf(fp,"%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o]);
continue;
}
for(p=R;p<Q;p++)
{
if(lh==6)
{
fprintf(fp,"%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p]);
continue;
}
for(q=R;q<Q;q++)
{
if(lh==7)
{
fprintf(fp,"%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q]);
continue;
}
for(r=R;r<Q;r++)
{
if(lh==8)
{
fprintf(fp,"%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r]);
continue;
}
for(s=R;s<Q;s++)
{
if(lh==9)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s]);
continue;
}
for(t=R;t<Q;t++)
{
if(lh==10)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t]);
continue;
}
for(u=R;u<Q;u++)
{
if(lh==11)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a);
continue;
}
for(v=R;v<Q;v++)
{
if(lh==12)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v]);
continue;
}
for(kk=R;kk<Q;kk++)
{
if(lh==13)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk]);
continue;
}
for(ll=R;ll<Q;ll++)
{
if(lh==14)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll]);
continue;
}
for(mm=R;mm<Q;mm++)
{
if(lh==15)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm]);
continue;
}
for(oo=R;oo<Q;oo++)
{
if(lh==16)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo]);
continue;
}
for(pp=R;pp<Q;pp++)
{
if(lh==17)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp]);
continue;
}
for(rr=R;rr<Q;rr++)
{
if(lh==18)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp],a[rr]);
continue;
}
for(qq=R;qq<Q;qq++)
{
if(lh==19)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],
a[k],a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp],a[rr],a[qq]);
continue;
}
for(ww=R;ww<Q;ww++)
{
if(lh==20)
{
fprintf(fp,"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%\n",a,a[j],a[k],
a[l],a[o],a[p],a[q],a[r],a[s],a[t],a,a[v],a[kk],a[ll],a[mm],a[oo],a[pp],a[rr],a[qq],a[ww]);
continue;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
rewind(fp);
while((ch=fgetc(fp))!=EOF)
{
if(ch=='\n')
++lenth;
}
fclose(fp);
printf("\n");
puts(a);
printf("Done.\nThe file has %ld hang in c:\\pass.txt.\n",lenth);
}
void crack4(void)
{
FILE *fp;
int p,q,j,z,w=0;
char ch;
long m,n,i,lenth=0;
printf("1.mobile_num\t2.telphone_num\n");
scanf("%d",&z);
fp=fopen("c:\\pass1.dic","w+");
if(z==1)
{
printf("\nmobile phone number make:\n\n");
printf("EXP:130 137 start_number end_number:\n\n");
printf("Input:\n");
while(1)
{
scanf("%d%d%ld%ld",&p,&q,&m,&n);
if(p>q||m>n)
{
printf("error,p must <= q or m <= n please input again:\n");
}
else
break;
}
printf("waiting...\n\n");
for(j=p;j<=q;j++)
for(i=m;i<=n;i++)
fprintf(fp,"%d%ld\n",j,i);
rewind(fp);
while((ch=fgetc(fp))!=EOF)
{
if(ch=='\n')
++lenth;
}
printf("done.the file has %ld words in c:\\pass1.dic\n",lenth);
fclose(fp);
}
if(z==2)
{
printf("\ntelnel phone number make:\n\n");
printf("If the local number <=1000,don't input 0:\n\n");
printf("EXP:813 start_number end_number:\n");
printf(" 0476 8442132 8442159\n\n");
printf("Input:\n");
while(1)
{
scanf("%d%ld%ld",&p,&m,&n);
if(m>=n)
printf("error.start_n must <= end_n\n");
else
break;
}
printf("waiting...\n\n");
if(p>=1000)
{
for(i=m;i<=n;i++)
fprintf(fp,"%d%ld\n",p,i);
}
else
{
for(i=m;i<=n;i++)
fprintf(fp,"%d%d%ld\n",w,p,i);
}
}
rewind(fp);
while((ch=fgetc(fp))!=EOF)
{
if(ch=='\n')
++lenth;
}
fclose(fp);
printf("\nDone.\nThe file has %ld hang in c:\\pass1.txt.\n",lenth);
}
评论Feed: http://www.85815.com/feed.asp?q=comment&id=479
引用链接: http://www.85815.com/trackback.asp?id=479&key=
这篇日志没有评论.