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
a5995007
Commit
a5995007
authored
Jan 29, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhance debugger tools
parent
fb1b3752
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidClient.kt
...tlin/net/mamoe/mirai/qqandroid/network/QQAndroidClient.kt
+1
-1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PushNotify.kt
...ork/protocol/packet/chat/receive/MessageSvc.PushNotify.kt
+1
-1
mirai-core-qqandroid/src/jvmTest/kotlin/androidPacketTests/clientToServer.kt
...d/src/jvmTest/kotlin/androidPacketTests/clientToServer.kt
+3
-1
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidClient.kt
View file @
a5995007
...
@@ -111,7 +111,7 @@ internal open class QQAndroidClient(
...
@@ -111,7 +111,7 @@ internal open class QQAndroidClient(
class
C2cMessageSyncData
{
class
C2cMessageSyncData
{
var
syncCookie
=
EMPTY_BYTE_ARRAY
var
syncCookie
=
EMPTY_BYTE_ARRAY
var
pubAccountCookie
=
EMPTY_BYTE_ARRAY
var
pubAccountCookie
=
EMPTY_BYTE_ARRAY
var
syncFlag
:
Int
=
2
var
syncFlag
:
Int
=
0
var
msgCtrlBuf
:
ByteArray
=
EMPTY_BYTE_ARRAY
var
msgCtrlBuf
:
ByteArray
=
EMPTY_BYTE_ARRAY
}
}
...
...
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PushNotify.kt
View file @
a5995007
...
@@ -67,7 +67,7 @@ class MessageSvc {
...
@@ -67,7 +67,7 @@ class MessageSvc {
latestRambleNumber
=
20
,
latestRambleNumber
=
20
,
otherRambleNumber
=
3
,
otherRambleNumber
=
3
,
onlineSyncFlag
=
1
,
onlineSyncFlag
=
1
,
serverBuf
=
from
.
serverBuf
?:
EMPTY_BYTE_ARRAY
,
//
serverBuf = from.serverBuf ?: EMPTY_BYTE_ARRAY,
syncCookie
=
client
.
c2cMessageSync
.
syncCookie
,
syncCookie
=
client
.
c2cMessageSync
.
syncCookie
,
syncFlag
=
client
.
c2cMessageSync
.
syncFlag
,
syncFlag
=
client
.
c2cMessageSync
.
syncFlag
,
msgCtrlBuf
=
client
.
c2cMessageSync
.
msgCtrlBuf
,
msgCtrlBuf
=
client
.
c2cMessageSync
.
msgCtrlBuf
,
...
...
mirai-core-qqandroid/src/jvmTest/kotlin/androidPacketTests/clientToServer.kt
View file @
a5995007
...
@@ -237,7 +237,9 @@ fun ByteReadPacket.analysisOneFullPacket(): ByteReadPacket = debugIfFail("Failed
...
@@ -237,7 +237,9 @@ fun ByteReadPacket.analysisOneFullPacket(): ByteReadPacket = debugIfFail("Failed
DebugLogger
.
info
(
"发送 login!! 正在获取 tgtgtKey"
)
DebugLogger
.
info
(
"发送 login!! 正在获取 tgtgtKey"
)
try
{
try
{
discardExact
(
4
)
discardExact
(
4
)
readTLVMap
()[
0
x106
]
val
tlvMap
=
readTLVMap
()
tlvMap
.
printTLVMap
()
tlvMap
[
0
x106
]
?.
also
{
DebugLogger
.
info
(
"找到了 0x106"
)
}
?.
also
{
DebugLogger
.
info
(
"找到了 0x106"
)
}
?.
decryptBy
(
md5
(
passwordMd5
+
ByteArray
(
4
)
+
uin
.
toInt
().
toByteArray
()))
?.
decryptBy
(
md5
(
passwordMd5
+
ByteArray
(
4
)
+
uin
.
toInt
().
toByteArray
()))
?.
read
{
?.
read
{
...
...
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