From c6ee04795e211cb30e5a0568fee444cc8f0c20d8 Mon Sep 17 00:00:00 2001 From: SirGankalot <73303677+SirGankalot@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:13:47 +0200 Subject: [PATCH] forgot the cli checks also if noise put and get depend on each other --- checker/src/checker.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/checker/src/checker.py b/checker/src/checker.py index b9c2091..4d716d4 100644 --- a/checker/src/checker.py +++ b/checker/src/checker.py @@ -651,7 +651,11 @@ async def putnoise2( client: AsyncClient, logger: LoggerAdapter ) -> None: - print("this is so the checker does not crash -> needs a putnoise function for each vuln") + something = "something" + try: + await db.set("data_noise", (something)) + except: + raise MumbleException("Could not set group data") @checker.getnoise(2) async def getnoise2( @@ -660,8 +664,10 @@ async def getnoise2( client: AsyncClient, logger: LoggerAdapter, ) -> None: - print("this is so the checker does not crash -> needs a getnoise function for each vuln") - + try: + something = await db.get("data_noise") + except KeyError: + raise MumbleException("Missing database entry from putflag") """ CHECKER FUNCTION Havoc