Skip to content

Instantly share code, notes, and snippets.

@werybigmonk
werybigmonk / check_vulnerabledrivers.ps1
Last active May 31, 2023 10:56 — forked from api0cradle/check_vulnerabledrivers.ps1
A quick script to check for vulnerable drivers. Compares drivers on system with list from loldrivers.io
# Simple script to check drivers in C:\windows\system32\drivers against the loldrivers list
# Author: Oddvar Moe - @oddvar.moe
# Fork changes:
# Drivers can also reside in driverstore\filerepository subdir
# To check them also, $drivers should be with -recurse and get-filehash from real file $drivers file rather than assumed system32 path with filename
$drivers = get-childitem -Path c:\windows\system32\drivers -recurse
$web_client = new-object system.net.webclient
$loldrivers = $web_client.DownloadString(" https://www.loldrivers.io/api/drivers.json") | ConvertFrom-Json