Skip to content

add file check before reading provider config #229

@tarunKoyalwar

Description

@tarunKoyalwar

uncover version:

main | dev

Current Behavior:

Expected Behavior:

no error

Steps to Reproduce

  1. Temporarily move config folder to different location
mv ~/.config/uncover ~/.config/uncoverold
  1. Run Nuclei it will show unmarshal error
$ nuclei
[ERR] failed to load provider keys got yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `/Users/...` into sources.Provider

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v2.9.5

		projectdiscovery.io

[WRN] Found 3 templates loaded with deprecated protocol syntax, update before v2.9.5 for continued support.
[INF] Current nuclei version: v2.9.5 (latest)
[INF] Current nuclei-templates version: v9.5.0 (latest)
[INF] New templates added in latest release: 62
[INF] Templates loaded for current scan: 5961
^C[INF] CTRL+C pressed: Exiting

^ this happens because we try to unmarshal string

Anything else:

Metadata

Metadata

Assignees

Labels

Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions