We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ab0cb commit 831a97bCopy full SHA for 831a97b
Jiyu_udp_attack/packet.py
@@ -211,8 +211,8 @@ class Rand16:
211
"""
212
213
def __getattr__(self, name: str) -> str:
214
- if name.startswith("bytes_"):
215
- length = name[6:]
+ if name.startswith("size_"):
+ length = name[5:]
216
if length.isdigit():
217
return secrets.token_bytes(int(length)).hex()
218
raise AttributeError(f"Rand16 has no attribute '{name}'")
pyproject.toml
@@ -1,6 +1,6 @@
1
[project]
2
name = "Jiyu-udp-attack"
3
-version = "0.5.0"
+version = "0.6.0"
4
description = "Send packets to student machines disguised as Jiyu teacher machine"
5
authors = [{ name = "weilycoder", email = "[email protected]" }]
6
license = "MIT"
0 commit comments