Last active
April 19, 2021 22:51
-
-
Save erikng/c2ca04ce2b897397f4c8c333901e4b8d to your computer and use it in GitHub Desktop.
Revisions
-
erikng revised this gist
Aug 30, 2018 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,8 @@ #!/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() -
erikng revised this gist
Jan 10, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ #!/usr/bin/python import sqlite3 conn = sqlite3.connect('/var/db/SystemPolicyConfiguration/KextPolicy') c = conn.cursor() -
erikng created this gist
Jan 10, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ 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