From ceebea2b106fa23d307f56910f75805ec1b1d65d Mon Sep 17 00:00:00 2001 From: jakobsn Date: Mon, 30 Sep 2019 12:13:24 +0200 Subject: [PATCH] Hello world --- .gitignore | 1 + README.md | 8 ++++++++ requirements.txt | 1 + vulnapp.py | 11 +++++++++++ 4 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 requirements.txt create mode 100644 vulnapp.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/README.md b/README.md new file mode 100644 index 0000000..a4442e7 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +INSTALL + +pip install -r requirements.txt + +RUN + +gunicorn --workers=2 vulnapp + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..470bf60 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +gunicorn==19.9.0 diff --git a/vulnapp.py b/vulnapp.py new file mode 100644 index 0000000..2d43674 --- /dev/null +++ b/vulnapp.py @@ -0,0 +1,11 @@ +def application(environ, start_response): + """Simplest possible application object""" + data = str.encode('Hello, World!\n') + status = '200 OK' + response_headers = [ + ('Content-type','text/plain'), + ('Content-Length', str(len(data))) + ] + start_response(status, response_headers) + return iter([data]) +