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
77eb98f8
Commit
77eb98f8
authored
Nov 24, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve debugger
parent
825da14f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
debuggui.cmd
debuggui.cmd
+1
-0
mirai-debug/src/main/kotlin/HexDebuggerGui.kt
mirai-debug/src/main/kotlin/HexDebuggerGui.kt
+6
-3
mirai-debug/src/main/kotlin/PacketDebuger.kt
mirai-debug/src/main/kotlin/PacketDebuger.kt
+1
-1
No files found.
debuggui.cmd
0 → 100644
View file @
77eb98f8
gradle
:mirai
-debug
:run
\ No newline at end of file
mirai-debug/src/main/kotlin/HexDebuggerGui.kt
View file @
77eb98f8
...
...
@@ -76,7 +76,7 @@ class HexDebuggerGui : View("s") {
private
lateinit
var
outUVarInt
:
TextField
private
lateinit
var
outShort
:
TextField
private
lateinit
var
outUInt
:
TextField
private
lateinit
var
outString
:
Text
Field
private
lateinit
var
outString
:
Text
Area
private
val
clip
=
Toolkit
.
getDefaultToolkit
().
systemClipboard
...
...
@@ -195,7 +195,8 @@ class HexDebuggerGui : View("s") {
}
vbox
(
10
)
{
alignment
=
Pos
.
CENTER_RIGHT
paddingTop
=
10
alignment
=
Pos
.
TOP_RIGHT
label
(
"size"
)
label
(
"UVarInt"
)
label
(
"short"
)
...
...
@@ -229,9 +230,11 @@ class HexDebuggerGui : View("s") {
isEditable
=
false
}
outString
=
text
field
{
outString
=
text
area
{
promptText
=
"String"
isEditable
=
false
maxWidth
=
100.0
minHeight
=
30.0
}
children
.
filterIsInstance
<
Region
>().
forEach
{
...
...
mirai-debug/src/main/kotlin/PacketDebuger.kt
View file @
77eb98f8
...
...
@@ -118,7 +118,7 @@ object PacketDebugger {
* 7. 运行完 `mov eax,dword ptr ss:[ebp+10]`
* 8. 查看内存, `eax` 到 `eax+10` 的 16 字节就是 `sessionKey`
*/
val
sessionKey
:
SessionKey
=
SessionKey
(
"
15 95 8D 22 F7 3B C6 6E FE 91 1B 1B 8F A2 9E 1C
"
.
hexToBytes
())
val
sessionKey
:
SessionKey
=
SessionKey
(
"
43 EA BD 3C FF 6A 07 8E E4 13 E9 42 7F AD 03 F1
"
.
hexToBytes
())
const
val
qq
:
UInt
=
761025446
u
val
IgnoredPacketIdList
:
List
<
PacketId
>
=
listOf
(
...
...
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