Project 05 , Security & systems
The Forest — Mono Injection
A C# Mono-injection hack for the Unity game The Forest. I built it to learn game hacking, then made it the codebase for a beginner curriculum I created and taught.
TL;DR
I built this hack for the game The Forest to learn game hacking: changing how a game behaves while it runs. It adds a menu and an info overlay, and I later used it to teach a beginner course to students aged 18 to 20.
Key points
- Reverse-engineered the game by dumping its objects with ILSpy, and discovered basic network vulnerabilities.
- Loaded my own C# code into the running Unity game through Mono injection.
- Designed a dynamic, automated menu system that makes new additions easy and gives beginners a great learning environment.
- Built an in-game ESP overlay with bone, joint, animal and world views and an adjustable draw distance.
Problem
I wanted to learn the basics of game hacking, and The Forest, a Unity Engine game, became my test bed. It turned into one of my first sizeable independent programming projects.
Approach
Reverse engineering came first: dumping the game’s objects with ILSpy and discovering basic network vulnerabilities. From there I used Mono injection to load my own C# into the running game, using efficient data structures and iterating on the UX design.
What I built
- Injection. C# code loaded into the live game through Mono injection.
- Menu system. A dynamic, automated menu system — spawn menu and main menu, each with tabs — designed so new features are easy to add.
- ESP overlay. Bone, joint, animal and world views with an adjustable draw distance.
- Player and spawn tools. Controls exposed through the menu, from spawning to movement settings like fly mode, speed and jump.
Outcome & lessons
After falling in love with the process, I independently created a curriculum around this codebase, which I had designed specifically for beginners, and taught students aged 18–20 the fundamentals of game hacking in Unity Engine games. The dynamic, automated menu system made it a great learning environment. There are many avenues for improvement, but I’m proud of the project’s functionality and creativity.
Figures 03