Replies: 3 comments
-
instead of adding new option we can achieve this with Append mode
and we can just pass value of $ nuclei -t lfi-template.yaml -V trending-lfi=mylfi.txt but we probably need to take care of errors when file/variable does not exist replace modethis might be conflicting change when running multiple templates but in nuclei we could also allow updating value payload from cli using something like $ nuclei -t lfi-template -V lfi=mypayloads/lfi.txt @mastercho it will also be helpful if you share more about details about usecase . ex: |
Beta Was this translation helpful? Give feedback.
-
I like your idea with -V thats what exactly im looking for. By helper files you mean like:
or something else? |
Beta Was this translation helpful? Give feedback.
-
yeah exactly that, here's an example payloads:
header: helpers/payloads/request-headers.txt
payload: helpers/payloads/command-injection.txt currently in nuclei engine . we only support loading only 1 file in payloads . to implement this feature we need to add multi file payload support and ignore if value of variable is empty (i.e if {{trending-lfi}} is empty don't return error) |
Beta Was this translation helpful? Give feedback.
-
Please describe your feature request:
This might be hard to implement but let me try, we found ourselves in most case scenarios to go in templates and edit payloads for LFI,SQLi and File upload like 2-3 times per day to make it sure its vuln. So would be good if there is a way to pass them by param in nuclei scan, that probably would require big chunk of template to change into some global instead of payload but its just an idea...
Describe the use case of this feature:
Save time from editing templates or having few versions of template
Beta Was this translation helpful? Give feedback.
All reactions