-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
126 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,6 @@ jobs: | |
- name: Run tests | ||
run: | | ||
cd tests | ||
python vulunserver.py & | ||
python -m unittest *.py | ||
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""一个可以被SSTI的服务器 | ||
""" | ||
|
||
from flask import Flask | ||
from flask import request | ||
from flask import render_template_string | ||
|
||
app = Flask(__name__) | ||
@app.route('/',methods=['GET', 'POST']) | ||
def test(): | ||
name = request.args.get("name", "world") | ||
template = ''' | ||
<!-- ?name= --> | ||
<div class="center-content error"> | ||
<h1>Hello %s!<br/>Welcome To My Blog</h1> | ||
</div> | ||
''' %(name) | ||
|
||
return render_template_string(template) | ||
|
||
if __name__ == '__main__': | ||
app.run(host="0.0.0.0",port=5000) |