Fixed panic with non-existent target and no cloud flag typo

dev
Ice3man 2023-01-16 19:06:04 +05:30
parent 08e89cc541
commit 7200e83d47
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ func New(options *types.Options) (*Runner, error) {
hmapInput, err := hybrid.New(&hybrid.Options{
Options: options,
NotFoundCallback: func(target string) bool {
if !options.Cloud {
return false
}
parsed, parseErr := strconv.ParseInt(target, 10, 64)
if parseErr != nil {
if err := runner.cloudClient.ExistsDataSourceItem(nucleicloud.ExistsDataSourceItemRequest{Contents: target, Type: "targets"}); err == nil {