b[0] = 0;
for (int i=0;i{
for (int j=a-1;j>=0;j--)
{
if (b[j][0]>=chrlen && j>0)
{
b[j][0] = 0;
b[j-1][0]++;
}
cout << chr[b[j][0]];
}
cout << " ";
b[a-1][0]++;
}
delete b;
system("PAUSE");
return 0;
}
2023年7月31日发(作者:)
密码暴力破解器核心代码
发表时间:2009-10-09 08:49:09 作者: 来源:红客联盟 收藏本页
#include
#include
using namespace std;
int main()
{
char chr[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
int a, chrlen = strlen(chr);
cout << "请输入密码长度: ";
cin >> a;
(ios::fixed);
int (*b)[1] = new int[a][1];
for (int i=0;ib[0] = 0;
for (int i=0;i{
for (int j=a-1;j>=0;j--)
{
if (b[j][0]>=chrlen && j>0)
{
b[j][0] = 0;
b[j-1][0]++;
}
cout << chr[b[j][0]];
}
cout << " ";
b[a-1][0]++;
}
delete b;
system("PAUSE");
return 0;
}
发布评论