Skip to content

Instantly share code, notes, and snippets.

@macmule
Forked from erikng/kextidentifiers.py
Created April 27, 2018 08:04
Show Gist options
  • Save macmule/ceacb06c05e3ad4dec7c7a13ca938a1e to your computer and use it in GitHub Desktop.
Save macmule/ceacb06c05e3ad4dec7c7a13ca938a1e to your computer and use it in GitHub Desktop.
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