Open n0sandb0x opened 1 year ago
There is an example for this in wiki
python shadowclone.py -i <WEB DOMAINS FILE> -c "nuclei -duc -l {INPUT} -t /nuclei-templates/technologies/tech-detect.yaml -config-directory /tmp/"
Another pro tip: don't run all templates -t $HOME/nucle,i-templates/
. It will never work with tis tool.
Hey thanks for your reply I tried just like you mentioned and I ran the following command
python3 shadowclone.py -i ~/bbdata/alive.txt -c "/go/bin/nuclei -l {INPUT} -t /nuclei-templates/technologies/tech-detect.yaml -config-directory /tmp/"
Tried with or without / before nuclei-templates but no luck :/ .
When I check the execution logs I'm getting this error
[INF] nuclei-templates are not installed, installing...
[INF] nuclei-templates are not installed, installing...
[ERR] Could not find template '/nuclei-templates/technologies/tech-detect.yaml': could not find file: stat /nuclei-templates/technologies/tech-detect.yaml: no such file or directory
[INF] Current nuclei version: v2.9.2 (latest)
[INF] Current nuclei-templates version: (outdated)
[INF] Targets loaded for current scan: 705
[INF] No results found. Better luck next time!
[FTL] Could not run nuclei: no valid templates were found
Error in running the command:/go/bin/nuclei -l /tmp/infile -t /nuclei-templates/technologies/tech-detect.yaml -config-directory /tmp/
----------------------------------------------------------
2023-05-02 02:24:33,036 [INFO] jobrunner.py:239 -- Success function execution
2023-05-02 02:24:33,046 [INFO] jobrunner.py:311 -- Process finished
The error is weired because it's say that nuclei templates are not installed but I believe we did install them because it was there in the docker file.
It seems ProjectDiscovery changed the directory structure for nuclei-templates repo recently. Use the correct path and it should work after that
Yes I saw the repo looks like they changed it on the Github. So I tried it locally and noticed that it's still the same directory structure nothing changed. Any suggestion how can I guess the correct path for the templates?.
Also you mentioned that you can't run all the templates any reason why?
Thanks
try this
python3 shadowclone.py -i ~/bbdata/alive.txt -c "/go/bin/nuclei -l {INPUT} -t /nuclei-templates/http/technologies/tech-detect.yaml -config-directory /tmp/"
Also you mentioned that you can't run all the templates any reason why?
Running all templates even on a single host will definitely take more than 15 minutes. Running it on a bunch of hosts will just kill your lambdas and cost you money.
hey @fyoorer,
If I would want to run nuclei templates anyway because I care about the speed I scan, what do you think I should adjust the memory so I don't run into this error?
2023-10-12 23:25:39,256 [INFO] executors.py:612 -- ExecutorID 44b0ed-0 - Cleaning temporary data
2023-10-12 23:25:39,258 [ERROR] Could not execute the runtime.
Function exceeded maximum memory and was killed
anyone who ran nuclei using this tool? I'm getting the following error.
I am using the following commands
But still getting the same error can anyone tell if there is anything wrong I'm doing here?