Skip to content

dsasmblr/game-hacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 

Repository files navigation

A curated list of tools, tutorials, and much more for reverse engineering video games!

Introduction

Welcome to the most comprehensive, unique list of game hacking resources on the web! As you traverse this evergrowing behemoth, you may be surprised to learn that many of the tools, libraries, frameworks, etc. featured herein are not made with hacking games in mind whatsoever. Since game hacking is a branch of reverse engineering in its own right, that means we have a wealth of other types of reverse engineering tools at our disposal which we can repurpose for game hacking.

Beyond the tools, there is a wealth of knowledge to be gleaned from a cornucopia of tutorials, presentations, books, and much more. I'll constantly be updating this list, so be sure to Watch/Star it! If you'd like to share a resource that isn't yet on the list, feel free to submit it for consideration via creating an issue or pull request for this repository, or email it to me.

Finally, if hacking online games is a topic of interest for you, I'm also maintaining an extensive curated repository for that subject alone: The Ultimate Online Game Hacking Resource. You may note a negligible amount of overlap between these two repositories, but by and large, they are complementary to one another. And now, on with the game-hacking goodness!

Game Hacking Tools (Disassemblers, Debuggers, Hex Editors, Unpackers, and More)

Tool Type Tool/Link Description
All-In-One Cheat Engine [Open Source] A powerful, all-in-one game hacking tool with an extensive feature set. Varying versions for Mac, Linux, and Android can be found here. CE video tutorials here.
All-In-One Squalr [Open Source] A performant game hacking tool developed in C# with features that both rival and complement Cheat Engine.
All-In-One CrySearch [Open Source] A memory scanner akin to Cheat Engine, but with different features and a cleaner UI.
All-In-One PINCE [Open Source] A front-end/reverse engineering tool for the GNU Project Debugger (GDB), focused on games. It's essentially a work-in-progress Cheat Engine for Linux/MacOS.
All-In-One Binary Ninja [Commercial] A reverse engineering platform, hex editor, and interactive graph based disassembler.
All-In-One Ghidra [Open Source] a software reverse engineering framework including a suite of full-featured, high-end software analysis tools that enable users to analyze compiled code. Capabilities include disassembly, assembly, decompilation, graphing, and scripting, along with hundreds of other features. It is maintained by the NSA and requires Java 11.
Disassembler/Debugger x64dbg [Open Source] An x86 (32-bit)/x64 (64-bit) debugger for windows. Spiritual successor to OllyDbg.
Disassembler/Debugger WinDbg [Freeware] Microsoft's official Windows debugger which allows for debugging of both kernel and user mode code. There is also a new version of WinDbg being built for Windows 10 (WinDbg Preview), featuring an updated UI, new features, and more.
Disassembler/Debugger Hopper [Commercial] A powerful disassembler, decompiler, and debugger for macOS and Linux.
Disassembler/Debugger/Decompiler IDA Pro [Commercial] A multi-processor disassembler and debugger that works on Windows, Linux, and Mac. This is the crème de la crème of disassemblers/Decompilers in many professional reverse engineer's toolkits. A limited freeware version of v7.0 can be obtained here.
Graphics Debugger RenderDoc [Open Source] A stand-alone graphics debugging tool that allows quick and easy single-frame capture and detailed introspection of any application using Vulkan, D3D11, OpenGL, and OpenGL ES or D3D12 across Windows 7-10, Linux, or Android. Overview video here.
Graphics Debugger PIX [Freeware] Performance tuning and debugging for DirectX games on Windows and Xbox. Blog here; video tutorial playlist here.
Graphics Tool Ninja Ripper [Freeware] Utility to extract/rip 3D models (meshes), textures, and shaders directly from the running game.
Hex Editor HxD Hex Editor [Freeware] A fast, basic hex editor.
Hex Editor 010 Editor [Commercial] Extremely powerful and robust hex/text editor.
Hex Editor Hexinator [Commercial] A worthy "010 Editor" competitor with many different features.
Hex Editor Hex Workshop [Commercial] A popular, feature-rich hex editor.
.NET Decompiler/Re-Compiler/Debugger dnSpy [Open Source] A .NET assembly editor and debugger, including support for Unity games (Mono binaries). New versions allow direct editing of compiled code as though it were an IDE.
.NET Decompiler ILSpy [Open Source] A .NET assembly browser and decompiler.
Java Decompiler JD-GUI [Freeware] Displays Java source codes of “.class” files. You can browse the reconstructed source code with for instant access to methods and fields.
Java Decompiler Helios [Open Source] An all-in-one Java reverse engineering tool, featuring integration with the latest, up-to-date decompilers (Krakatau, Fernflower, CFR, Procyon, Javap, etc.).
Java Decompiler/Debugger Bytecode Viewer [Open Source] A Java 8 Jar and Android APK reverse engineering suite (decompiler, editor, debugger, and more).
Java Editor Recaf [Open Source] Used to edit the binary of java games/apps without needing a hex editor or having to decompile and recompile classes.
Java Editor JByteMod [Open Source] Used to edit the binary of java games/apps. It is able to decompile, analyze and compile bytecode. Generally more reliable than Recaf and has more features.
Flash Decompiler JPEXS [Open Source] Extract resources, convert SWF to FLA, edit ActionScript, replace resources, and more. Works on Windows, Linux, and macOS.
Flash Decompiler Trillix [Commercial] Converts SWF to FLA and decompiles Flash (supports Flash up to CS6 & CC and ActionScript 3.0).
Java Deobfuscator Deobfuscator [Open Source] An all-in-one Java deobfuscator which will deobfuscate code obfuscated by most obfuscators available on the market. Accompanying GUI here.
Network/Traffic Inspector Fiddler [Freeware] A powerful web debugging proxy for any browser, system, or platform.
Network/Traffic Inspector Wireshark [Freeware] A robust network protocol analyzer.
Network/Traffic Inspector Microsoft Message Analyzer [Freeware] Enables you to capture, display, and analyze protocol messaging traffic--as well as trace and assess system events and other messages from Windows components.
Process Inspector Sysinternals - Process Monitor [Freeware] An advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity. Part of the Windows Sysinternals tool suite.
Process Inspector Sysinternals - Process Explorer [Freeware] Details information about which handles and DLLs processes have opened or loaded. Discover files/directories a program has open, etc. Part of the Windows Sysinternals tool suite.
Process Inspector Process Hacker [Open Source] A powerful, multi-purpose tool that helps you monitor system resources and debug software.
Process Inspector WinExplorer [Open Source] Shows all of a system's windows and their properties, like handle, class name, caption, size, position, and more. Can modify certain properties for outcomes like making a game run in windowed mode in which it isn't a built-in feature.
Function Inspector CDA: Code Dynamic Analysis [Freeware] Tool for recording, filtering, and hacking function calls within applications or games. x86 support only. Previously open-source and known as FunctionHacker. Tutorial video here.
Function/API Inspector API Monitor [Freeware] Allows you to monitor and control API calls made by applications and services.
Function/API Inspector SpyStudio [Freeware] Shows and interprets calls, displaying the results in a structured way. Details registry keys and files that an application uses, COM objects, windows the application has created, errors and exceptions, and more. Tutorials here.
Function/API Inspector Spy++ [Freeware] A powerful tool allowing you to--among other things--spy on messages to/from selected windows in applications. NOTE: Spy++ is included with Visual Studio (including the free version, Community), but can be ran as a standalone tool. Video tutorial here.
File Inspector Exeinfo PE [Freeware] File packer/compressor detector which provides unpacking info and internal exe tools. A spiritual successor to PEiD.
.NET Deobfuscator/Unpacker de4dot [Open Source] A .NET deobfuscator and unpacker written in C#. Most obfuscation from supported implementations can be completely restored (eg. string encryption), but symbol renaming is impossible to restore since the original names aren't (usually) part of the obfuscated assembly.
Data Type/Structure Reconstructor ReClassEx [Open Source] A tool that intellgently reconstructs data types. Based on the original ReClass.
Data Type/Structure Reconstructor ReClass.NET [Open Source] A .NET port of ReClass, with many additional features. Video tutorials here.
File Format Parser QuickBMS [Open Source] An extensive tool that parses file formats and extracts/reimports files and archives.
File Format Parser UABE [Freeware] An editor for Unity 3.4+/4/5/2017/2018 .assets and AssetBundle files. It can create standalone mod installers from changes to .assets and/or bundles. Type information extracted from Unity is used in order to generate text representations of various asset types
File Format Parser DevXUnity-Unpacker [Commercial] An extensive tool which allows full asset extraction and manipulation from Unity games even allowing full exports of detailed scenes from packed files.
File Format Parser MultiEx Commander [Freeware] Allows you to use and create scripts to extract/import files from/to game resource archives.
PE Inspector CFF Explorer [Freeware] Features include dependency walking, disassembly, hex editing, signature scanning/management, special fields description and modification (.NET supported), import adding, extension support, scripting, and more.
Firmware/File Analyzer Binwalk [Open Source] Binwalk is a fast, easy to use tool for analyzing, reverse engineering, and extracting firmware images. Also extremely useful for game analysis (finding/extracting images from resources, etc.).
Text/Binary Pattern Scanner YARA [Open Source] Create descriptions of, and rules based on, textual or binary patterns. Excellent for creating custom rules for tasks like identifying resources in a game, game engine and version being used for a game, etc. See YARA GUI for a Windows GUI front-end. Also, see yarGen for a YARA rule generator.
Injector Xenos [Open Source] A Windows DLL injector, based on the Blackbone library.
Compiler Compiler Explorer [Open Source] Run compilers interactively from your web browser and interact with the assembly!
Memory Scanner/Tracer PSR (Pointer Sequence Reverser) [Open Source] Traces instructions executed prior to reading/writing from/to the provided address of a data member or object, then highlights relevant instructions, identifies vtable pointers, and more. Relevant whitepaper here.
Memory Scanner/Data Structure Scanner XenoScan [Open Source] Lua scriptable memory scanner written in C++. Supports complex scanning, custom structures, and automatic detection of complex structures (linked lists, binary tress, class instances, etc). Expandable with support for emulators. DEFCON Slides here.

Libraries, Frameworks, Plugins/Add-ons/Extensions, Etc.

Title/Link Description
Lighthouse Code coverage plugin for IDA Pro. The plugin leverages IDA as a platform to map, explore, and visualize externally collected code coverage data when symbols or source may not be available for a given binary.
Kaitai Struct A declarative language used to describe various binary data structures in files or memory (binary file formats, network stream packet formats, etc.). Allows for development of custom parsers for binary structures.
Frida Allows you to inject snippets of JavaScript or your own library into native apps on Windows, macOS, GNU/Linux, iOS, Android, and QNX. Also provides custom, modifiable tools built on top of the Frida API. Beginner's tutorial here.
Volatility An open source, advanced memory forensics framework used for the extraction of digital artifacts from volatile memory (RAM) dumps. Great for exploring RAM dumps of running games!
Rekall A powerful memory analysis framework. Consider taking a look at their memory analysis workshop, which explains memory and memory analysis in great detail, as well as how to utilize their framework.
radare2 A portable reverse engineering framework that acts as a forensics tool, scriptable command line hex editor, binary analyzer, disassembler, debugger, and much more. An accompanying open source book on radare2 can be found here.
angr A suite of python libraries that let you load a binary and perform a whole host of tasks: Disassembly and intermediate-representation lifting, program instrumentation, symbolic execution, control-flow analysis, data-dependency analysis, value-set analysis (VSA), and more.
CeAutoAsm-x64dbg An x64dbg plugin that allows users to execute Cheat Engine auto assembler scripts within x64dbg.
CEAutoAttach An x64dbg add-on allowing you to automatically make Cheat Engine attach to a process.
SignatureScanner A C++-based signature scanning library.
Hacklib A C++ library for building applications that run as a shared library in another application. It provides general purpose functionality like pattern scanning, hooking, and laying out foreign classes. Additionally it contains some D3D and OpenGL drawing facilities and a cross-platform, high-performance, 3D-capable, transparent overlay.
Detours Microsoft's open source package for monitoring and instrumenting API calls on Windows. Note: Does not work with Windows Store apps due to lack of API support. Samples here.
Blackbone A Windows x86/x64 hacking library. Visit the repo to learn of its copious features!
PolyHook An x86/x64 hooking library that provides an abstract C++ 11 interface for various hooking methods.
mhook A Windows API hooking library.
minhook A minimalistic x86/x64 API hooking library for Windows.
CoreHook A C# hooking library to intercept application function calls and extend their functionality with managed code using .NET Core.
EasyHook A C# hooking library to intercept application function calls and extend their functionality with managed code using .NET.
memory.dll C# hacking library used for making PC game trainers.
MemorySharp C#-based memory editing library targeting Windows applications, offering various functions to extract and inject data and codes into remote processes to allow interoperability.
Cecil A library to inspect, modify, and generate .NET programs and libraries.
xAnalyzer An advanced static code analyzer plug-in for x64dbg.
AntiDBG A categorized collection of Windows anti-debugging techniques written in C. These are self-contained debugger checks that will automatically detach debuggers. Great for learning anti-debugging techniques that might be used in games!
al-khaser A proof-of-concept application that performs a whole slew of detection methods (virtual machine, emulation, debuggers, sandbox) with the goal of seeing if you can stay undetected. Great for learning how to stay hidden from anti-cheat implementations!
RAM Watch A Lua script framework used to create displays for watching RAM via Cheat Engine. See it in action here.
Noriben A Python-based script that works in conjunction with Windows Sysinternals Process Monitor to automatically collect, analyze, and report (via a simple text file) on an application or game's activities.
CyberChef A simple, intuitive web app for carrying out various "cyber" operations, including simple encoding like XOR or Base64, more complex encryption like AES, DES and Blowfish, creating binary and hexdumps, compression and decompression of data, calculating hashes and checksums, IPv6 and X.509 parsing, changing character encodings, and much more. An in-browser, live demo can be found here.
Deviare API Hook A professional open source hooking engine for instrumenting arbitrary Win32 functions, COM objects, and functions which symbols are located in program databases (PDBs). It can intercept unmanaged code in 32-bit and 64-bit applications.
Microsoft Detours A software package for re-routing Win32 APIs underneath applications. 32-bit-only version is free.
Deviare In-Process A code interception engine for Windows (a free-for-non-commercial-use alternative to Microsoft Detours). This library is coded in C++ and provides all the facilities required to instrumenting binary libraries during runtime. Supports x86 and x64 applications.
AutoIt AutoIt is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks.
ReShade An advanced, fully generic post-processing injector for games and video software. Contains a wealth of information for how to intercept DX/OpenGL APIs and inject custom code (e.g. call your own code at present time when a frame is rendered).
Injectable Generic Camera System Used for creating custom camera tools in games. Also contains small tools, like a custom DLL injector to bypass Windows Defender detection.
Bleak A Windows native DLL injection library written in C#.
Jupiter A Windows memory editing Library written in C#.
Memory.dll Another Windows memory editing Library written in C#.
NP++ Hex Editor Very light and useful hex editing integration for Notepad++.

Interesting Repositories, Trainer and Custom Tool Source Code, Etc.

Title/Link Description
makin A tool to help reveal which debugger detection techniques a game is using.
JRemapper An easy-to-use GUI for remapping classes, methods, and fields of compiled java programs. Useful with games like Minecraft!
Portal 2 Trainer A hack/trainer for Portal 2 that demonstrates C++ and Win32 programming, including GUI, multithreading, and external/remote process memory manipulation.
Game Hacking (Book) Code Repo This is the code repo for all the targets and samples used for the book, Game Hacking.
pdbWriter A small tool to produce a dummy pdb for an executable with symbols at addresses from a file (think: porting work from, say, IDA to be used for dynamic analysis via Cheat Engine, which would apply the symbols from your custom PDB).
xortool A tool to analyze multi-byte xor cipher and guess key length (based on count of equal chars) and key (based on knowledge of most frequent char).
GameTutorials An expansive list of game development tutorials in multiple langauges. Heavy on source code and even inclusive of Win32 examples (which is an amazing resource if developing Win32 game trainers is of interest to you). Archive of accompanying site here.

General Information

Title/Link Description
EFF FAQ on Reverse Engineering Legalities This FAQ details information that may help reverse engineers reduce their legal risk. Use this information as a guide, not actual legal advice.

Blog Posts, Articles, and Presentations

Title/Link Description
Introduction to Lua using Cheat Engine: Beginner to Basic Script Writer! Cheat Engine contains a powerful Lua engine that affords game hackers a wealth of options, whether its through Cheat Engine's custom Lua methods or Lua's native methods. This guide is an introduction to Lua via Cheat Engine and Terraria.
Reverse Engineering for Beginners An online workshop teaching some of the basics of reverse engineering in the context of gaming. The final project involves reversing a randomization algorithm in the game Minesweeper.
Hack.lu 2017: (Workshop) Reverse Engineering a MMORPG This workshop covers the basics of reverse engineering a (M)MORPG. The target is Pwn Adventure 3, an intentionally-vulnerable MMORPG developed by Vector35.
Reverse Engineering Visual Novels 101, Part 1 A detailed tutorial on using Kaitai Struct to reverse engineer unknown formats.
Reverse Engineering Visual Novels 101, Part 2 A detailed tutorial on using Kaitai Struct to reverse engineer unknown formats (continued from above).
Exploiting Game Engines for Fun and Profit This slide deck shows you methods to exploit game engines, effictively discovering attack vectors that will work across multiple games using the same engine.
Hooking LuaJIT A blog post demonstrating how hooking into a game's scripting engine (in this case, LuaJIT) can expedite the reversing process and enable side-loading of custom scripts.
Reversing LoL Client w/ Custom API Monitor Definitions This quick blog post shows how custom rules for API Monitor can be utilized to aid in the reversing process.
Reverse Engineering Animal Crossing's Developer Mode A blog post that documents the process of using a disassembler and debugger to find and reverse engineer developer debug features that were left in Animal Crossing for the GameCube.
Reverse Engineering the Rendering of The Witcher 3 A multipart series of blog posts exploring various rendering methods used in The Witcher 3, and reversing them to modify shader bytecode.
GTA V - Graphics Study A 3-part deep dive into graphics techniques used in GTA V. Also see his studies of DOOM (2016) and Metal Gear Solid V.
Fixing a Direct3D9 bug in Far Cry A journey into the discovery and remedy of a pervasive bug related to broken water reflections on any Windows OS newer than XP, in the original Far Cry.
Fixing a Bug in an 18 Year Old Shockwave Game A journey into finding and patching one byte to fix a nagging bug in an old Shockwave game.
Game Hacking: Hammerwatch Invincibility A case study using dnSpy to hack a Mono-based game.
Riot's Approach to Anti-Cheat A high-level glimpse into some of the ways Riot approaches anti-cheat.
Hacking Minesweeper: Programmatically Place Flags on Mined Blocks The final challenge on begin.re, this tutorial uses IDA Pro and OllyDbg to demonstrate reversing via static and dynamic analysis.

Interesting/Educational Forum Discussions

Title/Link Description
Note: CEF = Cheat Engine Forum Link to Cheat Engine Forum
CEF Discussion - Memory Alignment General discussion of memory alignment.
CEF Discussion - Mono: Instances and Invoking via Cheat Engine Short tutorial demonstrating how to use Cheat Engine's Mono features, "Find Instances of Class" and "Invoke Method".
CEF Discussion - Deallocating Memory in createThread() Script Script examples in x86 and x64 showing how to deallocate memory in a createThread() script.
Reverse Engineering of a Packet Encryption Function of a Game An informative discussion from a question on StackExchange.

Videos

Title/Link Description
Cheat Engine Tutorial: Demystifying Memory, AutoAssembler Scripts, Disassembler/Memory Viewer, and More A deep dive into memory, scripting, and disassembly in relation to utilizing Cheat Engine.
How to Create a No-Clip Hack via Cheat Engine An in-depth tutorial on approaches to creating no-clip hacks using Cheat Engine.
Introduction to IDA Pro (x86/x64, via Windows) A well-paced, cursory overview of IDA Pro. It's given in the context of malware analysis, but everything you learn can be directly applied to game hacking.
Motherboard Livestream Archive: Researcher Cracks Elder Scrolls Online, Dark Age of Camelot, and Wildstar Adrian Bednarek, better known as "Manfred", demonstrates the MMORPG hacks he wanted to show but couldn't during his DEF CON 25 presentation. This is a rare glimpse into the tools, thoughts, and approaches of a professional online game hacker!
Hacking Games in a Hacked Game This video discusses goes over the results of those who solved CTF challenges in Pwn Adventure 3 at Ghost in the Shellcode 2015. Slides here.
The Security of Classic Game Consoles A presentation demonstrating the technical details of what went into protecting the security of classic game consoles, as well as how those protections were broken.
Cracking Video Game Passwords, Season 1 A playlist demonstrating the password schemes used in numerous classic video games.
Sega Saturn - Cracked After 20 Years A detailed look into what it took to finally defeat Sega Saturn's protection.
GDC 2018: John McDonald (Valve) - Using Deep Learning to Combat Cheating in CSGO A video discussing how Valve uses deep learning to thwart certain types of cheating in CSGO.

Books

Title/Link Description
Game Hacking Game Hacking shows programmers how to dissect computer games and create bots.
Attacking Network Protocols Attacking Network Protocols is a deep-dive into network vulnerability discovery.
Practical Packet Analysis, 3rd Edition Practical Packet Analysis, 3rd Ed. teaches you how to use Wireshark for packet capture and analysis.
Exploiting Online Games: Cheating Massively Distributed Systems This book takes a close look at security problems associated with advanced, massively distributed software in relation to video games.
Game Programming Patterns A collection of game patterns that make code cleaner, easier to understand, and faster. A great reference for seeing forward engineering representations of what you discover while reverse engineering games!

Game Hacking Sites/Forums/Etc.

Title/Link Description
REGames Subreddit A subreddit dedicated to reverse engineering video games.
Reverse Engineering Subreddit A subreddit dedicated to reverse engineering in general. Game-related submissions appear quite frequently.
Reverse Engineering on StackExchange A link to all game-related discussions (sorted by newest) on the RE StackExchange site.
Cheat Engine Forum (CEF) The official forum for Cheat Engine.
FearLess Cheat Engine Cheat Engine cheat tables, discussions, and tutorials for game hacking.
Guided Hacking Discussion of multiplayer and single-player game hacks and cheats.
UnKnoWnCheaTs Forum Discussion of multiplayer game hacks and cheats.
MPGH (Multi-Player Game Hacking) Forum Discussion of multiplayer game hacks and cheats.
ElitePVPers Discussion of MMO hacks, bots, cheats, guides and more.
OwnedCore An MMO gaming community for guides, exploits, trading, hacks, model editing, emulation servers, programs, bots and more.

Open Source and Safe-to-Hack Games

Title/Link Description
List of Open Source Games A large list on Wikipedia of open source games, both single-player and multiplayer.
Pwn Adventure Z An NES zombie survival game made to be hacked.
Pwn Adventure 2 A custom 3D MMOFPS based on the Unity game engine. The game includes several quests that are only solvable by modifying the game client.
Pwn Adventure 3: Pwnie Island A first-person, open-world MMORPG developed specifically to be hacked!
Minetest An open source, multiplayer voxel-based game and game engine. (A Minecraft clone, basically.)
Xonotic An open source, arena-style multiplayer FPS.
Nexuiz The open source, multiplayer FPS game Xonotic is based on.
AssaultCube An open source, multiplayer, FPS.

About

Tutorials, tools, and more as related to reverse engineering video games.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published