Merge pull request #8 from derpadoo/example.py-fix

Fixed curl examples for ssrf2/ssrf3
pull/18/head
Swissky 2019-01-31 08:15:36 +01:00 committed by GitHub
commit 5d46552c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ def ssrf():
content = command("curl {}".format(data.get('url')))
return content
# curl -i -H "Content-Type: application/json" -X POST -d '{"url": "http://example.com"}' http://localhost:5000/ssrf
# curl -i -H "Content-Type: application/json" -X POST -d '{"url": "http://example.com"}' http://localhost:5000/ssrf2
@app.route("/ssrf2", methods=['POST'])
def ssrf2():
data = request.json
@ -28,7 +28,7 @@ def ssrf2():
content = command("curl {}".format(data.get('url')))
return content
# curl -v "http://127.0.0.1:5000/ssrf3?url=ssrf"
# curl -v "http://127.0.0.1:5000/ssrf3?url=http://example.com"
@app.route("/ssrf3", methods=['GET'])
def ssrf3():
data = request.values