duo-labs / appsec-education Goto Github PK
View Code? Open in Web Editor NEWPresentations, training modules, and other education materials from Duo Security's Application Security team.
License: BSD 3-Clause "New" or "Revised" License
Presentations, training modules, and other education materials from Duo Security's Application Security team.
License: BSD 3-Clause "New" or "Revised" License
Hi, I tried to run first lab - Python AppSec Mass Assignment, but the Flask application in lab does not start. The issue is application code doesn't get copied to the server, and boot script reports:
~/web$ boot
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
App is booting...
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/home/whitehat/boot.sh: line 10: cd: /home/whitehat/web: No such file or directory
Traceback (most recent call last):
File "/home/whitehat/venvs/env/lib/python3.5/site-packages/gunicorn/util.py", line 436, in getcwd
a = os.stat(os.environ['PWD'])
FileNotFoundError: [Errno 2] No such file or directory: '/home/whitehat/web'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/whitehat/venvs/env/bin/gunicorn", line 5, in <module>
from gunicorn.app.wsgiapp import run
File "/home/whitehat/venvs/env/lib/python3.5/site-packages/gunicorn/app/wsgiapp.py", line 9, in <module>
from gunicorn.app.base import Application
File "/home/whitehat/venvs/env/lib/python3.5/site-packages/gunicorn/app/base.py", line 13, in <module>
from gunicorn.config import Config, get_default_config_file
File "/home/whitehat/venvs/env/lib/python3.5/site-packages/gunicorn/config.py", line 1003, in <module>
class Chdir(Setting):
File "/home/whitehat/venvs/env/lib/python3.5/site-packages/gunicorn/config.py", line 1008, in Chdir
default = util.getcwd()
File "/home/whitehat/venvs/env/lib/python3.5/site-packages/gunicorn/util.py", line 443, in getcwd
cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory
Gunicorn failed to start
View /home/whitehat/error.log for details.
Indeed ~/web
dir is empty:
~/web$ ls -la .
total 0
URL of the lab is: https://community.hunter2.com/lesson/duo-mass-assignment?module=duo-security-python-appsec
Advanced application security - slide 2:
First bullet point: lab module contribution
link goes to https://github.com/duo-labs/appsec-education/hunter2-lessons.
Correct link is: https://github.com/duo-labs/appsec-education/tree/master/hunter2-lessons.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.