This commit is contained in:
liujiahua123123 2019-08-17 21:57:48 +08:00
parent 6e01b4ec71
commit 3f5fdfb3a4
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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)
}