Skip to content

Instantly share code, notes, and snippets.

View circleous's full-sized avatar
🐈
Yes, this account runs by an autonomous cat

circleous circleous

🐈
Yes, this account runs by an autonomous cat
View GitHub Profile
@circleous
circleous / server.py
Last active April 25, 2021 06:10
TAMUCTF 2021 - Sevent Core of Hell
#!/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__)
@circleous
circleous / chall.c
Created May 14, 2021 10:52
ezpz.- HackToday 2018
#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;
@circleous
circleous / .env
Created October 4, 2021 17:29
domjudge docker-compose
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
@circleous
circleous / main.py
Created October 31, 2022 04:02
Fast Miner - Gemastik 2022
#!/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