Skip to content

Commit 4d12cb3

Browse files
committed
docs: Update help messages for command-line arguments
1 parent 3c8572e commit 4d12cb3

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

Jiyu_udp_attack/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,21 @@ def format_usage(self) -> str:
132132
"--message",
133133
type=str,
134134
metavar="<msg>",
135-
help="Message to send",
135+
help="Send a message to the target machine",
136136
)
137137
attack_action.add_argument(
138138
"-w",
139139
"--website",
140140
type=str,
141141
metavar="<url>",
142-
help="Website URL to ask to open",
142+
help="Open a website on the target machine",
143143
)
144144
attack_action.add_argument(
145145
"-c",
146146
"--command",
147147
type=str,
148148
metavar="<command>",
149-
help="Command to execute on the target",
149+
help="Execute a command on the target machine (`cmd /D /C <command>`, Windows only)",
150150
)
151151
temp = attack_action.add_argument(
152152
"-e",
@@ -199,7 +199,7 @@ def format_usage(self) -> str:
199199
"--hex",
200200
type=str,
201201
metavar="<hex_data>",
202-
help="Hexadecimal string to send as a raw packet",
202+
help="Send raw hex data to the target machine",
203203
)
204204

205205
args = parser.parse_args()

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ usage: Jiyu_udp_attack [-h] [-f <ip>] [-fp <port>] -t <ip> [-tp <port>]
2323
[-i <ip_id>] (-m <msg> | -w <url> | -c <command> |
2424
-e <program> [<args> ...] |
2525
-s [<timeout> [<message> ...]] |
26-
-r [<timeout> [<message> ...]] | -n <name> <name_id> |
27-
--hex <hex_data>)
26+
-r [<timeout> [<message> ...]] |
27+
-cw [<timeout> [<message> ...]] | -ctw |
28+
-n <name> <name_id> | --hex <hex_data>)
2829
2930
Jiyu Attack Script
3031
@@ -46,10 +47,11 @@ Network Configuration:
4647
Attack Action:
4748
Specify the action to perform on the target machine.
4849
49-
-m, --message <msg> Message to send
50-
-w, --website <url> Website URL to ask to open
50+
-m, --message <msg> Send a message to the target machine
51+
-w, --website <url> Open a website on the target machine
5152
-c, --command <command>
52-
Command to execute on the target
53+
Execute a command on the target machine (`cmd /D /C
54+
<command>`, Windows only)
5355
-e, --execute, --minimize-execute, --maximize-execute <program> [<args> ...]
5456
Execute a program with arguments on the target machine
5557
-s, --shutdown [<timeout> [<message> ...]]
@@ -58,9 +60,13 @@ Attack Action:
5860
-r, --reboot [<timeout> [<message> ...]]
5961
Reboot the target machine, optionally with a timeout
6062
and message
63+
-cw, --close-windows [<timeout> [<message> ...]]
64+
Close all windows on the target machine
65+
-ctw, --close-top-window
66+
Close the top window on the target machine
6167
-n, --rename <name> <name_id>
6268
Rename the target machine
63-
--hex <hex_data> Hexadecimal string to send as a raw packet
69+
--hex <hex_data> Send raw hex data to the target machine
6470
6571
Github Repositories: https://github.com/weilycoder/Jiyu_udp_attack/tree/main/
6672
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "Jiyu-udp-attack"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "Send packets to student machines disguised as Jiyu teacher machine"
55
authors = [{ name = "weilycoder", email = "[email protected]" }]
66
license = "MIT"

0 commit comments

Comments
 (0)