[BUG] go engine doesn't work in code template #5759
Labels
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
Is there an existing issue for this?
Current Behavior
Nuclei
code
templates withengine
set togo
don't work.I can change the name of
go
binary to anything - it doesn't matter.code
template still wouldn't work whenengine
would be pointing togo
binary.But, I can create
go
file in the current directory - add it to$PATH
- andcode
template executes successfully.And then, when I run the same

go-code-engine.yaml
it works:I have no problem with running
code
templates withengine
set topython3
orbash
.And yes, I do have
go
binary in$PATH
.Expected Behavior
Per Nuclei Template Docs - https://docs.projectdiscovery.io/templates/protocols/code#engine
Nuclei
code
templates withengine
set togo
should work just as with otherengine
s (likepython3
).Steps To Reproduce
go-code-engine.yaml
:nuclei -duc -code -t ./go-code-engine.yaml -v -debug -validate
Relevant log output
[ERR] Error occurred parsing template /Users/sttlr/sttlr-nuclei-templates/go-code-engine.yaml: could not compile request: [:RUNTIME] [go-code-engine] engines 'go' not available on host <- no valid engine found
[FTL] Could not validate templates: errors occurred during template validation
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: