p_en_content=base64.b64decode(p_en_content) en_content = struct.unpack("I" * (len(p_en_content) / 4), p_en_content) print(en_content) plain_text=[] en_len= len(en_content) plain_text+=[crypto(en_content[0])^key] for i in range(1, en_len): plain_text += [crypto(en_content[i])^en_content[i-1] ] decrypted_result = '' for c in plain_text: decrypted_result += struct.pack("I", c)
return decrypted_result
padding = 4 - len(flag) % 4 if padding != 0: flag = flag + "\x00" * padding