debug warmup

This commit is contained in:
rafliher
2025-10-25 14:56:34 +07:00
parent 3d21421c49
commit 5afe75907e
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -25,6 +25,7 @@ class Warmup(Challenge):
try: try:
url = f'http://localhost:{self.port}/' url = f'http://localhost:{self.port}/'
r = requests.get(url, timeout=5) r = requests.get(url, timeout=5)
print(r.text)
assert "Simple file viewing application" in r.text.lower(), 'Warmup app not available' assert "Simple file viewing application" in r.text.lower(), 'Warmup app not available'
with open(self.flag_location, 'r') as f: with open(self.flag_location, 'r') as f:
+2 -2
View File
@@ -40,8 +40,8 @@ def main():
print("Using existing .env files") print("Using existing .env files")
os.chdir(os.path.join(cwd, 'services')) os.chdir(os.path.join(cwd, 'services'))
# os.system(f'docker compose -f docker-compose.yml up -d {args.challenges}') os.system(f'docker compose -f docker-compose.yml up -d {args.challenges}')
os.system(f'docker compose -f docker-compose.yml up --build -d {args.challenges}') # os.system(f'docker compose -f docker-compose.yml up --build -d {args.challenges}')
os.chdir(os.path.join(cwd, 'receiver')) os.chdir(os.path.join(cwd, 'receiver'))
os.system('apt-get install -y gcc python3-dev libgmp3-dev libssl-dev libffi-dev build-essential python3-venv') os.system('apt-get install -y gcc python3-dev libgmp3-dev libssl-dev libffi-dev build-essential python3-venv')