-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Hackathon] add basic xss template #108
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just style issues.
challenge_templates/xss/src/main.py
Outdated
|
||
@app.route("/") | ||
async def index(): | ||
query = parse_qs(request.query_string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 space indents for this whole file
import secrets | ||
import asyncio | ||
|
||
from urllib.parse import parse_qs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pep8 groupings. Put stdlib in one grouping at the top (even if from...
), then 3rd party, then local libs
pass | ||
|
||
async def start_browser(url): | ||
browser = await launch(**chromium_path(), args=["--no-sandbox"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line stopped working on the ota vps, not sure why as it works locally in docker and on my vps. Changing it to just browser = await launch(args=["--no-sandbox"])
fixed it
Used for a few upcoming challenges, might be useful to have as a template