modul PEN1 a devenit ff cunoscut dar are un mic bug acesta fiind oricine se conecteaza pe server poate sa se faca admin tastand /regnick/register si un cod carel face admin level 50000 am gasit bugul si o metoda sa fie reparat in mod gasiti liniile acestea: public Encript(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
return 1;
}
public Decript(string[])
{
if (gdebug){printf("DEBUG string = %s", string);}
for(new x=0; x < strlen(string); x++)
{
string[x] -= (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
if (gdebug){printf("DEBUG decript = %s", string);}
return 1;
}
aceste linii sunt bugurile
sa fie reparat inlocuiti acele linii cu acestea:
public Encript(string[])
{
/*for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}*/
return 1;
}
public Decript(string[])
{
/*if (gdebug){printf("DEBUG string = %s", string);}
for(new x=0; x < strlen(string); x++)
{
string[x] -= (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
if (gdebug){printf("DEBUG decript = %s", string);}*/
return 1;
} spor ;D