Created
June 30, 2021 20:57
-
-
Save maravedi/63433bcb683b1f7c73c6e39deb22dfeb to your computer and use it in GitHub Desktop.
CVE-2021-1675 osquery Script for Domain Controllers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CASE cnt | |
WHEN 2 THEN "TRUE" | |
ELSE "FALSE" | |
END "Vulnerable" | |
FROM | |
(SELECT name, | |
start_type, | |
COUNT(name) AS cnt | |
FROM services | |
WHERE name = 'NTDS' or (name = 'Spooler' and start_type <> 'DISABLED')) | |
WHERE Cnt = 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment