| skipped 38 lines |
39 | 39 | | if($webtest2.StatusCode -eq 200) |
40 | 40 | | { |
41 | 41 | | write-host "Connected to Server with HTTP 200 Response..." -ForegroundColor Green |
42 | | - | if($webtest2.Headers.Keys -contains "X-FEServer") |
| 42 | + | if($webtest2.RawContent.ToString() -like "*Powershell*") |
43 | 43 | | { |
44 | 44 | | write-host "Poentially vulnerable to CVE-2022-40140 & CVE-2022-41082" -ForegroundColor Red |
45 | 45 | | } |
| skipped 8 lines |