Advanced Injection Framework (AIF)

Code Generation & Memory Injection for Cheat Engine

Place snippets of code and scripts under here to share with others. Archives and .Lua extensions are allowed


Moderator: Table Moderator

Post Reply
User avatar
MBRKiNG
Table Maker
Table Maker
Novice Hacker
Novice Hacker
Posts: 46
Joined: Tue Jul 26, 2022 9:16 am
Answers: 0
x 136
ScooPaX’s avatar
Loading…

Advanced Injection Framework (AIF)

Post by MBRKiNG »

AIF Pro v2.0 - Advanced Injection Framework
Professional Code Generation & Memory Injection for Cheat Engine


🎯 CORE FEATURES

  • Automatic AOB Generation - Smart signature generation with wildcard placement

  • 4 Professional Templates - Inline Patcher, Dynamic Detour, Pointer Registration, Advanced Hook

  • Multi-Architecture Support - x86, x64, ARM, ARM64 (iOS, Android, Desktop)

  • Smart AOB Scanner - Intelligent pattern generation with uniqueness verification

  • Lua Transpiler - Convert Auto-Assembler to native Lua scripts

  • PE Cave Injector - Standalone file patching without runtime attachment

  • Mono/IL2CPP Support - Unity game integration

  • Register Management - Automatic ABI-compliant register preservation

  • Validation System - Preflight analysis to prevent crashes

  • Customizable Settings - 14+ configuration options for fine-tuning


📦 INCLUDED MODULES

  • AIF_Utilities - Symbol name retrieval and sanitization

  • AIF_Memory - Memory allocation and cleanup management

  • AIF_Decoder - Instruction parsing and analysis (x86/x64/ARM)

  • AIF_Relocator - Stolen instruction relocation with RIP-relative handling

  • AIF_ABI - Application Binary Interface and calling convention management

  • AIF_Scanner - x86/x64 AOB signature generation

  • AIF_ScannerARM - ARM/ARM64 AOB signature generation

  • AIF_Validator - Injection site safety validation

  • AIF_Templates - x86/x64 script generation templates

  • AIF_TemplatesARM - ARM/ARM64 script generation templates

  • AIF_LuaTranspiler - AA to Lua conversion with wildcard protection

  • AIF_FilePatcher - PE header parsing and cave injection

  • AIF_MonoIL2CPP - Mono/.NET method resolution

  • AIF_Tests - Diagnostic test suite


✨ TEMPLATE TYPES

1. Inline AOB Patcher
Simple inline code replacement with minimal memory overhead. Perfect for NOP-ing instructions or replacing opcodes directly.

2. Dynamic Detour Hook
Execute custom assembly code with automatic register preservation, stack alignment, and SIMD support. Best for complex operations.

3. Pointer Registration Detour
Extract and register dynamic pointers from memory operations. Ideal for pointer chasing and data structure navigation.

4. Advanced Detour Hook
Separation of data and code with flag-based activation. Perfect for toggleable features and complex state management.


🏗️ ARCHITECTURE SUPPORT

x86/x64:
• 32-bit and 64-bit Windows support
• 5-byte or 14-byte jump options
• REX prefix detection
• Shadow space allocation
• Stack alignment (16-byte for x64)
• SIMD register handling (XMM0-XMM15)

ARM/ARM64:
• 32-bit and 64-bit ARM support
• Fixed 4-byte instruction size
• STP/LDP instruction pairs
• Platform register awareness
• NEON SIMD support (Q0-Q7)
• 16-byte stack alignment

Mono/IL2CPP:
• Unity game support
• Method symbol resolution
• JIT-compiled method information
• Data collector initialization


⚙️ CONFIGURATION OPTIONS

Scanning:
• SmartAob - Intelligent pattern generation (Default: ON)
• AobMinScan - Minimum bytes (Default: 8)
• AobMaxScan - Maximum bytes (Default: 48)
• AobSpaces - Include spaces in AOB (Default: ON)

Display:
• UseModuleNames - Module+Offset format (Default: ON)
• UseComments - Inline comments (Default: ON)
• IncludeHeader - Author/date header (Default: ON)
• IncludeOriginalCode - Code context (Default: ON)

Behavior:
• PushAll - Push all registers (Default: OFF)
• UseWildcards - Auto-expand wildcards (Default: ON)
• Debug - Console logging (Default: ON)

Context:
• LinesBefore - Context lines before hook (Default: 50)
• LinesAfter - Context lines after hook (Default: 50)

User Info:
• Author - Script author name
• GitHub - Repository link
• Forum - Community link


🔧 ADVANCED FEATURES

Smart AOB Scanner
• Module-based bounds detection
• Memory region fallback scanning
• Wildcard placement for relative instructions
• Uniqueness verification
• RIP-relative address handling
• Configurable scan lengths

Register Analysis
• Automatic register usage detection
• SIMD usage analysis
• Scratch register allocation
• Architecture-specific selection
• Conflict detection and reporting

Instruction Validation
• Return instruction detection
• Relative addressing identification
• Hook size overflow warnings
• Near-allocation requirement analysis
• Detailed preflight reporting

Code Relocation
• Stolen instruction relocation
• RIP-relative recalculation (x64)
• ARM branch offset adjustment
• Relative jump/call handling
• Module+offset formatting

Lua Transpiler
• AA to Lua conversion
• Wildcard expansion (unregistersymbol(), dealloc())
• Time-hash isolation for safety
• Automatic error handling
• Native CE Table compatibility

PE Cave Injector
• PE header parsing
• Section analysis
• Code cave discovery (00 and CC padding)
• RVA calculation
• Standalone patcher generation


📋 USAGE WORKFLOW

Step 1: Attach to target process in Cheat Engine
Step 2: Right-click address in Disassembler
Step 3: Select "[x86/x64]" or "[ARM]" from menu
Step 4: Choose template type
Step 5: Enter symbol name
Step 6: Review generated script
Step 7: Customize if needed
Step 8: Enable script or save to table


🎁 BONUS FEATURES

  • Professional Script Headers - Author, date, GitHub, forum links

  • Context Preservation - Shows original code before/after injection point

  • Wildcard Protection - Auto-expands (*) for safe cleanup

  • Singleton Forms - Settings and PE Injector persist safely

  • Debug Logging - Detailed console output for troubleshooting

  • Test Suite - Built-in diagnostics for validation

  • Configuration Persistence - Settings saved to disk

  • Architecture Guards - Prevents ARM templates on x86 process


💾 INSTALLATION

1. Download AIF Pro v2.0
• ADDON_AIF_v2_0.lua (Main bootstrapper)
• AIF/ folder (All modules)

2. Copy to Autorun
Windows: C:\Program Files\Cheat Engine\autorun\
Or: %APPDATA%\Cheat Engine\autorun\

3. Restart Cheat Engine
Menu Bar → AIF Pro


📚 DOCUMENTATION

  • Official Documentation - Complete reference guide

  • API Reference - Function signatures and usage

  • Template Examples - Real-world usage patterns

  • Troubleshooting Guide - Common issues and solutions

  • Configuration Guide - All options explained


📊 SPECIFICATIONS

Cheat Engine Compatibility: v7.0+ (Recommended v7.4+)
Lua Version: Lua 5.1+ (Optimized for LuaJIT 2.0+)
Operating System: Windows XP SP3+ (All modern versions)
Framework Modules: 14 specialized modules
Configuration Options: 14+ user-configurable settings
Template Types: 4 professional templates per architecture
Supported Architectures: x86, x64, ARM, ARM64
License: MIT (Open Source, Free Commercial Use)


🔗 LINKS

GitHub: https://github.com/MBRKiNG/CE-Tables
Forum: https://opencheattables.com/
Author: MBRKiNG
Version: 2.0 Pro
License: MIT


AIF Pro v2.0 - Elevate Your Cheat Table Creation
Professional-grade injection framework for serious modders


Documentation v1.0 | 2026 | MIT License

Attachments
AddOn_AIF_v2_0_oct.7z
pw: octaif
(34.16 KiB) Downloaded 12 times

User avatar
MBRKiNG
Table Maker
Table Maker
Novice Hacker
Novice Hacker
Posts: 46
Joined: Tue Jul 26, 2022 9:16 am
Answers: 0
x 136
ScooPaX’s avatar
Loading…

Re: Advanced Injection Framework (AIF)

Post by MBRKiNG »

Reserved for future updates


Post Reply