Skip to content

Commit

Permalink
fix: wrong api for team hash
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Oct 27, 2024
1 parent 77f2618 commit 30b3601
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/en/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ encrypted_game_pk = "...some base64..."
chal_id = 114
team_token = "114:...some base64..."

# you can get this salt from /api/edit/games/{id}/teamhashsalt
# you can get this salt from /api/edit/games/{id}/hashsalt
game_salt = str_sha256(f"GZCTF@{encrypted_game_pk}@PK")

# you should calculate this hash by yourself, and put it in challenge
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ encrypted_game_pk = "...some base64..."
chal_id = 114
team_token = "114:...some base64..."

# you can get this salt from /api/edit/games/{id}/teamhashsalt
# you can get this salt from /api/edit/games/{id}/hashsalt
game_salt = str_sha256(f"GZCTF@{encrypted_game_pk}@PK")

# you should calculate this hash by yourself, and put it in challenge
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ encrypted_game_pk = "...some base64..."
chal_id = 114
team_token = "114:...some base64..."

# you can get this salt from /api/edit/games/{id}/teamhashsalt
# you can get this salt from /api/edit/games/{id}/hashsalt
game_salt = str_sha256(f"GZCTF@{encrypted_game_pk}@PK")

# you should calculate this hash by yourself, and put it in challenge
Expand Down

0 comments on commit 30b3601

Please sign in to comment.