From 49c98243c35794c87b3714f78b4295870f002267 Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Sat, 21 Dec 2024 00:13:25 +0100 Subject: [PATCH] feat: remove openapi and graphql discovery from curl scan --- scenario/url.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scenario/url.go b/scenario/url.go index c14453f..ee17d6d 100644 --- a/scenario/url.go +++ b/scenario/url.go @@ -8,8 +8,6 @@ import ( "github.com/cerberauth/vulnapi/internal/request" "github.com/cerberauth/vulnapi/report" "github.com/cerberauth/vulnapi/scan" - discoverablegraphql "github.com/cerberauth/vulnapi/scan/discover/discoverable_graphql" - discoverableopenapi "github.com/cerberauth/vulnapi/scan/discover/discoverable_openapi" ) func NewURLScan(method string, url string, data string, client *request.Client, opts *scan.ScanOptions) (*scan.Scan, error) { @@ -57,9 +55,6 @@ func NewURLScan(method string, url string, data string, client *request.Client, return nil, err } - urlScan.AddOperationScanHandler(scan.NewOperationScanHandler(discoverableopenapi.DiscoverableOpenAPIScanID, discoverableopenapi.ScanHandler)) - urlScan.AddOperationScanHandler(scan.NewOperationScanHandler(discoverablegraphql.DiscoverableGraphQLPathScanID, discoverablegraphql.ScanHandler)) WithAllCommonScans(urlScan) - return urlScan, nil }