This file contains 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
#!/usr/bin/python | |
from flask import Flask | |
from flask import request, Response, render_template, send_from_directory, send_file, session | |
import os | |
import tarfile, io | |
import json | |
import random | |
from string import digits, ascii_letters | |
app = Flask(__name__) |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
const char nothing_here[18] = "\x00/bin/true/bin/sh"; | |
const _Bool true = 1; | |
int (*_printf)(const char*, ...) = &scanf; | |
int (*_memset)(FILE*, char*, int, size_t) = &setvbuf; | |
int (*_scanf)(const char*) = &puts; | |
int (*_strlen)(const char*) = &system; |
This file contains 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
MYSQL_ROOT_PASSWORD=CHANGE_ME_PLS | |
MYSQL_PASSWORD=CHANGE_ME_PLS | |
MYSQL_USER=domjudge | |
MYSQL_DATABASE=domjudge | |
MYSQL_HOST=db | |
CONTAINER_TIMEZONE=Asia/Jakarta | |
JUDGEDAEMON_PASSWORD_FILE=/judgehost_password |
This file contains 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
#!/usr/bin/env python3 | |
import os | |
from functools import wraps | |
from hashlib import sha256 | |
from typing import Dict, Optional | |
from uuid import uuid4 as uuid | |
from bottle import get, post, request, response, run |
OlderNewer