Skip to content

Instantly share code, notes, and snippets.

@xanarin
xanarin / dc29_badge_signer.py
Created Aug 6, 2021
DEFCON 29 Badge Signer
View dc29_badge_signer.py
#!/usr/bin/env python3
import argparse
import random
import sys
def gen_key():
random.seed()
key = ""
for idx in range(32):
key += hex(random.randrange(0, 16)).upper()[-1]
@xanarin
xanarin / treeMatcher.go
Last active Sep 16, 2016
An extension on the Equivalent Binary Trees - (https://tour.golang.org/concurrency/8) exercise from the Tour of Go Example on Goroutines - (https://tour.golang.org/concurrency/1).
View treeMatcher.go
package main
import "golang.org/x/tour/tree"
import "fmt"
// Walk walks the tree t sending all values
// from the tree to the channel ch.
func Walk(t *tree.Tree, ch chan int) {
// Recursive Approach
if (t.Left != nil) {