diff --git a/X. NU/custom/HelloKext/HelloWorldKext.xcodeproj/project.pbxproj b/X. NU/custom/HelloKext/HelloWorldKext.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c3a2d0f --- /dev/null +++ b/X. NU/custom/HelloKext/HelloWorldKext.xcodeproj/project.pbxproj @@ -0,0 +1,151 @@ +// Contents for HelloWorldKext.xcodeproj/project.pbxproj +// Save this as a plain text file +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + /* Begin PBXBuildFile section */ + 8D01CCC80486CAD60068D4B7 /* HelloWorld.c in Sources */ = { + isa = PBXBuildFile; + fileRef = 08FB77B2FE8417CDC02AAC07 /* HelloWorld.c */; + }; + /* End PBXBuildFile section */ + + /* Begin PBXFileReference section */ + 08FB77B2FE8417CDC02AAC07 /* HelloWorld.c */ = { + isa = PBXFileReference; + fileEncoding = 4; + lastKnownFileType = sourcecode.c.c; + path = src/HelloWorld.c; + sourceTree = ""; + }; + 8D01CCD10486CAD60068D4B7 /* Info.plist */ = { + isa = PBXFileReference; + fileEncoding = 4; + lastKnownFileType = text.plist.xml; + path = src/Info.plist; + sourceTree = ""; + }; + 8D01CCD20486CAD60068D4B7 /* HelloWorld.kext */ = { + isa = PBXFileReference; + explicitFileType = wrapper.cfbundle; + includeInIndex = 0; + path = HelloWorld.kext; + sourceTree = BUILT_PRODUCTS_DIR; + }; + /* End PBXFileReference section */ + + /* Begin PBXGroup section */ + 089C166AFE841209C02AAC07 /* HelloWorld */ = { + isa = PBXGroup; + children = ( + 08FB77B2FE8417CDC02AAC07 /* HelloWorld.c */, + 8D01CCD10486CAD60068D4B7 /* Info.plist */, + 19C28FB6FE9D52B211CA2CBB /* Products */, + ); + name = HelloWorld; + sourceTree = ""; + }; + 19C28FB6FE9D52B211CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 8D01CCD20486CAD60068D4B7 /* HelloWorld.kext */, + ); + name = Products; + sourceTree = ""; + }; + /* End PBXGroup section */ + + /* Begin PBXNativeTarget section */ + 8D01CCC60486CAD60068D4B7 /* HelloWorld */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1DEB91D908733DB10010E9CD /* Build configuration list */; + buildPhases = ( + 8D01CCC90486CAD60068D4B7 /* Sources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = HelloWorld; + productInstallPath = "$(HOME)/Library/Bundles"; + productName = HelloWorld; + productReference = 8D01CCD20486CAD60068D4B7 /* HelloWorld.kext */; + productType = "com.apple.product-type.bundle"; + }; + /* End PBXNativeTarget section */ + + /* Begin PBXProject section */ + 089C1669FE841209C02AAC07 /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 1DEB91DD08733DB10010E9CD /* Build configuration list for PBXProject "HelloWorld" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German + ); + mainGroup = 089C166AFE841209C02AAC07 /* HelloWorld */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8D01CCC60486CAD60068D4B7 /* HelloWorld */, + ); + }; + /* End PBXProject section */ + + /* Begin XCBuildConfiguration section */ + 1DEB91DA08733DB10010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + GCC_MODEL_TUNING = G5; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + INFOPLIST_FILE = src/Info.plist; + INSTALL_PATH = "$(HOME)/Library/Bundles"; + PRODUCT_NAME = HelloWorld; + SDKROOT = macosx; + WRAPPER_EXTENSION = kext; + }; + name = Release; + }; + 1DEB91DE08733DB10010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + SDKROOT = macosx; + }; + name = Release; + }; + /* End XCBuildConfiguration section */ + + /* Begin XCConfigurationList section */ + 1DEB91D908733DB10010E9CD /* Build configuration list for PBXNativeTarget "HelloWorld" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91DA08733DB10010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1DEB91DD08733DB10010E9CD /* Build configuration list for PBXProject "HelloWorld" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91DE08733DB10010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + /* End XCConfigurationList section */ + }; + rootObject = 089C1669FE841209C02AAC07 /* Project object */; +} \ No newline at end of file diff --git a/X. NU/custom/HelloKext/src/HelloWorld.c b/X. NU/custom/HelloKext/src/HelloWorld.c new file mode 100644 index 0000000..027c17b --- /dev/null +++ b/X. NU/custom/HelloKext/src/HelloWorld.c @@ -0,0 +1,14 @@ +#include + +kern_return_t HelloWorld_start(kmod_info_t * ki, void *d); +kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d); + +kern_return_t HelloWorld_start(kmod_info_t * ki, void *d) +{ + return KERN_SUCCESS; +} + +kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d) +{ + return KERN_SUCCESS; +} diff --git a/X. NU/custom/HelloKext/src/Info.plist b/X. NU/custom/HelloKext/src/Info.plist new file mode 100644 index 0000000..0ba6e21 --- /dev/null +++ b/X. NU/custom/HelloKext/src/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 23H124 + CFBundleDevelopmentRegion + en + CFBundleExecutable + HelloWorld + CFBundleIdentifier + crimson.HelloWorld + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + HelloWorld + CFBundlePackageType + KEXT + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 24B75 + DTPlatformName + macosx + DTPlatformVersion + 15.1 + DTSDKBuild + 24B75 + DTSDKName + macosx15.1 + DTXcode + 1610 + DTXcodeBuild + 16B40 + LSMinimumSystemVersion + 15.1 + OSBundleLibraries + + com.apple.kpi.libkern + 20.0.0 + + +