Last active
April 19, 2021 22:51
-
-
Save erikng/c2ca04ce2b897397f4c8c333901e4b8d to your computer and use it in GitHub Desktop.
kextidentifiers.py
This file contains hidden or 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
#!/usr/bin/python | |
# For mojave only | |
# In order for this to work, you will need to go to System Preferences in Mojave -> Security & Privacy -> Privacy -> Full Disk Access and grant Terminal.app permissions | |
import sqlite3 | |
conn = sqlite3.connect('/var/db/SystemPolicyConfiguration/KextPolicy') | |
c = conn.cursor() | |
query = 'SELECT * FROM kext_policy' | |
c.execute(query) | |
kexts = c.fetchall() | |
for kext in kexts: | |
print kext |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works for me in 10.14 :)