Skip to content

Instantly share code, notes, and snippets.

@erikng
Last active April 19, 2021 22:51
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save erikng/c2ca04ce2b897397f4c8c333901e4b8d to your computer and use it in GitHub Desktop.
Save erikng/c2ca04ce2b897397f4c8c333901e4b8d to your computer and use it in GitHub Desktop.
kextidentifiers.py
#!/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
@WardsParadox
Copy link

No longer functions on 10.14

@davidacland
Copy link

Works for me in 10.14 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment