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

fix hostfile hybridmap reuse #247

Merged
merged 4 commits into from
Jan 30, 2024
Merged

fix hostfile hybridmap reuse #247

merged 4 commits into from
Jan 30, 2024

Conversation

tarunKoyalwar
Copy link
Member

@tarunKoyalwar tarunKoyalwar commented Jan 25, 2024

Proposed Changes

@tarunKoyalwar tarunKoyalwar self-assigned this Jan 25, 2024
@tarunKoyalwar
Copy link
Member Author

example

  • add entry to /etc/hosts

## testing

127.0.0.1  nuclei.test

$ ./nuclei -u nuclei.test:8000 -id tech-detect -debug

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.1.7

		projectdiscovery.io

[INF] Current nuclei version: v3.1.7 (latest)
[INF] Current nuclei-templates version: v9.7.4 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] New templates added in latest release: 6
[INF] Templates loaded for current scan: 1
[INF] Executing 1 signed templates from projectdiscovery/nuclei-templates
[INF] Targets loaded for current scan: 1
[INF] Running httpx on input host
[INF] Found 1 URL from httpx
[INF] [tech-detect] Dumped HTTP request for http://nuclei.test:8000

GET / HTTP/1.1
Host: nuclei.test:8000
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.3319.102 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

[DBG] [tech-detect] Dumped HTTP response http://nuclei.test:8000

HTTP/1.1 200 OK
Connection: close
Content-Length: 13
Content-Type: text/html; charset=utf-8
Date: Thu, 25 Jan 2024 16:23:25 GMT
Last-Modified: Thu, 25 Jan 2024 16:18:31 GMT

<pre>
</pre>
[INF] No results found. Better luck next time!

Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - left an optional note related to failure behavior

fastdialer/dialer.go Show resolved Hide resolved
@ehsandeep ehsandeep merged commit 934ec44 into main Jan 30, 2024
5 checks passed
@ehsandeep ehsandeep deleted the fix-etc-hosts-issue branch January 30, 2024 13:06
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.

fix nil hostfile data during reuse Use recover() to catch runtime panics
3 participants