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 ...@@ -37,7 +37,7 @@ class Client0836_622Packet(private val qq: Int, private val password: String, pr
this.writeQQ(qq) this.writeQQ(qq)
this.writeHex("00 06")//tag this.writeHex("00 06")//tag
this.writeHex("00 78")//length this.writeHex("00 78")//length
this.writeTLV0006(qq, password) this.writeTLV0006(qq, password,)
//fix //fix
this.writeHex(Protocol._0836_622_fix2) this.writeHex(Protocol._0836_622_fix2)
this.writeHex("00 1A")//tag this.writeHex("00 1A")//tag
......
...@@ -36,11 +36,12 @@ class Server0825Packet(private val type: Type, inputStream: DataInputStream) : S ...@@ -36,11 +36,12 @@ class Server0825Packet(private val type: Type, inputStream: DataInputStream) : S
serverIP = data.readIP() serverIP = data.readIP()
} }
0X00 -> { 0X00 -> {
data.skip(67) data.skip(5)
token = data.readNBytes(56)
data.skip(28)
loginTime = data.readInt() loginTime = data.readInt()
loginIP = data.readIP() loginIP = data.readIP()
token = data.readNBytes(56)
tgtgtKey = getRandomKey(16) tgtgtKey = getRandomKey(16)
} }
......
...@@ -50,8 +50,7 @@ fun DataInputStream.readUntil(byte: Byte): ByteArray { ...@@ -50,8 +50,7 @@ fun DataInputStream.readUntil(byte: Byte): ByteArray {
fun DataInputStream.readIP(): String { fun DataInputStream.readIP(): String {
var buff = "" var buff = ""
for (i in 0..3) {//todo: check t// hat for (i in 0..3) {//todo: check t// hat
val b = readByte() buff += (readByte().toInt()).toString()
buff += (b.toInt() + (128)).toString()
if(i !=3)buff+="." if(i !=3)buff+="."
} }
return 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