crewCTF 4ES writeup
Given: 4ES.py #!/usr/bin/env python3 from hashlib import sha256 from random import choices from Crypto.Cipher import AES from Crypto.Util.Padding import pad with open('flag.txt', 'rb') as f: ...
Given: 4ES.py #!/usr/bin/env python3 from hashlib import sha256 from random import choices from Crypto.Cipher import AES from Crypto.Util.Padding import pad with open('flag.txt', 'rb') as f: ...
Given: For the challenge we were given and encrypted file and the encryption algorithm from itertools import cycle flag = b"uiuctf{????????????????????????????????????????}" # len(flag) = 48 key ...
Given: #!/usr/local/bin/python import random import os from Crypto.Cipher import AES from Crypto.Util.Padding import pad print("Welcome to my maze that changes everytime") flag = open('./flag.txt',...
Given: source.py from secret import FLAG flag = FLAG[::-1] new_flag = '' for i in range(0, len(flag), 3): new_flag += flag[i+1] new_flag += flag[i+2] new_flag += flag[i] print(new_f...
Given: import math from Crypto.Util.number import getPrime, bytes_to_long from secret import FLAG m = bytes_to_long(FLAG) n = math.prod([getPrime(1024) for _ in range(2**0)]) e = 0x10001 c = pow(...
Description: In a shocking turn of events, a malicious actor managed to gain physical access to our victim’s computer by plugging in a rogue USB device. As a result, all critical data has been pil...
Given File: int message[] = {1, 1, 1, 7, 8, 3, 4, 1, 2, 3, 8, 6, 5, 1, 2, 7, 8, 4, 5, 1, 2, 3, 8, 4, 5, 1, 2, 7, 6, 5, 8, 4, 1, 8, 7, 2, 3, 4, 1, 2, 7, 6, 5, 8, 4, 1, 7, 8, 3, 4, 1, 2, 7, 6, 5, 8,...
Given: Find the quadratic residue and then calculate its square root. Of the two possible roots, submit the smaller one as the flag. p = 29 ints = [14, 6, 11] solution from math import * p = 29 i...