Skip to content

Instantly share code, notes, and snippets.

View meithecatte's full-sized avatar

Maja Kądziołka meithecatte

View GitHub Profile
@meithecatte
meithecatte / Even.hs
Created July 30, 2020 21:49
Checking if a number is even in Haskell
import Data.Semigroup
data Permutation = Permutation [Int] deriving (Eq, Show)
permute :: Permutation -> [a] -> [a]
permute (Permutation p) xs = (xs !!) <$> p
instance Semigroup Permutation where
a <> Permutation b = Permutation $ permute a b
stimes = stimesMonoid
@meithecatte
meithecatte / solve.py
Created November 25, 2018 23:45
Never Ending Crypto Redux solver - from a TUCTF 2018 challenge
from pwn import *
from itertools import cycle
import string
import codecs
import traceback
MORSE = {
'.-': 'A',
'-...': 'B',
'-.-.': 'C',
@meithecatte
meithecatte / oxfoo1m3.md
Created August 29, 2018 00:10
oxfoo1m3 crackme writeup

[oxfoo1m3][crackme] is a relatively simple crackme with elements of anti-debugging, anti-disassembly, and, as the author put it, anti-libbfd.

I created a new Vagrant virtual machine, and after a bit of fiddling with shared folders, ran the binary:

vagrant@debian9:/vagrant/oxfoo1m3$ ./oxfoo1m3
oxfoo1m3 started ;]
3nt4 p455w0rD:
ABCDABCDABCD