-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Adding support for code templates #2930
Conversation
I was thinking it would be better if we only expose
I think we will face more problems with |
Also we already have logic about Note: |
I just want to mention that including support for specific 3rd party tools is a great idea when they get specific implementations. But using code directly inside a YAML file in my opinion opens up so many risks that's just far from it's indented use, of both YAML-format and nuclei. If someone really wants to do something like this I would recommend just creating a bash script and supporting running bash scripts with some parameters instead. |
Notes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Adding default algorithm to sign (rsa)
- Adding docs to nuclei-docs for code protocol and template sign option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mzack9999 Merge conflict ^
* Basic headless fuzzing * Remove debug statements * Add integration tests * Update template * Fix recognize payload value in matcher * Update tempalte * use req.SetURL() --------- Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
* add headless header and status matchers * rename headers as header * add integration test for header+status * fix typo
Proposed changes
This PR adds support for code templates. Uses
stdin
andstdout
for in/out operation within the script context. The engine accepts two options:engine
: any interpreter installed on the target machine (py, bash, powershell)source
: code snippet or existing source fileNotes:
cloud
is enabledChecklist
Example