Tarun Koyalwar
bf08913cd0
update logic + config management refactor ( #3567 )
...
* adds template manager
* refactor: checkpoint
* centrailized config & template download logic
* refactor removed unused code
* use global template directory
* update related bug fixes
* bug fix create cfg dir if missing
* fix lint error
* bug fix skip writing template dir in callback
* misc update
* remove unused code
* use strings.equalfold for comparison
---------
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-04-19 21:58:48 +05:30
Mzack9999
c182434130
json templates support (load with flags, run & validate ) ( #3424 )
...
* extending template identification logic
* removing test code
* local debug
* json template loading support using flags
* blacklist meta json files
* minor changes
---------
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
2023-03-16 13:33:59 +05:30
Mzack9999
62af038617
Add template sign/verify functionality ( #3029 )
...
* add template sign/verify functionality
* fixing syntax
2023-02-26 03:54:46 +05:30
Notealot
aeb5dbd293
feat: add RawStringSlice / fix: reference url case insensitive ( #3346 )
...
* feat: add RawStringSlice and refactor
* restored old logic + refactor
* restored files
---------
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2023-02-26 01:17:47 +05:30
Sandeep Singh
96646c8f53
cloud templates targets sync ( #2959 )
...
* 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
* Added initial data_source sync to cloud
* Misc
* Add pagination to scan output and scan list (#2858 )
* Add pagination to scan output and scan list
* Use time based parameters instead of page numbers
* Fix linting errors
* Do not check limits at client, check at server
* Remove unused constant
* Misc update
* Removed unnecessary flags
* Misc
* Misc
* Misc endpoint additions
* Added more routes
* Typo fix
* Misc fixes
* Misc
* Misc fixes to cloud target logic + use int for IDs
* Misc
* Misc fixes
* Misc
* Misc fixes
* readme update
* Add JSON output support for list-scan option (#2876 )
* Add JSON output support for list-scan option
* Fix typo in cloud JSON output description
* Following changes
- Update status(finished, running) to be lower-case by default
- Convert status to upper-case in DisplayScanList()
* Update status to be lower-case by default
* Remove additional json flag, instead use existing
* Merge conflict
* Accomodate comment changes and restructure code
Co-authored-by: Jaideep K <jaideep@one2n.in>
* Use integer IDs for scan tasks
* Added get-templates-targets endpoint + JSON + validation
* Added target count list
* misc option / description updates
* Added changes as per code review
* duplicate options + typo updates
* Added tablewriter for tabular data writing by default
* Fixed list scan endpoint
* Review changes
* workflow fix
* Added cloud tags etc based filtering (#3070 )
* Added omitempty for filtering request
* go mod tidy
* misc format update
Co-authored-by: shubhamrasal <shubhamdharmarasal@gmail.com>
Co-authored-by: Ice3man <nizamulrana@gmail.com>
Co-authored-by: Jaideep Khandelwal <jdk2588@gmail.com>
Co-authored-by: Siddharth Shashikar <60960197+shashikarsiddharth@users.noreply.github.com>
Co-authored-by: Jaideep K <jaideep@one2n.in>
2022-12-21 22:48:43 +05:30
Mzack9999
a19385376c
Extending YAML to support include preprocessing ( #1767 )
...
* Add support for include directive
* adding yamlc support
* mod tidy
* removing yamlc
* moving code around
2022-12-14 01:05:14 +05:30
Sajad
0149e94f90
add missing template filters to workflow loader ( #2741 )
2022-10-20 17:14:41 +05:30
Mzack9999
30054d1fb6
Adding advanced template filtering ( #2374 )
...
* Adding advanced template filtering
* fixing bug in slice
* refactoring tests
* adding test cases
* increasing error verbosity
* fixing quoted fields with spaces
* adding more test cases
* fixing merge error
* fixing lint errors
* switching to []string
* updating tag filter tests
* updating functional tests
* fixing functional test cases
* updating syntax
2022-08-25 16:52:08 +05:30
Ice3man
67d5769cd9
Added initial catalog interface implementation ( #2318 )
...
* Added initial catalog interface implementation
* Added OpenFile to Catalog + disk catalog implementation
* Fixed merge issues
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-08-10 11:05:58 -07:00
Sajad
005b92217f
return on parse template error unconditionally ( #2327 )
2022-07-24 14:56:06 +05:30
invist
db727db006
Optionally disable templates syntax strict check ( #2266 )
...
* nuclei::templates|define strict option (default)
* renaming flag and internal variable
* misc flag update
Co-authored-by: c-f <you@example.com>
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-07-13 17:00:11 +05:30
Sajad Parra
c6de2ca406
rename few vars, extract duplicate functions to utils
2022-01-24 16:48:12 +05:30
Sajad Parra
d1303797c0
* Add support to run remote template
...
* Add remote-template-domain config only flag to specify allowed domain list to load remote templates from
2022-01-12 18:33:17 +05:30
Mzack9999
39519c01a6
Adding support for template id based execution ( #1448 )
2022-01-07 17:30:20 +05:30
Mzack9999
3c88afac0c
Fixing payloads path during validation ( #1320 )
...
* Fixing payloads path during validation
* Added GH Action for public template parsing / validation
* tracking payload errors as syntax warnings
* improving path parsing + introducing hard failure for runtime errors on validation
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2021-12-05 19:41:14 +05:30
forgedhallpass
47340f06b0
refactor: uniformly sorted imports
2021-11-25 17:09:20 +02:00
Ice3man543
390ca8b3c6
Merge from dev
2021-11-03 18:58:00 +05:30
Ice3man543
47949c0b52
Use separate type enum for protocol types
2021-11-03 17:18:35 +05:30
Ice3man543
bdb415b0c7
Misc changes as per review
2021-11-03 02:23:48 +05:30
Ice3man543
6541b04f4c
Added new type and exclude-type flag
2021-10-25 23:24:42 +05:30
Ice3man543
ef3397b84d
Mark error for template syntax warning
2021-10-25 17:42:01 +05:30
Alexey Zhuchkov
ff7a5997a2
Return multiple errors in template validation
2021-10-20 23:24:11 +03:00
Alexey Zhuchkov
5d0f6b2622
Improve invalid template id tests
2021-10-20 23:14:04 +03:00
Alexey Zhuchkov
f1cd0a5d28
Update template id regexp
2021-10-20 23:07:24 +03:00
Alexey Zhuchkov
9e0144b6ae
Add template-id validation
2021-10-20 01:31:38 +03:00
forgedhallpass
0cabce518f
Merge branch 'dev' into code_smells
2021-09-02 12:30:43 +03:00
sandeep
605393d1a8
misc CLI UI update
2021-09-01 02:01:55 +05:30
Ice3man543
19770d186f
Changed code as per review comments
2021-08-31 21:39:20 +05:30
Ice3man543
44700e6c60
Show errors when validate flag is passed for syntax
2021-08-31 19:53:53 +05:30
Ice3man543
96adaf5257
Misc
2021-08-31 19:28:20 +05:30
Ice3man543
c3e32f5e15
Added new stats counters + validation fixes
2021-08-31 19:27:26 +05:30
forgedhallpass
f36ed8df64
Removed unused parameter
2021-08-31 13:21:15 +03:00
forgedhallpass
40d88d2304
In-lined error checks, reduced scope of error variables, introduced new error variables instead of re-using them
2021-08-31 12:55:52 +03:00
Ice3man543
78554252ed
Misc changes to workflow parts
2021-08-28 00:27:37 +05:30
Ice3man543
f5ea35d45c
Don't match for metadata on workflow
2021-08-28 00:19:05 +05:30
Ice3man543
08fdc3bdcc
Added cache package + misc changes to loaders
2021-08-28 00:15:28 +05:30
forgedhallpass
36b1c08edc
Optimize template validation
2021-08-27 17:06:06 +03:00
forgedhallpass
6bfd6bd28f
Adjusting the template/workflow loading/filtering logic.
2021-08-19 15:17:25 +03:00
Ice3man543
66af0297c0
Exported ParseTemplate + use it everywhere for parsing
2021-08-19 02:10:36 +05:30
Ice3man543
01b902f119
Cleanup some loader parts + moved workflow loading separate
2021-08-19 01:58:54 +05:30
Ice3man543
297ce0fc83
Changed error message + return template and don't skip
2021-08-18 21:58:20 +05:30
Ice3man543
46347c599d
Added error logging on unknown fields in verbose mode
2021-08-18 21:50:42 +05:30
forgedhallpass
138745a6b1
RES-84 # Improve Nuclei CLI interface (WIP)
...
* Pleasing the linter
2021-08-03 15:39:15 +03:00
forgedhallpass
2f162e859e
RES-84 # Improve Nuclei CLI interface (WIP)
...
* removed the generic isEmpty implementation
2021-08-03 14:51:34 +03:00
forgedhallpass
5d89bb8056
RES-84 # Improve Nuclei CLI interface
...
* fixed issues reported by the linter
2021-07-19 21:04:08 +03:00
forgedhallpass
2635c65ce2
RES-84 # Improve Nuclei CLI interface (WIP)
...
* moved the Severity "enum" back to Nuclei (1 unit test failing)
2021-07-16 17:28:13 +03:00
forgedhallpass
5a495e1e99
RES-84 # Improve Nuclei CLI interface (WIP)
...
* Integration of the previous logic to 2.4.0
* Unit and ITs passing
* refactored the template matching logic
2021-07-15 13:41:41 +03:00