diff --git a/3.0. VulnerabilityScanner b/3.0. VulnerabilityScanner index bc1cc8c..32e9f9f 100644 --- a/3.0. VulnerabilityScanner +++ b/3.0. VulnerabilityScanner @@ -82,39 +82,39 @@ DELAY 500 STRING } DELAY 500 ENTER -DELAY 500 +DELAY 1000 STRING function Check-CVE { -DELAY 500 +DELAY 1000 ENTER -DELAY 500 +DELAY 1000 STRING param ( -DELAY 500 +DELAY 1000 ENTER -DELAY 500 +DELAY 1000 STRING [string]$productName, -DELAY 500 +DELAY 1000 ENTER -DELAY 500 +DELAY 1000 STRING [string]$version -DELAY 500 +DELAY 1000 ENTER -DELAY 500 +DELAY 1000 STRING ) -DELAY 500 +DELAY 1000 ENTER -DELAY 500 +DELAY 1000 STRING $uri = "https://services.nvd.nist.gov/rest/json/cves/1.0?keyword=$productName+$version" -DELAY 500 +DELAY 1000 ENTER -DELAY 500 +DELAY 1000 STRING Start-Sleep -Seconds 5 DELAY 500 ENTER DELAY 500 STRING $response = Invoke-RestMethod -Uri $uri -Method Get -DELAY 500 +DELAY 1000 ENTER -DELAY 500 +DELAY 1000 STRING if ($response.totalResults -gt 0) { DELAY 500 ENTER