diff --git a/LICENSE.txt b/LICENSE.txt index bf411a98..0c9c29f3 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2016-2017, vit9696 +Copyright (c) 2016-2018, vit9696 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/Lilu/Headers/kern_patcher.hpp b/Lilu/Headers/kern_patcher.hpp index f75d0f01..9f961152 100644 --- a/Lilu/Headers/kern_patcher.hpp +++ b/Lilu/Headers/kern_patcher.hpp @@ -88,8 +88,8 @@ class KernelPatcher { FSFallback, // perform fs fallback if kextcache failed Reserved, SysFlagNum, - UserFlagNum = sizeof(size_t)-SysFlagNum }; + static constexpr size_t UserFlagNum {sizeof(size_t)-SysFlagNum}; static_assert(UserFlagNum > 0, "There should be at least one user flag"); const char *id {nullptr}; const char **paths {nullptr}; diff --git a/Lilu/Headers/kern_util.hpp b/Lilu/Headers/kern_util.hpp index 205ad616..b33411f5 100644 --- a/Lilu/Headers/kern_util.hpp +++ b/Lilu/Headers/kern_util.hpp @@ -378,7 +378,7 @@ class evector { * * @return element count */ - const size_t size() const { + size_t size() const { return cnt; } @@ -397,7 +397,7 @@ class evector { * * @return element id */ - const size_t last() const { + size_t last() const { return cnt-1; } diff --git a/README.md b/README.md index 6b07bacc..90a032b5 100644 --- a/README.md +++ b/README.md @@ -5,21 +5,10 @@ An open source kernel extension bringing a platform for arbitrary kext, library, #### Features - Generic kext patcher -- Generic process patcher (currently 64-bit only) -- Generic framework/library patcher (currently 64-bit only) +- Generic process patcher (64-bit with basic 32-bit functionality) +- Generic framework/library patcher (64-bit with basic 32-bit functionality) - Provides a unified plugin API -#### Credits -- [Apple](https://www.apple.com) for macOS -- [Brad Conte](https://github.com/B-Con) for [SHA-256 implementation](https://github.com/B-Con/crypto-algorithms) -- [fG!](https://github.com/gdbinit) for [Onyx The Black Cat](https://github.com/gdbinit/onyx-the-black-cat) used as a base of the kernel patcher -- [Nguyen Anh Quynh](https://github.com/aquynh) for [capstone](https://github.com/aquynh/capstone) disassembler module -- [Pike R. Alpha](https://github.com/Piker-Alpha) for [lzvn](https://github.com/Piker-Alpha/LZVN) decompression -- [Ralph Hempel](https://github.com/rhempel) for [umm_malloc](https://github.com/rhempel/umm_malloc) static pool allocator -- Vyacheslav Patkov for [hde64](https://github.com/mumble-voip/minhook/tree/7d80cff1de5c87b404e7ac451757bfa77e5e82da/src/hde) simple disassembler module -- [07151129](https://github.com/07151129) for some code parts and suggestions -- [vit9696](https://github.com/vit9696) for writing the software and maintaining it - #### Installation You should install this kext along with the plugin kexts depending on it. The prebuilt binaries are available on [releases](https://github.com/vit9696/Lilu/releases) page. @@ -46,5 +35,17 @@ By default Lilu itself does not function in single-user (`-s`) mode, unless `-li #### Contribution For the contributors with programming skills the headers are filled with AppleDOC comments. -Earlier code changes could be tracked in [AppleALC](https://github.com/vit9696/AppleALC) project. +Earlier code changes could be tracked in [AppleALC](https://github.com/vit9696/AppleALC) project. Writing and supporting code is fun but it takes time. Please provide most descriptive bugreports or pull requests. + +#### Credits +- [Apple](https://www.apple.com) for macOS +- [Brad Conte](https://github.com/B-Con) for [SHA-256 implementation](https://github.com/B-Con/crypto-algorithms) +- [fG!](https://github.com/gdbinit) for [Onyx The Black Cat](https://github.com/gdbinit/onyx-the-black-cat) used as a base of the kernel patcher +- [Nguyen Anh Quynh](https://github.com/aquynh) for [capstone](https://github.com/aquynh/capstone) disassembler module +- [Pike R. Alpha](https://github.com/Piker-Alpha) for [lzvn](https://github.com/Piker-Alpha/LZVN) decompression +- [Ralph Hempel](https://github.com/rhempel) for [umm_malloc](https://github.com/rhempel/umm_malloc) static pool allocator +- Vyacheslav Patkov for [hde64](https://github.com/mumble-voip/minhook/tree/7d80cff1de5c87b404e7ac451757bfa77e5e82da/src/hde) simple disassembler module +- [07151129](https://github.com/07151129) for some code parts and suggestions +- [vit9696](https://github.com/vit9696) for writing the software and maintaining it +