mirror of https://github.com/daffainfo/nuclei.git
Fixed panic with non-existent target and no cloud flag typo
parent
08e89cc541
commit
7200e83d47
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue