diff --git a/README.md b/README.md index a4442e7..4c7d3e2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ +Prerequisites + +Python >= 3.5 + INSTALL pip install -r requirements.txt RUN -gunicorn --workers=2 vulnapp +python vulnapp diff --git a/requirements.txt b/requirements.txt index 90cd3f6..4695e76 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,3 @@ web.py==0.40 +mysql-connector==2.2.9 + diff --git a/static/sql/init.sql b/static/sql/init.sql new file mode 100644 index 0000000..8e5cbca --- /dev/null +++ b/static/sql/init.sql @@ -0,0 +1,9 @@ + +create database db; + +CREATE TABLE `db`.`users` ( + `userid` INT NOT NULL, + `username` VARCHAR(45) NULL, + `password` VARCHAR(45) NULL, + PRIMARY KEY (`userid`)); + diff --git a/templates/index.html b/templates/index.html index a6963d9..ef3b223 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,4 @@ -$def with (name) +$def with (friends)
-
- $if name:
- I just wanted to say hello to $name.
- $else: -Hello, world!
-