vulnapps/apps/vampi/app.py
Simon Vieille ded6a4f7ab
init
2026-02-11 15:34:31 +01:00

17 lines
536 B
Python

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)