redpwnctf2021

redpwn CTf 2021 | yahtzee

#redpwnctf2021 #!/usr/local/bin/python from Crypto.Cipher import AES from Crypto.Util.number import long_to_bytes from random import randint from binascii import hexlify with open('flag.txt','r') as f: flag = f.read().strip() with open('ke…

redpwn CTF 2021 | round the bases

#redpwnctf2021 #uninterested_challenge_list は? crypto/round-the-bases AdnanSlef 348 solves / 107 points My flag has been all around the bases. Can you help me get it back? 9mTfc:..Zt9mTZ_:IIcu9mTN[9km7D9mTfc:..Zt9mTZ_:K0o09mTN[9km7D9mTfc…

redpwn CTF 2021 | quaternion regenge

#redpwnctf2021 #uninterested_challenge_list #!/usr/bin/env sage from Crypto.Util.number import getPrime, bytes_to_long import secrets with open('flag.txt','r') as flagfile: flag = flagfile.read().strip() with open('secret.txt','rb') as sec…

redpwn CTF 2021 | Keeper of the Flag

#redpwnctf2021 #!/usr/local/bin/python3 from Crypto.Util.number import * from Crypto.PublicKey import DSA from random import * from hashlib import sha1 rot = randint(2, 2 ** 160 - 1) chop = getPrime(159) def H(s): x = bytes_to_long(sha1(s)…

redpwn CTF 2021 | blecc

#redpwnctf2021 #uninterested_challenge_list p = 17459102747413984477 a = 2 b = 3 G = (15579091807671783999, 4313814846862507155) Q = (8859996588597792495, 2628834476186361781) d = ??? Can you help me find `d`? Decode it as a string and wra…

redpwnCTF 2021 | baby

#redpwnctf2021 #uninterested_challenge_list crypto/baby EvilMuffinHa 827 solves / 102 points I want to do an RSA! は? n: 228430203128652625114739053365339856393 e: 65537 c: 126721104148692049427127809839057445790 RSA

redpwn CTF 2021 | scissor

#redpwnctf2021 #uninterested_challenge_list crypto/scissor BrownieInMotion 1005 solves / 102 points I was given this string and told something about scissors. egddagzp_ftue_rxms_iuft_rxms_radymf import random key = random.randint(0, 25) al…

redpwn CTF 2021 | retrosign

#redpwnctf2021 TokyoWesterns CTF 6th 2020 | circularと全くおなじ問題設定。つまりOng-Schnorr-Shamir Digital Signature Schemeで、おなじsolverが使える #!/usr/local/bin/python from Crypto.Util.number import getPrime, bytes_to_long from Crypto.…

redpwn CTF 2021 | scrambled-elgs

#redpwnctf2021 #!/usr/bin/env sage import secrets import json from Crypto.Util.number import bytes_to_long, long_to_bytes from sage.combinat import permutation n = 25_000 Sn = SymmetricGroup(n) def pad(M): padding = long_to_bytes(secrets.r…