Skip to content

Instantly share code, notes, and snippets.

View NilsIrl's full-sized avatar
🤔
Rewriting git history

Nils NilsIrl

🤔
Rewriting git history
View GitHub Profile
@siraben
siraben / lc.rs
Last active August 20, 2020 17:26
Lambda calculus interpreter in Rust
use std::rc::Rc;
// Environment-passing lambda calculus interpreter in Rust
#[derive(Debug, Clone, PartialEq)]
enum LC {
Var(String),
App(Box<LC>, Box<LC>),
Abs(String, Box<LC>),
Lit(u32),
Incr(Box<LC>),
}
@Yureien
Yureien / hax.py
Created April 26, 2020 19:01
https://blog.sohamsen.me/posts/breaking-math-random/ Breaking Math.random() and Predicting Random Numbers (Housecat RTCP CTF Writeup)
import sys
import math
import struct
import random
import requests
from z3 import *
MASK = 0xFFFFFFFFFFFFFFFF
# xor_shift_128_plus algorithm