Skip to content

How to run example nuclei powershell code template? #6070

Answered by moerketh
moerketh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dogancanbakir, I found the signing issue.
When I save the code template yaml with Windows line endings (\r\n) it does not work because Nuclei claims it is not signed.
When I save the code template yaml with Unix line endings (\n) it works as expected.
I noticed because the template signer tests all use \n

The result is:

PS C:\Users\User\nuclei-templates> $Env:SHOW_DSL_ERRORS=$true
PS C:\Users\User\nuclei-templates> $Env:DEBUG=$true
PS C:\Users\User\nuclei-templates> $Env:NUCLEI_LOG_ALL=$true
PS C:\Users\User\nuclei-templates> "inputzzz" | nuclei -t .\example-code.yaml -code -vv -debug

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by moerketh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants