Update 3.0. VulnerabilityScanner

This commit is contained in:
Mark
2024-05-20 13:07:55 -04:00
committed by GitHub
parent 7e0d3da357
commit e70da4fb0c
+15 -15
View File
@@ -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