This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allpass0.cpp
74 lines (68 loc) · 1.75 KB
/
allpass0.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//---------------------------------------------------------------------------
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma argsused
#include <conio.h>
#include <fstream.h>
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char* argv[])
{
char alphabeet[]="0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLMNBVCXZ<>.,?\/\\\'\";:[]{}=-_+)(*&^%$#@!~` ";
/* Ŕëôŕâčň ěîćíî ěîäčôčöčđîâŕňü ďî ćĺëŕíčţ, âęëţ÷ŕ˙, íŕďđčěĺđ đóńńęčĺ áóęâű, č
čńęëţ÷ŕ˙ ńčěâîëű... ęŕę äóřĺ óăîäíî... */
ofstream w;
char tempchar;
int i=0;
while (temphar!=' ') //äëčíŕ ŕëôŕâčňŕ
{
tempchar=alphabeet[i];
i++;
}
length=i; //95
w.open("passlist.txt",ios::app);
char output[9];
int i, a1, a2, a3, a4, a5, a6, a7, a8, numchar;
/* Đŕńńěîňđĺí ďđčěĺđ äë˙ ďĺđĺáîđŕ ÂŃĹŐ âîńüěčçíŕ÷íűő ęîěáčíŕöčé, îäŕęî, çŕďóńňčâ, ńěĺćĺřü óáĺäčňüń˙,
÷ňî ńčĺ ÷óäî çŕéěĺň ďŕđó ăčăîâ ňĺęńňŕ)) Ďîýňîěó ńîâĺňóţ ďĺđĺáčđŕňü äë˙ 2, 3, 4 - ńčěâîëüíűő ďŕđîëĺé...
ďî íóćäĺ - áëüřĺ... ×ňî áű ýňî ńäĺëŕňü çŕęîěĺíňčđóé a8, a7 č ň.ď., ęîňîđűĺ â for'ĺ, č â output'e. Óäŕ÷č! */
for (a1=0; a1<length; a1++)
{
for (a2=0; a2<length; a2++)
{
for (a3=0; a3<length; a3++)
{
for (a4=0; a4<length; a4++)
{
for (a5=0; a5<length; a5++)
{
for (a6=0; a6<length; a6++)
{
for (a7=0; a7<length; a7++)
{
for (a8=0; a8<length; a8++)
{
output[0]=alphabeet[a1];
output[1]=alphabeet[a2];
output[2]=alphabeet[a3];
output[3]=alphabeet[a4];
output[4]=alphabeet[a5];
output[5]=alphabeet[a6];
output[6]=alphabeet[a7];
output[7]=alphabeet[a8];
output[8]='\0';
w << output << endl;
}
}
}
}
}
}
}
}
w.close();
return 0;
}
//---------------------------------------------------------------------------