Create a gist now

Instantly share code, notes, and snippets.

Embed
kextidentifiers.py
#!/usr/bin/python
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