Commit 13b43615 authored by liujiahua123123's avatar liujiahua123123

??

parent 091037ec
......@@ -37,7 +37,7 @@ class Client0836_622Packet(private val qq: Int, private val password: String, pr
this.writeQQ(qq)
this.writeHex("00 06")//tag
this.writeHex("00 78")//length
this.writeTLV0006(qq, password)
this.writeTLV0006(qq, password,)
//fix
this.writeHex(Protocol._0836_622_fix2)
this.writeHex("00 1A")//tag
......
......@@ -36,11 +36,12 @@ class Server0825Packet(private val type: Type, inputStream: DataInputStream) : S
serverIP = data.readIP()
}
0X00 -> {
data.skip(67)
data.skip(5)
token = data.readNBytes(56)
data.skip(28)
loginTime = data.readInt()
loginIP = data.readIP()
token = data.readNBytes(56)
tgtgtKey = getRandomKey(16)
}
......
......@@ -50,8 +50,7 @@ fun DataInputStream.readUntil(byte: Byte): ByteArray {
fun DataInputStream.readIP(): String {
var buff = ""
for (i in 0..3) {//todo: check t// hat
val b = readByte()
buff += (b.toInt() + (128)).toString()
buff += (readByte().toInt()).toString()
if(i !=3)buff+="."
}
return buff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment