Projects STRLCPY CVE-2022-42864 Commits 5597149b
🤬
  • ■ ■ ■ ■ ■
    .gitignore
    1 1  .DS_Store
     2 +*.xcuserstate
    2 3   
  • ■ ■ ■ ■ ■
    HIDDriverLoader/sploit.m
    skipped 38 lines
    39 39   
    40 40  void open_client(void) {
    41 41   io_service_t service = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceNameMatching("HIDDriver"));
     42 + assert(service != IO_OBJECT_NULL);
    42 43   IOServiceOpen(service, mach_task_self(), 0, &client);
    43 44   IOObjectRelease(service);
    44 45   assert(client != IO_OBJECT_NULL);
    skipped 458 lines
  • ■ ■ ■ ■ ■
    HIDDriverPoC.xcodeproj/project.pbxproj
    skipped 68 lines
    69 69   65010C5E28AEC7D0006AB40E /* HIDDriverKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = HIDDriverKit.framework; path = Platforms/DriverKit.platform/Developer/SDKs/DriverKit21.4.sdk/System/DriverKit/System/Library/Frameworks/HIDDriverKit.framework; sourceTree = DEVELOPER_DIR; };
    70 70   6584010528A5956200CC7B4E /* HIDDriverLoader-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HIDDriverLoader-Bridging-Header.h"; sourceTree = "<group>"; };
    71 71   6584010628A5956300CC7B4E /* sploit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = sploit.h; sourceTree = "<group>"; };
    72  - 6584010728A5956300CC7B4E /* sploit.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = sploit.m; sourceTree = "<group>"; };
     72 + 6584010728A5956300CC7B4E /* sploit.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = sploit.m; sourceTree = "<group>"; usesTabs = 1; };
    73 73   658909BB28B1576200089007 /* HIDFakeDevice.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = HIDFakeDevice.cpp; sourceTree = "<group>"; };
    74 74   658909BD28B1577E00089007 /* HIDFakeDevice.iig */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.iig; path = HIDFakeDevice.iig; sourceTree = "<group>"; };
    75 75   6595D08328875FA6007195C2 /* HIDDriver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HIDDriver.cpp; sourceTree = "<group>"; };
    skipped 317 lines
    393 393   MACOSX_DEPLOYMENT_TARGET = 11.0;
    394 394   MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
    395 395   MTL_FAST_MATH = YES;
    396  - ONLY_ACTIVE_ARCH = YES;
     396 + ONLY_ACTIVE_ARCH = NO;
    397 397   SDKROOT = macosx;
    398 398   SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
    399 399   SWIFT_OPTIMIZATION_LEVEL = "-Onone";
    skipped 58 lines
    458 458   62A4755C2515566600B50752 /* Debug */ = {
    459 459   isa = XCBuildConfiguration;
    460 460   buildSettings = {
     461 + ARCHS = (
     462 + "$(ARCHS_STANDARD)",
     463 + arm64e,
     464 + );
    461 465   ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
    462 466   ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
    463 467   CLANG_ENABLE_MODULES = YES;
    464 468   CODE_SIGN_ENTITLEMENTS = HIDDriverLoader/HIDDriverLoader.entitlements;
    465  - CODE_SIGN_IDENTITY = "-";
     469 + CODE_SIGN_IDENTITY = "Apple Development";
    466 470   CODE_SIGN_STYLE = Automatic;
    467 471   COMBINE_HIDPI_IMAGES = YES;
    468 472   DEVELOPMENT_ASSET_PATHS = "\"HIDDriverLoader/Preview Content\"";
    skipped 18 lines
    487 491   62A4755D2515566600B50752 /* Release */ = {
    488 492   isa = XCBuildConfiguration;
    489 493   buildSettings = {
     494 + ARCHS = (
     495 + "$(ARCHS_STANDARD)",
     496 + arm64e,
     497 + );
    490 498   ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
    491 499   ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
    492 500   CLANG_ENABLE_MODULES = YES;
    493 501   CODE_SIGN_ENTITLEMENTS = HIDDriverLoader/HIDDriverLoader.entitlements;
    494  - CODE_SIGN_IDENTITY = "-";
     502 + CODE_SIGN_IDENTITY = "Apple Development";
    495 503   CODE_SIGN_STYLE = Automatic;
    496 504   COMBINE_HIDPI_IMAGES = YES;
    497 505   DEVELOPMENT_ASSET_PATHS = "\"HIDDriverLoader/Preview Content\"";
    skipped 17 lines
    515 523   62A475722515567200B50752 /* Debug */ = {
    516 524   isa = XCBuildConfiguration;
    517 525   buildSettings = {
     526 + ARCHS = (
     527 + "$(ARCHS_STANDARD)",
     528 + arm64e,
     529 + );
    518 530   CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
    519 531   CODE_SIGN_ENTITLEMENTS = HIDDriver/HIDDriver.entitlements;
    520  - CODE_SIGN_IDENTITY = "-";
     532 + CODE_SIGN_IDENTITY = "Apple Development";
    521 533   CODE_SIGN_STYLE = Automatic;
    522 534   DEVELOPMENT_TEAM = 89AF5674GL;
    523 535   DRIVERKIT_DEPLOYMENT_TARGET = 20.0;
    skipped 18 lines
    542 554   62A475732515567200B50752 /* Release */ = {
    543 555   isa = XCBuildConfiguration;
    544 556   buildSettings = {
     557 + ARCHS = (
     558 + "$(ARCHS_STANDARD)",
     559 + arm64e,
     560 + );
    545 561   CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
    546 562   CODE_SIGN_ENTITLEMENTS = HIDDriver/HIDDriver.entitlements;
    547  - CODE_SIGN_IDENTITY = "-";
     563 + CODE_SIGN_IDENTITY = "Apple Development";
    548 564   CODE_SIGN_STYLE = Automatic;
    549 565   DEVELOPMENT_TEAM = 89AF5674GL;
    550 566   DRIVERKIT_DEPLOYMENT_TARGET = 20.0;
    skipped 53 lines
Please wait...
Page is in error, reload to recover