Skip to content

Instantly share code, notes, and snippets.

@HanEmile
HanEmile / heldentat.py
Created August 27, 2023 13:45
The not working, but insanely fun writeup for the "run of the mill" challenge from the dragon sector ctf quals 2022(?).
#! /usr/bin/env nix-shell
#! nix-shell -i python -p python39Packages.termcolor
import sys
from termcolor import colored, cprint
"""
DragonSector CTF 2021 - Run of the Mill
This was an awesome challenge, although this script is what is left over of a
@HanEmile
HanEmile / looooooooooong_stacktrace.txt
Created August 27, 2023 21:05
A long nix stacktrace
error:
… while calling anonymous lambda
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:812:24:
811| let f = attrPath:
812| zipAttrsWith (n: values:
| ^
813| let here = attrPath ++ [n]; in
@HanEmile
HanEmile / spider.js
Created January 24, 2024 10:30
small naive javascript spider for the toolbar
javascript: (function() {
var visited = [];
var recursiveSpider = function(url) {
if (visited.indexOf(url) != -1) {
return;
}
visited.push(url);
console.log(url);
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
@HanEmile
HanEmile / tickets.emile.space.nix
Last active February 10, 2024 15:55
Horrible nix pretix hackery
{ config, pkgs... }:
# Future People: This place is not a place of honor... no highly esteemed deed
# is commemorated here... nothing valued is here...
# Look at the docker volumes section: You'll have to build and fail a few
# times... sorry
let
# environment.etc."pretix.cfg".text = ''
pretix_config = pkgs.writeText "pretix.cfg" ''
@HanEmile
HanEmile / main.rs
Last active March 27, 2024 15:50
base64 implemented in rust
/// base64 can be generated by taking chunks of 3 bytes from the input and
/// mapping them onto 4 output chunks as shown below:
///
/// ```raw
/// | M | a | n | ascii
/// | 77 | 97 | 110 | decimal
/// | 0x4d | 0x61 | 0x6e | hex
/// | | | |
/// | a | b | c | chunk name
/// | | | |