Commit Graph

48 Commits (42a59189f39cf62e275a8057643fdf183fe575a9)

Author SHA1 Message Date
Sandeep Singh abfaa84825
Add CPE field to Classification struct (#3489)
* Add CPE field to Classification struct

* Added EPSSScore to Classification
2023-04-02 13:23:13 +05:30
Mzack9999 d80cbef51d
Merge pull request #3333 from CodFrm/main
fix some json deserialization issues
2023-02-28 09:02:04 +01:00
王一之 27fefe59d3 fix json deserialization issues 2023-02-27 14:29:49 +08:00
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
Tarun Koyalwar 8cdc1338fc adds missing json tags and unit test 2023-02-22 02:24:45 +05:30
王一之 85090b7531 fix some json deserialization issues 2023-02-17 14:21:25 +08:00
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
Sandeep Singh 6ae9eee8d3
README + misc updates (#2961)
* readme update

* version + banner update

* misc option update

* go fmt'ed code

* misc update
2022-12-04 20:51:33 +05:30
Mzack9999 d3a929d4c3 Making matcher name case insensitive 2022-11-25 17:22:50 +01:00
Ice3man 04b47b0309
Added custom json-unmarshaller + misc updates (#2556)
* Added custom json-unmarshaller + misc updates

* Added support for nuclei-cloud based scan execution

* Removed unnecessary files

* Misc

* Changes as per review comments

* misc option update

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-09-19 01:13:59 +05:30
Ice3man 8892250583 Updated goflags to latest + misc 2022-08-27 19:35:17 +05:30
Sandeep Singh a7849ce5e8
Merge pull request #1638 from projectdiscovery/custom-user-agent
add options to specify User-Agent in headless template
2022-03-01 22:49:44 +05:30
Ice3man 6d9c525946 Added unknown as severity value when it is not known 2022-02-28 22:29:04 +05:30
zt2 03612a28b8 feat(template): allow custom type in metadata
In some case you may need to use custom type in `metadata`, like nested array or nested k-v:

```yaml
info:
  metadata:
    components:
      - bootstrap
      - jquery
```

So this commit allowed use any custom type in `metadata`.
2022-02-27 22:28:00 +08:00
Sajad Parra dc46bd263b add options to specify User-Agent in headless template 2022-02-24 12:31:08 +05:30
Mzack9999 0732406a68
Uniform behavior for input CLI flags (#1569)
* Adding file normalized string slice support

* updating goflags
2022-02-09 10:16:17 +05:30
Ice3man543 847e9d7c44 Misc changes to fix testa and lint 2021-11-30 16:26:29 +05:30
Ice3man543 eb7c704d36 Merging from dev 2021-11-30 16:23:39 +05:30
forgedhallpass ec6889931d refactor: linter driven fixes
* x = x + ""  => x += ""
* pre-allocating slice with known size
* added t.Helper() methods in test helpers
* complex if-else conditions replaced by switches
* errors should be checked using error.Is() instead of ==
* function parameter should start with lower case letter
* removed unnecessary type definition
* variable/label naming convention: camelCase instead of snake_case
2021-11-25 17:57:22 +02:00
Ice3man543 caaa5c6594 Automatically generate docs for enum values 2021-11-25 19:34:01 +05:30
forgedhallpass c5a1753548
Merge branch 'dev' into patch-4 2021-09-16 20:35:43 +03:00
forgedhallpass 261279d4c2
Merge pull request #1032 from projectdiscovery/metadata-update
Replaced the "additional-fields" attribute with "metadata" for convenience
2021-09-16 20:29:17 +03:00
Geeknik Labs d95f723639
Update model.go
small updates
2021-09-16 11:30:49 -05:00
sandeep bfb0a994d8 additional-fields to metadata 2021-09-16 21:16:47 +05:30
forgedhallpass c762cc88aa Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-10 15:33:09 +03:00
Ice3man543 ca066367f4 Added new info block fields 2021-09-08 20:42:37 +05:30
forgedhallpass 555e609173 Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-07 17:36:34 +03:00
forgedhallpass 0ce33927c7 Typo fixes. 2021-09-07 17:31:46 +03:00
forgedhallpass 16a54e3b98 YAML Unmarshal error in reporting template #995 2021-09-03 16:48:39 +03:00
sandeep cb5c0cde1d misc docs update 2021-09-01 15:08:46 +05:30
Ice3man543 6a673053c2 Added jsonschema generation for yaml syntax 2021-08-23 23:50:45 +05:30
Ice3man543 e34e784756 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into yamldoc 2021-08-20 15:13:22 +05:30
Ice3man543 232c0d9e0e Fixed some merge problems + misc docgen 2021-08-20 15:11:19 +05:30
forgedhallpass 795b77851e * Changed the "custom-fields" attribute to "additional-fields"
* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
2021-08-19 15:57:37 +03:00
Ice3man 6bea033d53
Merge pull request #955 from projectdiscovery/structure-overhaul
Nuclei Structure + Template Loading Overhaul
2021-08-19 17:53:07 +05:30
forgedhallpass 6bfd6bd28f Adjusting the template/workflow loading/filtering logic. 2021-08-19 15:17:25 +03:00
Ice3man543 01b902f119 Cleanup some loader parts + moved workflow loading separate 2021-08-19 01:58:54 +05:30
forgedhallpass df8d3bec47 Re-introducing custom template info attribute support within the new struct
* Changed the "customAttributes" to "custom-fields"

* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
2021-08-18 20:10:53 +03:00
forgedhallpass e7c74f0c65 Re-introducing custom template info attribute support within the new struct
* #259 - dynamic key-value field support for template information
* #940 - new infos in template
* #834
* RES-84
2021-08-18 19:50:48 +03:00
forgedhallpass 456544d5be RES-84 # Improve Nuclei CLI interface
* Fixed Template Author mapping
2021-08-17 14:05:52 +03:00
forgedhallpass f56ff199d6 RES-84 # Improve Nuclei CLI interface
* fixing JSON output for Template Info + test
2021-08-17 13:46:53 +03:00
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
forgedhallpass 2c7d8befcb RES-84 # Improve Nuclei CLI interface (WIP)
* Rename of Info.Severity -> Info.SeverityHolder, Info.Author -> Info.Authors to reflect the underlying data
* extended the IsEmpty(interface{}) to handle maps
2021-07-13 11:12:03 +03:00
forgedhallpass ed1dc103fe RES-84 # Improve Nuclei CLI interface (WIP)
* Merge from parent

# Conflicts:
#	v2/cmd/nuclei/main.go
#	v2/internal/runner/config.go
#	v2/internal/runner/templates.go
#	v2/internal/runner/update.go
#	v2/pkg/templates/compile.go
#	v2/pkg/templates/compile_test.go
#	v2/pkg/types/types.go
2021-07-12 17:20:01 +03:00