1. MeePwn CTF 2017: Simpler RSA (100)

    We are given two files: one is simple.py, which used to do an encryption, and pubkey.txt, which is the generated public key when encrypting with simple.py. Here's the content of simpe.py.

    from Crypto.Util.number import *
    import random
    # from flag import FLAG
    
    def generate(nbits):
        p …
    read more
  2. MeePwn CTF 2017: |\/|/-\T|-| (100)

    We are given a file, hack.py, which looks as follows.

    from Crypto.Util.number import *
    from hashlib import md5
    
    flag = "XXX"
    assert len(flag) == 4
    pad = bytes_to_long(md5(flag).digest())
    
    hack = 0
    
    for char in flag:
        hack+= pad
        hack*= ord(char)
    
    print hack
    print pad
    print hack % pad
    #hack …
    read more

page 1 / 1