You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the second instance initialization onwards, the following log is output during HTTP requests, causing the scan to fail.
[WRN] [test_status_200] Could not execute request for http://127.0.0.1:54961: [:RUNTIME] got err while executing http://127.0.0.1:54961 <- GET http://127.0.0.1:54961 giving up after 2 attempts: Get "http://127.0.0.1:54961": leveldb: closed
Expected Behavior:
When initializing multiple instances of NucleiEngine and executing HTTP scans, the scans are performed without any errors occurring in any of the HTTP requests.
The following log is output, causing the test to fail:
[INF] [test_status_200] Dumped HTTP request for http://127.0.0.1:55719GET / HTTP/1.1Host: 127.0.0.1:55719User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.1983.75Connection: closeAccept-Encoding: gzip[DBG] [test_status_200] Dumped HTTP response http://127.0.0.1:55719HTTP/1.1 200 OKConnection: closeDate: Fri, 10 May 2024 09:43:52 GMTContent-Length: 0[INF] [test_status_200] Dumped HTTP request for http://127.0.0.1:55719GET / HTTP/1.1Host: 127.0.0.1:55719User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36Connection: closeAccept-Encoding: gzip[WRN] [test_status_200] Could not execute request for http://127.0.0.1:55719: [:RUNTIME] got err while executing http://127.0.0.1:55719 <- GET http://127.0.0.1:55719 giving up after 2 attempts: Get "http://127.0.0.1:55719": leveldb: closed[INF] [test_status_200] Dumped HTTP request for http://127.0.0.1:55719GET / HTTP/1.1Host: 127.0.0.1:55719User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.14 (KHTML, like Gecko) Version/9.1.2 Safari/601.6.14Connection: closeAccept-Encoding: gzip[WRN] [test_status_200] Could not execute request for http://127.0.0.1:55719: [:RUNTIME] got err while executing http://127.0.0.1:55719 <- GET http://127.0.0.1:55719 giving up after 2 attempts: Get "http://127.0.0.1:55719": leveldb: closed--- FAIL: TestThreeTimesNewNucleiEngine (4.85s) sample_test.go:59: Error Trace: /Users/teruyahigashi/projects/nuclei/lib/tests/sample_test.go:59 Error: "[0x14000bffb88]" should have 3 item(s), but has 1 Test: TestThreeTimesNewNucleiEngineFAIL
Anything else:
By removing the following from the Close method of NucleiEngine, the issue no longer occurs. However, removing this code will cause a leak.
Nuclei version:
v3.2.6
Current Behavior:
[WRN] [test_status_200] Could not execute request for http://127.0.0.1:54961: [:RUNTIME] got err while executing http://127.0.0.1:54961 <- GET http://127.0.0.1:54961 giving up after 2 attempts: Get "http://127.0.0.1:54961": leveldb: closed
Expected Behavior:
When initializing multiple instances of NucleiEngine and executing HTTP scans, the scans are performed without any errors occurring in any of the HTTP requests.
Steps To Reproduce:
Execute the following test code:
test_status_200.yaml
are as follows:The following log is output, causing the test to fail:
Anything else:
By removing the following from the Close method of NucleiEngine, the issue no longer occurs. However, removing this code will cause a leak.
nuclei/lib/sdk.go
Line 210 in 5957381
The text was updated successfully, but these errors were encountered: