Skip to content

Commit

Permalink
Add kernel version capturing and add the data for macOS 11.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsj committed Feb 11, 2021
1 parent 05aa73a commit 9495495
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/kernel.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
11 changes: 11 additions & 0 deletions macOSrecon/kernel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""Functions relating to Kernel extensions"""
import os
import platform

def dumpVers(filePath):
"""Gather a list of kexts and write it to a file"""
dirPath = os.path.dirname(filePath)
if not os.path.exists(dirPath):
os.makedirs(dirPath)
with open(filePath, "w") as fp:
fp.write(platform.version())
2 changes: 2 additions & 0 deletions recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import macOSrecon.boardIDs as boardIDs
import macOSrecon.GPU_AMD as GPU_AMD
import macOSrecon.GPU_Intel as GPU_Intel
import macOSrecon.kernel as kernel
import macOSrecon.kexts as kexts
import macOSrecon.USB as usb
import macOSrecon.GraphicsPWM as gfxpwm
Expand All @@ -16,6 +17,7 @@ def main():
boardIDs.dumpX86(OUTPUT + "boardIDs-x86.txt")
boardIDs.dumpACPI_SMC(OUTPUT + "boardIDs-ACPI_SMC.txt")

kernel.dumpVers(OUTPUT + "kernel.txt")
kexts.dumpExts(OUTPUT + "kexts.txt")

GPU_AMD.dumpAMDcards(OUTPUT + "GPU_AMD/")
Expand Down

0 comments on commit 9495495

Please sign in to comment.