Skip to content

Commit 831a97b

Browse files
committed
fix: Update attribute access in Rand16 class to use 'size_' prefix
1 parent 66ab0cb commit 831a97b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Jiyu_udp_attack/packet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ class Rand16:
211211
"""
212212

213213
def __getattr__(self, name: str) -> str:
214-
if name.startswith("bytes_"):
215-
length = name[6:]
214+
if name.startswith("size_"):
215+
length = name[5:]
216216
if length.isdigit():
217217
return secrets.token_bytes(int(length)).hex()
218218
raise AttributeError(f"Rand16 has no attribute '{name}'")

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.5.0"
3+
version = "0.6.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)