Quote:
Originally Posted by xinzoe
what do you mean "you think"? give a source or don't talk at all
|
From lafko dev: Salt will change every small update that occurs every 3 hours. There is no point in making a radar
So unless your getting paid no ones going to keep a public radar updated and make changes every 3 hours.
Unless this turns out well then we wouldn't need to update all the time.
Code:
case NMT_Hello:
{
uint8_t a; bunch << a;
uint32_t b; bunch << b;
std::string encryption_token = bunch.read_str();
// this changes with each small update, you can get it from memory or bruteforce it
std::string salt = { 0x2d, 0x29, 0x22, 0x0e, 0x29, 0x25, 0x1a, 0x0a, 0x25, 0x21, 0x12, 0x06, 0x21, 0x1d, 0x0a, 0x02, 0x3d, 0x39, 0x22, 0x1e, 0x39, 0x35, 0x1a, 0x1a };
std::transform(salt.begin(), salt.end(), encryption_token.begin(), encryption_token.begin(),
[](unsigned char c1, unsigned char c2) -> unsigned char { return c1 + c2; });
connection->enable_encryption(encryption_token);
}