-
-
Notifications
You must be signed in to change notification settings - Fork 520
Expand file tree
/
Copy pathapp.py
More file actions
17 lines (14 loc) · 536 Bytes
/
app.py
File metadata and controls
17 lines (14 loc) · 536 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from config import vuln_app
import os
'''
Decide if you want to server a vulnerable version or not!
DO NOTE: some functionalities will still be vulnerable even if the value is set to 0
as it is a matter of bad practice. Such an example is the debug endpoint.
'''
vuln = int(os.getenv('vulnerable', 1))
# vuln=1
# token alive for how many seconds?
alive = int(os.getenv('tokentimetolive', 60))
# start the app with port 5000 and debug on!
if __name__ == '__main__':
vuln_app.run(host='0.0.0.0', port=5000, debug=True)