Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Show comment
Hide comment
@WardsParadox

WardsParadox Aug 6, 2018

No longer functions on 10.14

WardsParadox commented Aug 6, 2018

No longer functions on 10.14

@davidacland

This comment has been minimized.

Show comment
Hide comment
@davidacland

davidacland Oct 1, 2018

Works for me in 10.14 :)

davidacland commented Oct 1, 2018

Works for me in 10.14 :)

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