Skip to content

Commit c9a2dd5

Browse files
committed
docs: Add Rename section with data format details
1 parent c7f2418 commit c9a2dd5

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
使用 `python Jiyu_udp_attack -h` 来获取帮助信息:
2020

2121
```
22-
usage: Jiyu_udp_attack [-h] -s TEACHER_IP [-f TEACHER_PORT] -t TARGET [-p PORT] [-i IP_ID] (-m MESSAGE | -w WEBSITE | -c COMMAND | -r [timeout [message] ...])
22+
usage: Jiyu_udp_attack [-h] -s TEACHER_IP [-f TEACHER_PORT] -t TARGET [-p PORT] [-i IP_ID] (-m MESSAGE | -w WEBSITE | -c COMMAND |
23+
-r [timeout [message] ...] | -n name name_id)
2324
2425
Jiyu Attack Script
2526
@@ -40,6 +41,8 @@ options:
4041
Command to execute on the target
4142
-r, --reboot [timeout [message] ...]
4243
Reboot the target machine, optionally with a timeout and message
44+
-n, --rename name name_id
45+
Rename the target machine
4346
4447
Github Repositories: https://github.com/weilycoder/Jiyu_udp_attack/tree/main/
4548
```
@@ -74,6 +77,22 @@ Data 区长 $954$。
7477
| $800$ | 信息内容,使用 `utf-16le` 编码 |
7578
| $98$ | 全 $0$ 段,可能是保留区 |
7679

80+
### Rename
81+
82+
Data 区长 $96$。
83+
84+
| 长度 | 内容 |
85+
| :--: | :--------------------------------------------------------: |
86+
| $28$ | `47434d4e000001004400000066b1e4923f9a364a943a3da3bd976041` |
87+
| $4$ | *ID*,需要大于上一次提供的 *ID* |
88+
| $64$ | 新名称,以 `\x00` 结尾,使用 `utf-16le` 编码 |
89+
90+
由于新名称的结尾以 `\x00` 标记,因此在结尾后可以加入其他数据,不影响识别,也没有副作用。
91+
92+
注意,结尾标记 `\x00``utf-16le` 编码后变为 `\x00\x00`
93+
94+
如果提供一个较大的 *ID*,会使教师端的重命名消息不在学生端提示。
95+
7796
### Execute
7897

7998
用于教师端在学生端远程执行命令。
@@ -113,6 +132,8 @@ Data 区变长,至少 $64$ 个字节。
113132

114133
### Reboot
115134

135+
用于重启学生机。
136+
116137
Data 区长 $582$。
117138

118139
| 长度 | 内容 |

0 commit comments

Comments
 (0)