From e70da4fb0ccb9e595703cc4a7a6e16e3120aa156 Mon Sep 17 00:00:00 2001 From: Mark <148797232+MarkCyber@users.noreply.github.com> Date: Mon, 20 May 2024 13:07:55 -0400 Subject: [PATCH] Update 3.0. VulnerabilityScanner --- 3.0. VulnerabilityScanner | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) 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