A Theos-based iOS mod menu template using Dear ImGui, KMem, and Titanox.
KMem is a simple lightweight header-only mach memory utility file, also a learning project of mine.
Find the first base:
uintptr_t base = KMEM::scanner::FindFirstBase();Reinterpret cast _dyld_get_image_header(0):
uintptr_t base = KMEM::scanner::ReturnBase();uintptr_t base = KMEM::scanner::GetImageBase("UnityFramework");Only works if FindFirstBase is successful:
uintptr_t address = KMEM::io::GetAddress(0x123);uintptr_t address = KMEM::io::GetAddress("framework", 0x123);if (KMEM::io::IsValidPointer(address)) { }int value = KMEM::io::ReadMem<int>(address);KMEM::io::WriteMem<int>(address, 100);std::string text = KMEM::io::ReadString(address, 64);uintptr_t rawValue = KMEM::io::ReadRaw(address);KMEM::io::WriteRaw<int>(address, 100);uint8_t buffer[32]{};
KMEM::io::ReadBytes(address, buffer, sizeof(buffer));const uint8_t bytes[] = { 0x90, 0x90, 0x90 };
KMEM::io::WriteBytes(address, bytes, sizeof(bytes));Titanox is the hooking framework used by the template.
MemX-Jailed is a separate memory manipulation and VMT hooking util used by Titanox.
Mystic-xorstr is a C++17 header-only library providing compile-time string and integer encryption.
Strings can be encrypted at compile time using MYSTIFY:
auto text = MYSTIFY("Hello World");iOS-Theos-ModMenuTemp-NoJB/
├── docs/
│ ├── architecture.svg
│ └── KTempPreview.png
│
├── ImGui/
│ ├── imconfig.h
│ ├── imgui.cpp
│ ├── imgui.h
│ ├── imgui_draw.cpp
│ ├── imgui_widgets.cpp
│ ├── imgui_tables.cpp
│ ├── imgui_demo.cpp
│ ├── imgui_internal.h
│ ├── imgui_impl_metal.h
│ ├── imgui_impl_metal.mm
│ └── ...
│
├── MenuLoad/
│ ├── Includes.h
│ ├── MenuLoad.h
│ ├── MenuLoad.mm
│ ├── ImGuiDrawView.h
│ ├── ImGuiDrawView.xm
│ ├── TextInput.h
│ └── GUI/
│ ├── UserMenu.h
│ └── UserMenu.mm
│
├── Resources/
│ └── Fonts/
│ └── Font.h
│
├── Source/
│ ├── BasicHacks.h
│ ├── BasicHacks.mm
│ └── Engines/
│
├── utils/
│ ├── Komaru/
│ │ ├── KLog.hpp
│ │ ├── KLog.mm
│ │ └── KMem.h
│ │
│ ├── Math/
│ │ ├── Common/
│ │ ├── Unity/
│ │ └── Unreal/
│ │
│ ├── Wizardry/
│ │ └── mystic.hh
│ │
│ └── libtitanox/
│ ├── MemX/
│ ├── brk_hook/
│ ├── fishhook/
│ ├── mempatch/
│ ├── static-inline-hook/
│ ├── vm_funcs/
│ ├── utils/
│ ├── Makefile
│ └── README.md
│
├── packages/
├── Makefile
├── control
├── ktemp.plist
└── .gitignore
This project makes use of the following open-source projects:
- Dear ImGui - graphical user interface
- KMem - memory utilities
- Titanox - hooking framework and runtime utilities
- MemX-Jailed - memory manipulation and VMT functionality used by Titanox
- Mystic-xorstr - compile-time string and integer encryption
- FishHook - symbol rebinding functionality used by Titanox
All respective projects remain the property of their original authors.
