Add authenticator opcode support + auth_probe tool

This commit is contained in:
Kelsi 2026-02-13 00:55:36 -08:00
parent fd468ce793
commit 6a44f02e0c
8 changed files with 188 additions and 15 deletions

View file

@ -43,6 +43,9 @@ struct LogonChallengeResponse {
uint32_t pinGridSeed = 0;
std::array<uint8_t, 16> pinSalt{};
// Authenticator extension (securityFlags & 0x04)
uint8_t authenticatorRequired = 0;
bool isSuccess() const { return result == AuthResult::SUCCESS; }
};
@ -64,6 +67,12 @@ public:
const std::array<uint8_t, 20>* pinHash);
};
// AUTHENTICATOR token packet builder (opcode 0x04 on many TrinityCore-derived servers)
class AuthenticatorTokenPacket {
public:
static network::Packet build(const std::string& token);
};
// LOGON_PROOF response data
struct LogonProofResponse {
uint8_t status;