GithubHelp home page GithubHelp logo

moarpm's Introduction

MoaRpm

MoaRpm is the mother-of-all ReadProcessMemory classes. It can use the standard winapis, hidden ntdll functions, or even a driver to read/write memory without handles.

All reading/writing syntax is identical no matter what method you use, simply specify in the constructor.

Driver Loading

This even contains the code to check if you're running the tool as administrator, if you're in test mode (able to load unsigned drivers), and it creates the driver service and loads it for you.

It can read/write memory in templates, as well char*s (thanks to magicm8). Driver source based on work by kcorj2244.

Usage

#include "kRpm.h"
#include <iostream>

int main()
{
	MoaRpm rpm("star wars battlefront", MoaRpm::MOA_MODE::KERNEL);
	//MoaRpm rpm("star wars battlefront", MoaRpm::MOA_MODE::NTDLL);
	//MoaRpm rpm("star wars battlefront", MoaRpm::MOA_MODE::STANDARD);
	auto pGameContext = rpm.read<DWORD_PTR>(0x142AE8080);
	auto pPlayerManager = rpm.read<DWORD_PTR>(pGameContext + 0x68);
	auto pLocalPlayer = rpm.read<DWORD_PTR>(pPlayerManager + 0x550);
	auto pLocalSoldier = rpm.read<DWORD_PTR>(pLocalPlayer + 0x2cb8);
	rpm.write<byte>(pLocalSoldier + 0x02AC, 240);
	auto playerName = rpm.readString(rpm.read<DWORD_PTR>(pLocalPlayer + 0x18));
	std::cout <<  "player name\t" << playerName << std::endl;
	getchar();
	return 0;
}

Yep, it's that easy.

Modes

Standard (ReadProcessMemory/WriteProcessMemory)

MoaRpm rpm("star wars battlefront", MoaRpm::MOA_MODE::STANDARD);

NTDLL (ReadVirtualMemory/WriteVirtualMemory)

MoaRpm rpm("star wars battlefront", MoaRpm::MOA_MODE::NTDLL);

Kernel Magic (MmCopyVirtualMemory)

MoaRpm rpm("star wars battlefront", MoaRpm::MOA_MODE::KERNEL);

Downloads

Don't feel like compiling the lib? Just download prebuilt binaries here. As a general rule of thumb tho, don't ever load unsigned drivers you didn't compile and verify...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.