mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-25 21:03:51 +00:00
Add authenticator opcode support + auth_probe tool
This commit is contained in:
parent
fd468ce793
commit
6a44f02e0c
8 changed files with 188 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue