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

use configured /etc/hosts #31

Closed
aminvakil opened this issue Feb 18, 2022 · 2 comments
Closed

use configured /etc/hosts #31

aminvakil opened this issue Feb 18, 2022 · 2 comments

Comments

@aminvakil
Copy link
Contributor

I want to see the difference of a website which is behind cloudflare, but can be reached directly too.

I've already tried changing /etc/hosts like this:

  sudo sh -c 'echo "1.1.1.1 example.com" >> /etc/hosts'
  sudo sh -c 'echo "1.1.1.1 www.example.com" >> /etc/hosts'

and verified it's working in next steps (which use run) using curl -ILv example.com, but I think nuclei-action does not respect changed /etc/hosts.

I'm not even sure if something can be done to let this GHA action use /etc/hosts from previous step or another "input" should be added.

@ehsandeep
Copy link
Member

@aminvakil you can try using -system-resolvers flag

@aminvakil
Copy link
Contributor Author

@aminvakil you can try using -system-resolvers flag

Brilliant! Thanks for your fast response!

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

No branches or pull requests

2 participants