mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Upload change from nacib, and change from alpha to beta.
This commit is contained in:
parent
7f40773ff2
commit
57b45e97f9
3 changed files with 14 additions and 17 deletions
|
@ -143,15 +143,12 @@ int niraicall_onLoadGameData()
|
|||
|
||||
extern "C" PyObject* niraicall_deobfuscate(char* code, Py_ssize_t size)
|
||||
{
|
||||
// convert to string
|
||||
std::stringstream sss;
|
||||
sss << code;
|
||||
std::string codestr = sss.str();
|
||||
std::string codestr(code, size);
|
||||
|
||||
// AES
|
||||
unsigned char* aes_decrypt = new unsigned char[size];
|
||||
unsigned char* key = new unsigned char[16];
|
||||
unsigned char* iv = new unsigned char[16];
|
||||
unsigned char* aes_decrypted = new unsigned char[size];
|
||||
unsigned char key[16];
|
||||
unsigned char iv[16];
|
||||
|
||||
for (int i = 0; i < 16; ++i)
|
||||
key[i] = (i ^ (9 * i + 81)) % ((i + 193) * 11);
|
||||
|
@ -159,10 +156,10 @@ extern "C" PyObject* niraicall_deobfuscate(char* code, Py_ssize_t size)
|
|||
for (int i = 0; i < 16; ++i)
|
||||
iv[i] = (i ^ (5 * i + 170)) % ((i + 38) * 7);
|
||||
|
||||
int decsize = AES_decrypt(reinterpret_cast<unsigned char*>(code), size, key, iv, aes_decrypt);
|
||||
int decsize = AES_decrypt((unsigned char*)code, size, key, iv, aes_decrypted);
|
||||
|
||||
std::string output(reinterpret_cast<char*>(aes_decrypt), decsize);
|
||||
// Reverse
|
||||
std::string output((char*)aes_decrypted, decsize);
|
||||
std::reverse(output.begin(), output.end());
|
||||
delete[] aes_decrypted;
|
||||
return PyString_FromStringAndSize(output.data(), decsize);
|
||||
}
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
"astron": "6b769e6",
|
||||
"panda3d": "b924139",
|
||||
"libpandadna": "a0047ce",
|
||||
"version-prefix": "ttstride-alpha-",
|
||||
"version-prefix": "ttstride-beta-",
|
||||
"server-resources": ["pdna", "txt", "dat", "bam", "ttf"]
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Config.prc should be reproduced here.
|
||||
|
||||
# Client settings
|
||||
window-title Toontown Stride [Alpha]
|
||||
window-title Toontown Stride [Beta]
|
||||
server-version SERVER_VERSION_HERE
|
||||
video-library-name p3ffmpeg
|
||||
want-dev #f
|
||||
|
|
Loading…
Reference in a new issue