Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
13b43615
Commit
13b43615
authored
Aug 17, 2019
by
liujiahua123123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
??
parent
091037ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
mirai-core/src/main/java/net/mamoe/mirai/network/packet/client/Client0836_622Packet.kt
...mamoe/mirai/network/packet/client/Client0836_622Packet.kt
+1
-1
mirai-core/src/main/java/net/mamoe/mirai/network/packet/server/Server0825Packet.kt
...net/mamoe/mirai/network/packet/server/Server0825Packet.kt
+3
-2
mirai-core/src/main/java/net/mamoe/mirai/network/packet/server/ServerPacket.kt
...ava/net/mamoe/mirai/network/packet/server/ServerPacket.kt
+1
-2
No files found.
mirai-core/src/main/java/net/mamoe/mirai/network/packet/client/Client0836_622Packet.kt
View file @
13b43615
...
@@ -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
...
...
mirai-core/src/main/java/net/mamoe/mirai/network/packet/server/Server0825Packet.kt
View file @
13b43615
...
@@ -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
()
}
}
0
X00
->
{
0
X00
->
{
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
)
}
}
...
...
mirai-core/src/main/java/net/mamoe/mirai/network/packet/server/ServerPacket.kt
View file @
13b43615
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment