mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-06 08:00:10 +08:00
??
This commit is contained in:
parent
6e01b4ec71
commit
3f5fdfb3a4
@ -11,9 +11,9 @@ import java.io.DataInputStream
|
||||
class Server0825Packet(private val type: Type, inputStream: DataInputStream) : ServerPacket(inputStream) {
|
||||
lateinit var serverIP: String;
|
||||
|
||||
var loginTime: Int = 0;
|
||||
lateinit var loginIP: String;
|
||||
lateinit var token: ByteArray;
|
||||
var loginTime: Int = 0
|
||||
lateinit var loginIP: String
|
||||
lateinit var token: ByteArray
|
||||
lateinit var tgtgtKey: ByteArray
|
||||
|
||||
enum class Type {
|
||||
@ -36,7 +36,7 @@ class Server0825Packet(private val type: Type, inputStream: DataInputStream) : S
|
||||
serverIP = data.readIP()
|
||||
}
|
||||
0X00 -> {
|
||||
data.skip(5)
|
||||
data.skip(4)
|
||||
token = data.readNBytes(56)
|
||||
data.skip(28)
|
||||
|
||||
|
@ -12,6 +12,7 @@ fun main(){
|
||||
val s = DataInputStream(data.hexToBytes().inputStream())
|
||||
val packet = Server0825Packet(Server0825Packet.Type.TYPE_08_25_31_01,s)
|
||||
packet.decode()
|
||||
System.out.println(packet.token.toUByteArray().toHexString(" "))
|
||||
System.out.println(packet.loginTime)
|
||||
System.out.println(packet.loginIP)
|
||||
}
|
Loading…
Reference in New Issue
Block a user