@@ -57,7 +57,7 @@ async def register(self, username, password):
5757 }, timeout = self .timeout )
5858 self .logger .info (f"[register] status={ resp .status_code } , body={ resp .text } " )
5959 if resp .status_code != 200 :
60- raise MumbleException (f"Registration failed for username= { username } , status={ resp .status_code } " )
60+ raise MumbleException (f"Registration failed for user , status={ resp .status_code } " )
6161
6262 async def login (self , username , password ):
6363 self .logger .info (f"[login] username={ username } password=***" )
@@ -68,13 +68,13 @@ async def login(self, username, password):
6868 )
6969 self .logger .info (f"[login] status={ resp .status_code } , body={ resp .text } " )
7070 if resp .status_code != 200 :
71- raise MumbleException (f"Login failed for username= { username } , status={ resp .status_code } " )
71+ raise MumbleException (f"Login failed for user , status={ resp .status_code } " )
7272 try :
7373 data = resp .json ()
7474 except Exception as e :
75- raise MumbleException (f"Login did not return JSON for username= { username } , error={ e } " )
75+ raise MumbleException (f"Login did not return JSON for user , error={ e } " )
7676 if "access_token" not in data :
77- raise MumbleException (f"Login did not return access_token for username= { username } " )
77+ raise MumbleException (f"Login did not return access_token for user " )
7878 token = data ["access_token" ]
7979 self .logger .info (f"[login] access_token={ token [:8 ]} ..." )
8080 return token
@@ -370,7 +370,7 @@ async def putflag_note(
370370 return username
371371 except Exception as e :
372372 logger .exception ("Exception in putflag_note" )
373- raise MumbleException (f"Putflag failed for username= { username } : { e } " ) from e
373+ raise MumbleException (f"Putflag failed for user : { e } " ) from e
374374
375375
376376@checker .getflag (0 )
@@ -414,7 +414,7 @@ async def getflag_note(
414414 logger .info ("[getflag] Flag successfully found in user items." )
415415 except Exception as e :
416416 logger .exception ("Exception in getflag_note" )
417- raise MumbleException (f"Getflag failed for user= { username } , item_id={ item_id :4} : { e } " ) from e
417+ raise MumbleException (f"Getflag failed for user, item_id={ item_id :4} : { e } " ) from e
418418
419419
420420@checker .putnoise (0 )
@@ -444,7 +444,7 @@ async def putnoise_note(
444444 logger .info (f"[putnoise] Stored noise data: user={ username } , item={ item ['id' ]} " )
445445 except Exception as e :
446446 logger .exception ("Exception in putnoise_note" )
447- raise MumbleException (f"Putnoise failed for user= { username } , item_id=UNKNOWN: { e } " ) from e
447+ raise MumbleException (f"Putnoise failed for user, item_id=UNKNOWN: { e } " ) from e
448448
449449
450450@checker .getnoise (0 )
@@ -481,7 +481,7 @@ async def getnoise_note(
481481 logger .info ("[getnoise] Noise note found successfully." )
482482 except Exception as e :
483483 logger .exception ("Exception in getnoise_note" )
484- raise MumbleException (f"Getnoise failed for user= { username } , item_id={ item_id } : { e } " ) from e
484+ raise MumbleException (f"Getnoise failed for user, item_id={ item_id } : { e } " ) from e
485485
486486
487487@checker .exploit (0 )
@@ -505,7 +505,7 @@ async def exploit_note(
505505 username = build_collision (flag_user , alphabet = ALPHABET )
506506 if username == flag_user :
507507 logger .info (f"[exploit] Username { username } : no collision" )
508- raise MumbleException (f"[exploit] Username { username } : no collision" )
508+ raise MumbleException (f"[exploit] User : no collision" )
509509 password = "exploitpw"
510510 logger .info (f"Exploit: Versuch mit username={ username } password={ password } " )
511511 try :
@@ -525,7 +525,7 @@ async def exploit_note(
525525 return None
526526 except Exception as ex :
527527 logger .error (f"[exploit] Error while trying collision on username={ username } : { ex } " )
528- raise MumbleException (f"[exploit] Error while trying collision on username= { username } : { ex } " )
528+ raise MumbleException (f"[exploit] Error while trying collision on user : { ex } " )
529529
530530
531531#####################################################
@@ -595,14 +595,14 @@ async def getflag_image(
595595
596596 if not img_path :
597597 logger .exception ("File not found" )
598- raise MumbleException (f"Getflag failed for user= { username } : File Not found" )
598+ raise MumbleException (f"Getflag failed for user: File Not found" )
599599 flag = await con .extract_flag_from_image (img_path )
600600 assert_equals (task .flag , flag , f"Extracted flag does not match! Expected { task .flag } , got { flag } " )
601601 logger .info (f'Successfully got flag 1 { task .flag [:8 ]} ' )
602602
603603 except Exception as e :
604604 logger .exception ("Exception in getflag_image" )
605- raise MumbleException (f"Getflag failed for user= { username } : { e } " ) from e
605+ raise MumbleException (f"Getflag failed for user: { e } " ) from e
606606
607607
608608@checker .putnoise (1 )
@@ -666,14 +666,14 @@ async def getnoise_image(
666666
667667 if not img_path :
668668 logger .exception ("File not found" )
669- raise MumbleException (f"iGetnoise failed for user= { username } : File Not found" )
669+ raise MumbleException (f"iGetnoise failed for user: File Not found" )
670670 flag = await con .extract_flag_from_image (img_path )
671671 assert_equals (noise , flag , f"Extracted noise does not match!" )
672672 logger .info (f'Successfully got noise 1' )
673673
674674 except Exception as e :
675675 logger .exception ("Exception in getnoise_image" )
676- raise MumbleException (f"iGetnoise failed for user= { username } : { e } " ) from e
676+ raise MumbleException (f"iGetnoise failed for user: { e } " ) from e
677677
678678
679679@checker .exploit (1 )
0 commit comments