INNER CODE UNIT · Python

screenshot

project-sekai-ctf/sekaictf-2025 · misc/sekai-bank-transaction/challenge/poc-tester/poc-web/src/app.py:131

def screenshot(id):
    filename = secure_filename(id)
    if not filename.endswith('.png'):
        filename += '.png'

    file_path = os.path.join(Config.SCREENSHOT_FOLDER, filename)
    
    if not os.path.exists(file_path):
        return 'Screenshot not found!', 404

    return send_file(file_path, mimetype='image/png')

@app.errorhandler(413)
def too_large(e):
    return jsonify({'status': 'error', 'message': 'File too large!'}), 413

@socketio.on('connect')
def handle_connect(auth):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…