utctf_2022

UTCTF 2022 | Sunset

#UTCTF_2022 import random import hashlib N = 111 MOD = 10**9+7 def get_secret_key(): key = [] for i in range(1, N): x = random.randrange(1,10) key += [i] * x random.shuffle(key) return key def compute_arr(arr, sk): for x in sk: new_arr = a…

UTCTF 2022 | Forky

#UTCTF_2022 #include <stdlib.h> #include <stdint.h> #include <stdatomic.h> #include <unistd.h> #include <poll.h> #include <fcntl.h> #include <string.h> #include <sys/wait.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sodium.h> #include <err.h> #include <errno.h> #include <sys/random.h>…</sys/random.h></errno.h></err.h></sodium.h></arpa/inet.h></sys/socket.h></sys/wait.h></string.h></fcntl.h></poll.h></unistd.h></stdatomic.h></stdint.h></stdlib.h>

UTCTF 2022 | Scrambled

#UTCTF_2022 #uninterested_challenge_list a[qjj7ahga2gc2jjg=qf/g.7xgm[qgpjo,g2fgog=q87f/tga=7vqm[2f,gpxff.g[o11qfq/gm[7x,[ahga2g1286q/gx1gv.g6q.n7ou/bgnxmgm[qg6q.=gcquqg2fgcq2u/g1jo8q=t3a2g/7f4mg6f7cgc[omg[o11qfq/bgnxmg2m4=g76o.g=2f8qga2g=m…

UTCTF 2022 | Failed Hash Function

#UTCTF_2022 #!/usr/bin/env python3 import sys, os def trailing(x): a = 0 for _ in range(15): if x & 1: break x >>= 1 a += 1 return a def print_hash(s): for x in s: for y in s: print(hex(trailing((k1 ^ x) * (k2 ^ y)))[2:], end='') print() f…