-
Copy code to clipboard
-
pbpaste | pygmentize -l python -f rtf | pbcopy
-
In Powerpoint: Edit > Paste Special...
-
Paste as: Formatted Text (RTF)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
""" | |
Unfortunately solved 20 minutes after the end of the CTF :( | |
""" | |
import re | |
import sys | |
import string | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import hashlib | |
import requests | |
from datetime import datetime, timedelta | |
api_url = 'http://rfile.2017.teamrois.cn/api/download/{}/{}' | |
def totimestamp(dt, epoch=datetime(1970,1,1)): | |
td = dt - epoch | |
return (td.microseconds + (td.seconds + td.days * 86400) * 10**6) / 10**6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uncompyle6 version 2.9.11 | |
# Python bytecode 3.5 (3350) | |
# Decompiled from: Python 2.7.6 (default, Oct 26 2016, 20:30:19) | |
# [GCC 4.8.4] | |
# Embedded file name: /app/rFileStorage/__init__.py | |
# Compiled at: 2017-04-09 12:19:02 | |
# Size of source mod 2**32: 1891 bytes | |
from flask import Flask, request, send_file, make_response | |
from hashlib import md5 | |
from time import time |