From 01c7007f3c7f1aa835da3745319793dd4ba09947 Mon Sep 17 00:00:00 2001
From: Him188 <Him188@mamoe.net>
Date: Wed, 4 Dec 2019 12:24:58 +0800
Subject: [PATCH] Add debugging filter output

---
 mirai-debug/src/main/kotlin/PacketDebuger.kt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mirai-debug/src/main/kotlin/PacketDebuger.kt b/mirai-debug/src/main/kotlin/PacketDebuger.kt
index 97756a2af..3af71e0c6 100644
--- a/mirai-debug/src/main/kotlin/PacketDebuger.kt
+++ b/mirai-debug/src/main/kotlin/PacketDebuger.kt
@@ -93,6 +93,8 @@ fun main() {
         listenDevice(localIp, it)
     }
     println("Ready perfectly")
+    println("Using sessionKey = ${sessionKey.value.toUHexString()}")
+    println("Filter QQ = ${qq.toLong()}")
 }
 
 /**
@@ -116,7 +118,7 @@ object PacketDebugger {
      * 7. 运行完 `mov eax,dword ptr ss:[ebp+10]`
      * 8. 查看内存, `eax` 到 `eax+10` 的 16 字节就是 `sessionKey`
      */
-    val sessionKey: SessionKey = SessionKey("06 23 F8 09 0D 2D 37 BE 2E FE 90 3A 7D E5 8F B1".hexToBytes())
+    val sessionKey: SessionKey = SessionKey("BF 65 3E 32 F3 74 03 C2 3D A3 4C 15 20 CE 55 2A".hexToBytes())
     const val qq: UInt = 1040400290u
 
     val IgnoredPacketIdList: List<PacketId> = listOf(