Skip to content

Instantly share code, notes, and snippets.

View magisterquis's full-sized avatar

Stuart magisterquis

View GitHub Profile
@magisterquis
magisterquis / domainfront.go
Last active January 11, 2023 14:34
Domain fronting in Go
package main
import (
"crypto/tls"
"fmt"
"log"
"net/http"
"net/http/httputil"
)
@magisterquis
magisterquis / dfdemoserver.go
Created October 26, 2019 17:37
HTTP fileserver which allows domain fronting
// Program dfdemoserver is an HTTP fileserver which allows domain fronting,
// meant for demos.
package main
/*
* dfdemoserver.go
* HTTP fileserver which allows domain fronting
* By J. Stuart McMurray
* Created 20190922
* Last Modified 20190922
@magisterquis
magisterquis / core_pattern_escape.sh
Last active October 28, 2024 16:23
Script to escape a container with /proc/sys/kernel/core_pattern reusing the existing shell's stdio
#!/bin/bash
#
# core_pattern_escape.sh
# Simple script to escape a container via /proc/sys/kernel/core_pattern
# By J. Stuart McMurray
# Created 20241026
# Last Modified 20241026
# Drop to /esc (or whatever name) in a container and...
#