Created
August 2, 2019 20:08
-
-
Save 0xdade/2fb8e007eef24fbf25418d1326555144 to your computer and use it in GitHub Desktop.
Simple SSRF example server
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 flask import Flask, request, Response | |
import requests | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
url = requests.args.get("url") | |
r = requests.get(url) | |
return Response(r) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment