|
static password;
function SetPass(pass)
{
set_window("EnterPass");
password_edit_set("pass", password_encrypt(pass));
if(win_exists("Error", 5) == E_OK)
{
set_window("Error");
win_close("Error");
return 0;
}
else
{
password = pass;
return 1;
}
}
function FinPass( ) #total: 10 + 10*10 + 10*10*10 + ... + 10*10*10*10*10*10
{
auto num;
auto x1, x2, x3, x4, x5, x6;
for( x1 = 0; x1 < 10; x1++ )
{
num = x1;
if(SetPass(num))
return;
for( x2 = 0; x2 < 10; x2++ )
{
num = x1 & x2;
if(SetPass(num))
return;
for( x3 = 0; x3 < 10; x3++ )
{
num = x1 & x2 & x3;
if(SetPass(num))
return;
for( x4 = 0; x4 < 10; x4++ )
{
num = x1 & x2 & x3 & x4;
if(SetPass(num))
return;
for( x5 = 0; x5 < 10; x5++ )
{
num = x1 & x2 & x3 & x4 & x5;
if(SetPass(num))
return;
for( x6 = 0; x5 < 10; x6++ )
{
num = x1 & x2 & x3 & x4 & x5 & x6;
if(SetPass(num))
return;
}
}
}
}
}
}
}
FindPass( );
Try it.
The result is: wait(1000000000000) in WR. That's waiting, waiting and waiting. |
|