language: python cache: pip env: - MOZ_HEADLESS=1 addons: firefox: latest os: - linux python: - 3.6 before_install: - wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz - mkdir geckodriver - tar -xzf geckodriver-v0.24.0-linux64.tar.gz -C geckodriver - export PATH=$PATH:$PWD/geckodriver install: - pip install -r requirements.txt - pip install flake8 before_script: - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics script: - python xsstrike.py -u "https://public-firing-range.appspot.com/reflected/index.html" --crawl - echo "No" > input.txt && python xsstrike.py -u https://public-firing-range.appspot.com/reflected/parameter/body?q=query < input.txt