Skip to content

Commit

Permalink
small change so its clear the checker function getnoise/putnoise 2 do…
Browse files Browse the repository at this point in the history
…nt do anything bc putflag and getflag do (would only create more load for cpu)
  • Loading branch information
SirGankalot committed Jul 17, 2024
1 parent 31fcf53 commit b30a682
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions checker/src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,18 +542,6 @@ async def getnoise1(
raise MumbleException("Time is not correct or encrypted message is not there")
except:
raise MumbleException("Could not check time")

# try:
# response = await checker_util_func.open_group_window(client, logger, group_id)
# except:
# raise MumbleException("Could not open group window")

# try:
# bool = await checker_util_func.decrypt_aes(client, logger, response, key, nonce, randommessage, response)
# if not bool:
# raise MumbleException("Could not decrypt aes or encrypted message is not there")
# except:
# raise MumbleException("Could not decrypt aes or encrypted message is not there")

"""
CHECKER FUNCTIONS 2
Expand Down Expand Up @@ -663,11 +651,7 @@ async def putnoise2(
client: AsyncClient,
logger: LoggerAdapter
) -> None:
something = "something"
try:
await db.set("data_noise", (something))
except:
raise MumbleException("Could not set group data")
print("this is so the checker does not crash -> needs a putnoise function for each vuln")

@checker.getnoise(2)
async def getnoise2(
Expand All @@ -676,10 +660,7 @@ async def getnoise2(
client: AsyncClient,
logger: LoggerAdapter,
) -> None:
try:
something = await db.get("data_noise")
except KeyError:
raise MumbleException("Missing database entry from putflag")
print("this is so the checker does not crash -> needs a getnoise function for each vuln")


"""
Expand Down

0 comments on commit b30a682

Please sign in to comment.