Commit Graph

8 Commits (22c7422eb8536ced0a007f84e80dd81900e573cc)

Author SHA1 Message Date
Shubham Rasal d5a09e733a
Issue 2772 s3 provider support (#2825)
* Add s3 bucket template provider

- Refactor the custom github template code
- add interface for template provider

* Validate if aws creds are passed if bucket flag

- refactor s3 provider struct to take client
- add function which returns the aws s3 client
- update error messages

* Add aws s3 bucket flags documentation in README.md

- Rename the github_test.go to customTemplate_test.go

* go mod update

* Move template provider code to pkg/external/customtemplates dir

* Remove github and aws update variables from flag

* Rename CustomTemplateProvider to Provider

* Update integration and function command in makefile

* Update github test case, accept token

* readme update

* go mod tidy

* Update build-test.yml

* handle empty dir in s3

* Add requested changes

- download/update s3 and github only when `-ut` is passed
- only print the missing env variable for s3
- add the custom templates path in
  ~/.config/nuclei/.template-config.json

* print custom paths only if exists in config file

* misc update

* tag update

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2022-12-02 03:57:00 +05:30
mzack 29a53353bb Disable static compilation for osx + minor optimizations 2022-04-28 14:46:20 +02:00
Ice3man543 393babe3c3 Made iterate of values controllable with iterate-all-values flag in http 2021-11-24 22:40:17 +05:30
Sajad Parra 14ecfedf24 fix Makefile indentation for commands to work 2021-09-15 17:48:33 +05:30
Ice3man543 6a673053c2 Added jsonschema generation for yaml syntax 2021-08-23 23:50:45 +05:30
Ice3man543 232c0d9e0e Fixed some merge problems + misc docgen 2021-08-20 15:11:19 +05:30
Ice3man543 334243d160 Adding documentation generation to nuclei 2021-08-03 22:33:50 +05:30
Ice3man543 12b03f34bb Misc 2021-03-28 22:43:46 +05:30