Create redirectory.py
This commit is contained in:
Родитель
16f2d0f980
Коммит
f158b647f2
|
@ -0,0 +1,14 @@
|
|||
from flask import Flask, request, redirect
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/', methods=['GET', 'POST'])
|
||||
def handle_request():
|
||||
print("Raw request:")
|
||||
print(request)
|
||||
print("Headers:")
|
||||
print(request.headers)
|
||||
return redirect("http://127.0.0.1:8000/flag", code=302)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=False, port=5000)
|
Загрузка…
Ссылка в новой задаче