Mac Cocoa |
Author |
Message |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Wed Apr 20, 2022 3:48 pm Post subject: Drivers & Kernel Extensions |
|
|
sudonull.com - The basics of working with IOKit. Subtleties of driver programming
"IOKit was previously written in Objective-C, like the Cocoa framework, and
was called the Driver Kit. However, to simplify the development of drivers by
3 persons, the Driver Kit was rewritten in C ++. However, according to one
of the main developers of IOKit, Godfrey van der Linden, this decision was
erroneous. However, in IOKit, you can see with an unaided glance the legacy
of Objective-C, for example, link counting and retain / release mechanisms,
class naming (OS and IO prefixes), class method naming, and much more." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Wed Apr 20, 2022 3:49 pm Post subject: |
|
|
sciencedirect.com - Kernel Extension
Excerpts from:
- Host Integrity Monitoring Using Osiris and Samhain, 2005
- Enrico Perla, Massimiliano Oldani, in A Guide to Kernel Exploitation, 2011
- Jaron Bradley, in OS X Incident Response, 2016
- Chris Hurley, ... Brian Baker, in WarDriving and Wireless Penetration Testing, 2007 |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Wed Apr 20, 2022 4:03 pm Post subject: |
|
|
insanelymac - Trying to copy 2 kexts from a USB to my Extensions folder
Code: | sudo cp -R /Volumes/Untitled/AppleACPIPS2Nub.kext /Volumes/MacBookPro/System/Library/Extensions/ then
sudo touch /Volumes/MacBookPro/System/Library/Extensions to have it rebuild the cache, you need sudo to copy the file as root may as well do
sudo chown -R root:wheel /Volumes/MacBookPro/System/Library/Extensions/AppleACPIPS2Nub.kext
sudo chmod -R 0755 /Volumes/MacBookPro/System/Library/Extensions/AppleACPIPS2Nub.kext before the touch command to correct permissions as well |
Looks like Xcode will make it 0755 already!?
Last edited by Ike on Wed Apr 20, 2022 5:59 pm; edited 1 time in total |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Wed Apr 20, 2022 4:08 pm Post subject: |
|
|
git - joevt/KextUtil.sh
checkkext, unloadkext, installkext... |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Fri Apr 22, 2022 10:14 am Post subject: |
|
|
A Mutable Log - Access USB device on Mac OS X using I/O Kit
"This post shows how you can access a USB device from user space on Mac
OS X. I used Xcode 4.3.2 on Mac OS X Lion (10.7.3) for testing the code.
Apple provides the USB Device Interface Guide that shows how USB devices
can be accessed from user space. The book OS X and iOS Kernel Programming
is also very helpful, see Chapter 15 - User-Space USB Drivers." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Nov 17, 2024 9:04 pm Post subject: |
|
|
git - BlackHole: Audio Loopback Driver
"BlackHole is a modern macOS virtual audio loopback driver that allows
applications to pass audio to other applications with zero additional latency."
Installer & Uninstaller scripts |
|
Back to top |
|
|
|