Skip to content
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

Add headless Dockerfile #321

Merged
merged 1 commit into from
Sep 24, 2022
Merged

Add headless Dockerfile #321

merged 1 commit into from
Sep 24, 2022

Conversation

polyedre
Copy link
Contributor

@polyedre polyedre commented Sep 23, 2022

The current docker image at https://hub.docker.com/r/cyberwatch/wapiti cannot use the new --headless flag because firefox and firefox-geckodriver are required.

I tried to update the current Dockerfile to install both firefox and firefox-geckodriver, but the size of the image went from 190MB to 650MB. Instead, this PR adds a Dockerfile dedicated to build a wapiti image that supports headless mode.

This has been tested by running the following command with the build image:

docker run wapiti -u http://angular.testsparker.com/ -m "sql" -v 2 --store-session=sessions/ --store-config=sessions/ --flush-session --color --headless hidden

Closes #320

@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2022

Codecov Report

Merging #321 (81a6d2a) into master (891f5e7) will increase coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #321      +/-   ##
==========================================
+ Coverage   74.83%   74.89%   +0.06%     
==========================================
  Files          94       92       -2     
  Lines        9269     9252      -17     
==========================================
- Hits         6936     6929       -7     
+ Misses       2333     2323      -10     
Impacted Files Coverage Δ
wapitiCore/__init__.py
wapitiCore/net/__init__.py
wapitiCore/main/wapiti.py 58.85% <0.00%> (+0.28%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@devl00p devl00p merged commit 48363ae into wapiti-scanner:master Sep 24, 2022
@polyedre polyedre deleted the headless branch October 25, 2022 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a minimal dockerfile to run the headless crawler
3 participants