checker fixes

This commit is contained in:
rafliher committed 2025-10-25 15:07:24 +07:00
1 parent 0f09642e91
commit 110a54f510
6 files changed
+9 -9

No files matched your search

@@ -15,7 +15,7 @@ from PIL import Image # pillow for tiny PNG generation
from .Challenge import Challenge from .Challenge import Challenge
class Blogspot(Challenge): class Blogpost(Challenge):
""" """
SLA checker for the provided Flask challenge app. SLA checker for the provided Flask challenge app.
@@ -26,8 +26,8 @@ class Blogspot(Challenge):
- Login flow at /login, register at /register - Login flow at /login, register at /register
- Create post at /create, view post at /post/<id>, uploads at /uploads/<file> - Create post at /create, view post at /post/<id>, uploads at /uploads/<file>
""" """
flag_location = 'flags/blogspot.txt' # Host copy (used by your orchestrator) flag_location = 'flags/blogpost.txt' # Host copy (used by your orchestrator)
history_location = 'history/blogspot.txt' history_location = 'history/blogpost.txt'
container_flag_path = '/flag.txt' container_flag_path = '/flag.txt'
container_name = 'blogpost_container' # <-- set to your actual container name container_name = 'blogpost_container' # <-- set to your actual container name
+1 -1
View File
@@ -26,7 +26,7 @@ class CDN(Challenge):
flag_location = 'flags/cdn.txt' # host copy (written by your orchestrator) flag_location = 'flags/cdn.txt' # host copy (written by your orchestrator)
history_location = 'history/cdn.txt' history_location = 'history/cdn.txt'
container_flag_path = '/flag.txt' container_flag_path = '/flag.txt'
container_name = 'chal_app' # adjust if your container name differs container_name = 'cdn_container' # adjust if your container name differs
# Canonical ExifTool markers (NO app fallbacks allowed) # Canonical ExifTool markers (NO app fallbacks allowed)
_exif_must_have = ( _exif_must_have = (
+1 -1
View File
@@ -10,7 +10,7 @@ class Carbeat(Challenge):
history_location = 'history/carbeat.txt' history_location = 'history/carbeat.txt'
_CONTAINER = "carbeat_container" _CONTAINER = "carbeat_container"
_SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "/home/ctf/chall/mybini"] _SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "/home/ctfuser/chall/mybini"]
_HEX_RE = re.compile(r'^[0-9a-fA-F]+$') _HEX_RE = re.compile(r'^[0-9a-fA-F]+$')
def _read_container_flag(self) -> str: def _read_container_flag(self) -> str:
+1 -1
View File
@@ -9,7 +9,7 @@ class Phew(Challenge):
flag_location = 'flags/phew.txt' flag_location = 'flags/phew.txt'
history_location = 'history/phew.txt' history_location = 'history/phew.txt'
_CONTAINER = "pailier_container" # <-- set to your container name _CONTAINER = "phew_container" # <-- set to your container name
_SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "python3", "/usr/local/bin/chall.py"] _SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "python3", "/usr/local/bin/chall.py"]
_HEX_RE = re.compile(r'^[0-9a-fA-F]+$') _HEX_RE = re.compile(r'^[0-9a-fA-F]+$')
+1 -1
View File
@@ -10,7 +10,7 @@ class Sheesh(Challenge):
history_location = 'history/sheesh.txt' history_location = 'history/sheesh.txt'
_CONTAINER = "sheesh_container" _CONTAINER = "sheesh_container"
_SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "python3", "/usr/local/bin/chall.py"] _SERVICE_CMD = ["docker", "exec", "-i", _CONTAINER, "python3", "/home/ctf/chall/src/chall.py"]
_HEX_RE = re.compile(r'^[0-9a-fA-F]+$') _HEX_RE = re.compile(r'^[0-9a-fA-F]+$')
def _read_container_flag(self) -> str: def _read_container_flag(self) -> str:
+2 -2
View File
@@ -3,7 +3,7 @@ from pydantic import BaseModel
from fastapi.security import HTTPBasic, HTTPBasicCredentials from fastapi.security import HTTPBasic, HTTPBasicCredentials
from config import get_settings from config import get_settings
from challenges.Blogspot import Blogspot from receiver.challenges.Blogpost import Blogpost
from challenges.Carbeat import Carbeat from challenges.Carbeat import Carbeat
from challenges.CDN import CDN from challenges.CDN import CDN
from challenges.Phew import Phew from challenges.Phew import Phew
@@ -23,7 +23,7 @@ security = HTTPBasic()
settings = get_settings() settings = get_settings()
challenges = { challenges = {
"blogpost": Blogspot(10000), "blogpost": Blogpost(10000),
"carbeat": Carbeat(11000), "carbeat": Carbeat(11000),
"cdn": CDN(12000), "cdn": CDN(12000),
"phew": Phew(13000), "phew": Phew(13000),