Wolf

We should care about nature more, we are losing to hunters!

Files given:

def encrypt(msg, passphrase, niv):
	msg_header = 'EPOCH:' + str(int(time.time()))
	msg = msg_header + "\n" + msg + '=' * (15 - len(msg) % 16)
	aes = AES.new(passphrase, AES.MODE_GCM, nonce = niv)
	enc = aes.encrypt_and_digest(msg.encode('utf-8'))[0]
	return enc

This challenge allows us to encrypt any plaintext with GCM mode and a fixed key and iv and gives us the encrypted flag. This results in a simple XOR cipher that can easily be solved.

Solution at solve.py

Flag: CCTF{____w0lveS____c4n____be____dan9er0uS____t0____p3oplE____!!!!!!}