2023-12-03から1日間の記事一覧

BSides Ahmedabad CTF 2021 | They Were Eleven

#bsidesahmedabadctf_2021 import os from Crypto.Util.number import getPrime, getRandomRange with open("flag.txt", "rb") as f: m = f.read().strip() m += os.urandom(111 - len(m)) m = int.from_bytes(m, "big") xs = [] for i in range(11): p = ge…

Aero CTF 2021 | boggart

#aeroctf2021 #good_challenges_2021 #!/usr/bin/env python3.8 from gmpy import next_prime from random import getrandbits def bytes_to_long(data): return int.from_bytes(data, 'big') class Wardrobe: @staticmethod def create_boggarts(fear, dang…

ASIS CTF Quals 2019 | Halloween Party

#ASISCTFQuals2019 https://ctftime.org/task/8320 In the halloween party, we want to half a delicious but small cake! flag = ASIS{P.x} #!/usr/bin/env python from fastecdsa.curve import Curve from fastecdsa.point import Point from Crypto.Util…

0CTF/TCTF 2019 Quals|Baby RSA

#0CTF/TCTF2019 https://ctftime.org/task/7893