{"id":20279043,"url":"https://github.com/t-vk/memory-hacking-class","last_synced_at":"2025-04-11T06:14:40.510Z","repository":{"id":53581292,"uuid":"56671489","full_name":"T-vK/Memory-Hacking-Class","owner":"T-vK","description":"Easy-to-use class to read and modify other processes memory.","archived":false,"fork":false,"pushed_at":"2018-04-01T01:17:53.000Z","size":8,"stargazers_count":216,"open_issues_count":5,"forks_count":44,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-11T06:14:35.759Z","etag":null,"topics":["c-plus-plus","cheat-engine","cheating","class","cpp","hacking","library","memory","memory-hacking","modify","multi-level-pointers","pointers","ram","read"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/T-vK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-20T08:53:47.000Z","updated_at":"2025-03-22T17:21:04.000Z","dependencies_parsed_at":"2022-09-02T01:11:08.897Z","dependency_job_id":null,"html_url":"https://github.com/T-vK/Memory-Hacking-Class","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T-vK%2FMemory-Hacking-Class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T-vK%2FMemory-Hacking-Class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T-vK%2FMemory-Hacking-Class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/T-vK%2FMemory-Hacking-Class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/T-vK","download_url":"https://codeload.github.com/T-vK/Memory-Hacking-Class/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351393,"owners_count":21089272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","cheat-engine","cheating","class","cpp","hacking","library","memory","memory-hacking","modify","multi-level-pointers","pointers","ram","read"],"created_at":"2024-11-14T13:27:51.119Z","updated_at":"2025-04-11T06:14:40.481Z","avatar_url":"https://github.com/T-vK.png","language":"C++","readme":"## C++ Memory Hacking Class\nVery easy to use class to read and modify other processes memory on Windows.  \nAnd the best thing is: it supports multi-level-pointers out of the box!\n\n#### Example usage\n\n```C++\n#include \"Memory.hpp\"\nusing std::string;\n\nint main() {\n    SetConsoleTitle(\"Memory Class Test\");\n    char* TARGET_PROCESS_NAME = \"League of Legends.exe\";\n    \n    HANDLE processHandle;\n    int baseAddress;\n    \n    //////////////////////////////////////////////////////////////////////////////////\n    /* Note: These pointers/offsets are probably outdated by the time you read this */\n    \n    int GAME_VERSION_MODULE_OFFSET = 0x2A1D738;\n    \n    int PLAYERS_MODULE_OFFSET = 0x1DAAED4;\n        int HEALTH_OFFSET = 0x124;\n        int MANA_OFFSET = 0x190;\n        \n    //////////////////////////////////////////////////////////////////////////////////\n    \n    Memory Memory;\n    Memory.GetDebugPrivileges();\n    processId = Memory.GetProcessId(TARGET_PROCESS_NAME);\n    processHandle = OpenProcess(PROCESS_ALL_ACCESS, false, processId);\n    \n    baseAddress = Memory.GetModuleBase(processHandle, (string)TARGET_PROCESS_NAME);\n    std::cout \u003c\u003c \"Base address for module \\\"\" \u003c\u003c TARGET_PROCESS_NAME \u003c\u003c \"\\\" is \" \u003c\u003c baseAddress \u003c\u003c \" (in dec)...\"\u003c\u003c std::endl;\n    \n    int playersAddress =     baseAddress + PLAYERS_MODULE_OFFSET;\n    int gameVersionAddress = baseAddress + GAME_VERSION_MODULE_OFFSET;\n    \n    int ptrOffset[] = {0x0}; //0x0 offset is for player one. 0x4 would be player 2 etc\n    int playerOneAddress = Memory.ReadPointerInt(processHandle, playersAddress, ptrOffset, 1);\n    \n    float playerOneHealth = Memory.ReadFloat(processHandle, playerOneAddress + HEALTH_OFFSET);\n    float playerOneMana =   Memory.ReadFloat(processHandle, playerOneAddress + MANA_OFFSET);\n    \n    string gameVersion = Memory.ReadText(processHandle, gameVersionAddress);\n    \n    std::cout \u003c\u003c \"Game version: \" \u003c\u003c gameVersionAddress \u003c\u003c std::endl;\n    std::cout \u003c\u003c \"Player one has \" \u003c\u003c playerOneHealth \u003c\u003c \" health!\" std::endl;\n    std::cout \u003c\u003c \"Player one has \" \u003c\u003c playerOneMana \u003c\u003c \" mana!\" std::endl;\n    \n    cin.get();\n    return 0;\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-vk%2Fmemory-hacking-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft-vk%2Fmemory-hacking-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft-vk%2Fmemory-hacking-class/lists"}