Skip to content

Instantly share code, notes, and snippets.

@HanEmile
HanEmile / gist:9091ba5bc510c70066fc23b967e5b1a6
Created October 11, 2018 20:04
Pseudocode: Calculate all the forces in a galaxy
starsArray = []Stars
starsArray.ImportData("data.csv")
starsArray.CalcAllForces()
starsArray.Draw("out.png")
@HanEmile
HanEmile / hashing.py
Created January 10, 2019 22:14
HHU AlDat Blatt 11 Aufgabe 1 a)
#!/usr/bin/env python3
import itertools
import math
goallist = [8, 31, 44, 55, 3, 47, 64]
combination = []
def quersumme(x):
@HanEmile
HanEmile / keybase.md
Created July 25, 2019 19:23
keybase prove

Keybase proof

I hereby claim:

  • I am hanemile on github.
  • I am hanemile (https://keybase.io/hanemile) on keybase.
  • I have a public key ASAm9UcS-pUA4F-o7P1T1NOdOYqyrFA8X3lAwd5Ra9kmNwo

To claim this, I am signing this object:

README

You should read this. Actually, you should read all READMEs.

@HanEmile
HanEmile / writeup.md
Last active November 15, 2021 19:20
Labortage CTF 2021 writeup pwn license-one (ghidra edition)
@HanEmile
HanEmile / mail.nix
Created January 17, 2023 09:00
minimal simple-nixos-mailserver config
{ config, pkgs, ... }:
let
release = "nixos-21.11";
in {
imports = [
(builtins.fetchTarball {
# Pick a commit from the branch you are interested in
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${release}/nixos-mailserver-${release}.tar.gz";
# And set its hash
sha256 = "1i56llz037x416bw698v8j6arvv622qc0vsycd20lx3yx8n77n44";
@HanEmile
HanEmile / configuration.nix
Created January 17, 2023 09:03
my mail nix configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@HanEmile
HanEmile / main.go
Last active June 10, 2023 17:05
A super simple fuzzer for the easterhegg 2023 workshop
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
"time"
)
@HanEmile
HanEmile / writeup.md
Created June 18, 2023 16:50
writeups for the bsides indor ctf 2023
@HanEmile
HanEmile / heldentat.py
Created June 19, 2023 08:35
indore ctf pwn Lengan
#!/usr/bin/env python3
from pwn import *
context.binary = "./main_fixed"
# rops
rop_mov_r0_r6_t_adr = 0x00010d2c # ; mov r0,r6 / pop {r4, r5, r6, pc}
rop_add_r0_r4_t_adr = 0x0001fd74 # ; add r0, r4 / pop {r4, pc}
rop_pop_lr_t_adr = 0x00045f5a # ; pop.w {r4, lr} / nop.w / pop {r4, pc}