Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bhzunami on github.
  • I am mauchle (https://keybase.io/mauchle) on keybase.
  • I have a public key ASCHTj9YDv-6JgPW73WRYtWt8SNSpycCftrbUY4Hn7SpLgo

To claim this, I am signing this object:

@bhzunami
bhzunami / electionHandler.py
Last active March 30, 2017 18:54
Election Problem
#!/usr/bin/env python3
from pyscipopt import Model, Conshdlr, SCIP_RESULT
import pdb
import logging
EPS = 1.e-6
class ElectionHdlr(Conshdlr):
from flask import Flask, request, redirect, url_for
app = Flask(__name__)
# Vulnerable urls
@app.route('/open_redirect', methods=['GET'])
def open_redirect():
# Get the url param from url
url = request.args.get('url')
# Redirect