Replies: 2 comments
-
You can though. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Great idea — this is a common pain point for headless scanning in containerized environments and CI/CD pipelines. Current workarounds until your PR is merged:
# Find where nuclei looks for chrome
which google-chrome || which chromium-browser || which chromium
# Create symlink to your preferred binary
sudo ln -sf /path/to/your/chrome /usr/bin/google-chrome
export CHROME_PATH=/opt/chrome/chrome-linux64/chrome
nuclei -u https://example.com -headless -t headless/
export PATH="/path/to/chrome/dir:$PATH"
nuclei -u https://example.com -headless -system-chrome
FROM projectdiscovery/nuclei:latest
COPY --from=chromedp/headless-shell:latest /headless-shell /usr/bin/google-chromeI'd encourage you to open the PR — this is definitely a useful feature. The flag could be something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now it's not possible to specify the path of the chrome browser binary. There is the option
-system-chromebut this can fail on some environment. Also it can be useful to be able to specify a specific chrome binary if multiple version of the browser are present on the OS.I've already made a patch to add the feature on my repo, and I can do a pull request if you find the feature interesting.
I wanted to submit a pull request but the guideline ask to fill an issue first but I'm not allowed to create non-bug issue. So I'm posting it there instead.
Are you interested by this patch, and if yes, should I submit the pull request directly ?
Beta Was this translation helpful? Give feedback.
All reactions