diff --git a/habbgo/protocol/composers/handshake_composers.go b/habbgo/protocol/composers/handshake_composers.go index fd33548..0d29734 100644 --- a/habbgo/protocol/composers/handshake_composers.go +++ b/habbgo/protocol/composers/handshake_composers.go @@ -30,7 +30,7 @@ func ComposeCryptoParams() *packets.OutgoingPacket { func ComposeSecretKey() *packets.OutgoingPacket { packet := packets.NewOutgoing(1) - packet.WriteString("secretkey") + packet.WriteString("dsfsfaefsadfdsffdshdsfgfdfdsafdasefasdfasdfsdgfdsgdsfgsdfgds") return packet } diff --git a/habbgo/protocol/handlers/handshake_handlers.go b/habbgo/protocol/handlers/handshake_handlers.go index 1b243d1..89c78ef 100644 --- a/habbgo/protocol/handlers/handshake_handlers.go +++ b/habbgo/protocol/handlers/handshake_handlers.go @@ -13,6 +13,7 @@ func InitCrypto(player *player.Player, packet *packets.IncomingPacket) { func GenerateKey(player *player.Player, packet *packets.IncomingPacket) { player.Session.Send(composers.ComposeAvailableSets()) player.Session.Send(composers.ComposeEndCrypto()) + //player.Session.Send(composers.ComposeSecretKey()) } func GetSessionParams(player *player.Player, packet *packets.IncomingPacket) { @@ -27,6 +28,10 @@ func UniqueID(player *player.Player, packet *packets.IncomingPacket) { } +func SECRETKEY(player *player.Player, packets *packets.IncomingPacket) { + player.Session.Send(composers.ComposeEndCrypto()) +} + func SSO(p *player.Player, packet *packets.IncomingPacket) { token := packet.ReadString()