Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Dla tych co chcą robić priva


szymek111

Rekomendowane odpowiedzi

Opublikowano

Login Decryption:

 

 

 

 

 

std::string DecryptLoginPacket(std::string str)

{

std::string decrypted_string;

 

for (int i = 0; i < str.length(); i++) { decrypted_string += str - 0xF ^ 0xC3; }

 

return decrypted_string;

}

 

 

 

Login Encryption:

 

 

 

 

 

std::string EncryptLoginPacket(std::string str)

{

std::string encrypted_string;

 

for (int i = 0; i < str.length(); i++) { encrypted_string += str + 0xF; }

 

return encrypted_string += 0x19;

}

 

 

 

 

 

Dekryptacja hasła:

 

 

 

 

 

 

std::string nosEncodings::GetPasswordString(std::string str)

{

char* pStr = const_cast<char*>(str.c_str());

std::string newStr;

std::string converted;

std::string realconverted;

int size = 0;

 

if (strlen(pStr)&1L)

{

memmove(pStr, pStr+4, strlen(pStr));

} else {

memmove(pStr, pStr+3, strlen(pStr));

}

 

 

for (int x = 0; x < strlen(pStr); x++)

{

newStr += pStr;

size+=2;

}

 

 

int realSize = newStr.length() /2;

 

size = 0;

 

for(int i = 0; i < realSize; i++)

{

int convertedByte = strtol(newStr.substr(i, size+2).c_str(), NULL, 16);

converted += convertedByte;

}

 

size = 0;

 

for (int y = 0; y < converted.length(); y++)

{

realconverted += converted;

size+=2;

}

 

realconverted.resize(realSize/2+1);

 

return realconverted;

}

 

 

 

 

Dekryptacja pakietów :

 

 

 

 

 

 

std::string DecryptSessionPacket(std::string str)

{

std::string encrypted_string;

 

for (int i = 1; i < str.length(); i++)

{

unsigned char firstbyte = str - 0xF;

unsigned char secondbyte = firstbyte;

secondbyte &= 0xF0;

firstbyte = firstbyte - secondbyte;

secondbyte >>= 0x4;

 

switch (secondbyte)

{

case 0:

encrypted_string += '\0';

break;

 

case 1:

encrypted_string += ' ';

break;

 

case 2:

encrypted_string += '-';

break;

 

case 3:

encrypted_string += '.';

break;

 

default:

secondbyte += 0x2C;

encrypted_string += secondbyte;

break;

}

 

switch (firstbyte)

{

case 0:

encrypted_string += '\0';

break;

 

case 1:

encrypted_string += ' ';

break;

 

case 2:

encrypted_string += '-';

break;

 

case 3:

encrypted_string += '.';

break;

 

default:

firstbyte += 0x2C;

encrypted_string += firstbyte;

break;

}

}

 

return encrypted_string;

}

 

 

 

Dekryptacja pakietów Gry ;p

 

 

 

 

 

std::string DecryptGamePacket(int session_id, unsigned char *str, int length)

{

std::string encrypted_string = "";

int session_key = session_id & 0xFF;

unsigned char session_number = session_id >> 6;

session_number &= 0xFF;

session_number &= 0x80000003;

 

switch (session_number)

{

case 0:

for (int i = 0; i < length; i++)

{

unsigned char firstbyte = session_key + 0x40;

unsigned char highbyte = str - firstbyte;

encrypted_string += highbyte;

}

break;

 

case 1:

for (int i = 0; i < length; i++)

{

unsigned char firstbyte = session_key + 0x40;

unsigned char highbyte = str + firstbyte;

encrypted_string += highbyte;

}

break;

 

case 2:

for (int i = 0; i < length; i++)

{

unsigned char firstbyte = session_key + 0x40;

unsigned char highbyte = str - firstbyte ^ 0xC3;

encrypted_string += highbyte;

}

break;

 

case 3:

for (int i = 0; i < length; i++)

{

unsigned char firstbyte = session_key + 0x40;

unsigned char highbyte = str + firstbyte ^ 0xC3;

encrypted_string += secondbyte;

}

break;

 

default:

encrypted_string += 0xF;

break;

}

 

std::vector<std::string> temp = split(encrypted_string, 0xFF);

std::string save = "";

 

for (int i = 0; i < temp.size(); i++)

{

save += DecryptGamePacket2(temp.c_str());

save += 0xFF;

}

 

return save;

}

 

std::string DecryptGamePacket2(unsigned char str[])

{

std::string decrypted_string;

char table[] = {' ','-','.','0','1','2','3','4','5','6','7','8','9','\n'};

int count = 0;

 

for (count = 0; count < strlen(str); )

{

if (str[count] <= 0x7A)

{

unsigned char len = str[count];

 

for (int i = 0; i < (int)len; i++)

{

count++;

decrypted_string += str[count] ^ 0xFF;

}

 

count++;

} else

{

unsigned char len = str[count];

len &= 0x7F;

 

for (int i = 0; i < (int)len;)

{

count++;

 

unsigned char highbyte = str[count];

highbyte &= 0xF0;

highbyte >>= 0x4;

 

unsigned char lowbyte = str[count];

lowbyte &= 0x0F;

 

if (highbyte != 0x0 && highbyte != 0xF)

{

decrypted_string += table[highbyte-1];

i++;

}

 

if (lowbyte != 0x0 && lowbyte != 0xF)

{

decrypted_string += table[lowbyte-1];

i++;

}

}

count ++;

}

}

 

return decrypted_string;

}

 

 

 

 

Dekryptacja pakietów gry 2 część:

 

 

 

 

 

std::string EncryptGamePacket(string str)

{

std::string encrypted_string;

std::vector<std::string> buffer;

 

buffer = split(str, ' ');

encrypted_string += buffer[0].length();

 

for (int i = 0 ; i < str.length(); i++)

{

if (i == buffer[0].length())

{

int size = str.length() - buffer[0].length();

encrypted_string += size;

}

 

encrypted_string += str ^ 0xFF;

}

 

return encrypted_string += 0xFF;

}

 

 

 

 

Jbc to wszystko robi sie w c++ :)

1340225732-U353817.png

Sygna by Vantos

:) Thx :P

 

Beliar12 najlepszy Mod!

 

 

Members|Kid Mod Nostale|Moderator Nostale

 

Opublikowano

zgaduję że masz all od devila. prawada xD?

jigorus.png

By Harukimisu

W sumie to nie zawsze. rezygnuję z posady Moderatora. Dzięki za wszytko i powodzenia...

Jeszcze kiedyś wrócę więc nie liczcie że się mnie tak łatwo pozbędziecie ;)

Opublikowano

Nie? Poco on mi miałby dawać jak sam robi???

1340225732-U353817.png

Sygna by Vantos

:) Thx :P

 

Beliar12 najlepszy Mod!

 

 

Members|Kid Mod Nostale|Moderator Nostale

 

Opublikowano

Źródło:

http://bordergame.it/showthread.php?tid=16493

Jak się za to zabrać?

누가 뭐라 해도 난 나야 난 그냥 내가 되고 싶어
I WANNA BE ME ME ME

Opublikowano

Up@Dzięki zapomniałem dodać ;p

 

 

Jak dowiem sie od devila to napisze tuta :)

 

Bo pisze z nim na skype ;p

1340225732-U353817.png

Sygna by Vantos

:) Thx :P

 

Beliar12 najlepszy Mod!

 

 

Members|Kid Mod Nostale|Moderator Nostale

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...