From 0312dd2f1c0ad4bdd255b2e3f3d2cd491a5604a9 Mon Sep 17 00:00:00 2001 From: jtieri <37750742+jtieri@users.noreply.github.com> Date: Thu, 16 Sep 2021 00:25:33 -0500 Subject: [PATCH] playing with crypto in handshake --- habbgo/protocol/composers/handshake_composers.go | 2 +- habbgo/protocol/handlers/handshake_handlers.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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()