Implement rooms V3 through V9

This commit is contained in:
2025-10-25 04:22:48 -04:00
parent 2f891508ab
commit 9b6988a029
7 changed files with 126 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
print("Available utils:")
a = [
"makekey",
"joinroom"
"makekey - Generate a signing key",
"joinroom - Join a remote room",
"roomwithver - Brute-force a room with a specific room version",
]
for t in a:

21
vona/utils/roomwithver.py Normal file
View File

@@ -0,0 +1,21 @@
import vona.globals as globals
import vona.config as config
import os
versions = [str(i) for i in range(1, 10)]
desired_ver = input("Desired room version:\n\t")
if desired_ver not in versions:
os._exit(1)
try:
while True:
room_id = os.urandom(8).hex()
room_ver = globals.room_version_from_id(room_id)
if room_ver == desired_ver:
print(f"!{room_id}:{config.server_name}")
break
except:
print("")
pass