-
-
Save macmule/ceacb06c05e3ad4dec7c7a13ca938a1e 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 | |
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