#!/usr/bin/env python3
#
# Polymero
#

# Imports
from Crypto.Cipher import AES
import os, time, random

# Local imports
with open('flag.txt', 'rb') as f:
	FLAG = f.read()
	f.close()


def leak(drip):
	rinds = sorted(random.sample(range(len(drip)+1), 16))

	for i in range(len(rinds)):
		ind  = rinds[i] + i*len(b'*drip*')
		drip = drip[:ind] + b'*drip*' + drip[ind:]

	aes = AES.new(key=server_key, mode=AES.MODE_CTR, nonce=b'NEEDaPLUMBER')
	return aes.encrypt(drip).hex()


server_key = os.urandom(16)

while True:

	print(leak(FLAG))

	time.sleep(1)
871f9f264f7ef0dd0c7019a3eb3b408ee977f6f5
<mask token>


def leak(drip):
    rinds = sorted(random.sample(range(len(drip) + 1), 16))
    for i in range(len(rinds)):
        ind = rinds[i] + i * len(b'*drip*')
        drip = drip[:ind] + b'*drip*' + drip[ind:]
    aes = AES.new(key=server_key, mode=AES.MODE_CTR, nonce=b'NEEDaPLUMBER')
    return aes.encrypt(drip).hex()


<mask token>

<mask token>
with open('flag.txt', 'rb') as f:
    FLAG = f.read()
    f.close()


def leak(drip):
    rinds = sorted(random.sample(range(len(drip) + 1), 16))
    for i in range(len(rinds)):
        ind = rinds[i] + i * len(b'*drip*')
        drip = drip[:ind] + b'*drip*' + drip[ind:]
    aes = AES.new(key=server_key, mode=AES.MODE_CTR, nonce=b'NEEDaPLUMBER')
    return aes.encrypt(drip).hex()


<mask token>
while True:
    print(leak(FLAG))
    time.sleep(1)

<mask token>
with open('flag.txt', 'rb') as f:
    FLAG = f.read()
    f.close()


def leak(drip):
    rinds = sorted(random.sample(range(len(drip) + 1), 16))
    for i in range(len(rinds)):
        ind = rinds[i] + i * len(b'*drip*')
        drip = drip[:ind] + b'*drip*' + drip[ind:]
    aes = AES.new(key=server_key, mode=AES.MODE_CTR, nonce=b'NEEDaPLUMBER')
    return aes.encrypt(drip).hex()


server_key = os.urandom(16)
while True:
    print(leak(FLAG))
    time.sleep(1)

from Crypto.Cipher import AES
import os, time, random
with open('flag.txt', 'rb') as f:
    FLAG = f.read()
    f.close()


def leak(drip):
    rinds = sorted(random.sample(range(len(drip) + 1), 16))
    for i in range(len(rinds)):
        ind = rinds[i] + i * len(b'*drip*')
        drip = drip[:ind] + b'*drip*' + drip[ind:]
    aes = AES.new(key=server_key, mode=AES.MODE_CTR, nonce=b'NEEDaPLUMBER')
    return aes.encrypt(drip).hex()


server_key = os.urandom(16)
while True:
    print(leak(FLAG))
    time.sleep(1)

#!/usr/bin/env python3
#
# Polymero
#

# Imports
from Crypto.Cipher import AES
import os, time, random

# Local imports
with open('flag.txt', 'rb') as f:
	FLAG = f.read()
	f.close()


def leak(drip):
	rinds = sorted(random.sample(range(len(drip)+1), 16))

	for i in range(len(rinds)):
		ind  = rinds[i] + i*len(b'*drip*')
		drip = drip[:ind] + b'*drip*' + drip[ind:]

	aes = AES.new(key=server_key, mode=AES.MODE_CTR, nonce=b'NEEDaPLUMBER')
	return aes.encrypt(drip).hex()


server_key = os.urandom(16)

while True:

	print(leak(FLAG))

	time.sleep(1)