GithubHelp home page GithubHelp logo

ssageparuders / cheatunitygames Goto Github PK

View Code? Open in Web Editor NEW
70.0 4.0 27.0 12.34 MB

How to Cheat Android Games And How to Anti-Cheat

License: MIT License

Makefile 0.03% C++ 29.10% C 70.79% Shell 0.04% CMake 0.04% Batchfile 0.01%
android cheat inject hook game mod ndk

cheatunitygames's Introduction

Example for Android Native Development by VsCode

网上大部分的Android Native开发都是依托于Android Studio

但是假设我们仅仅只是需要便捷的开发一些Android Native层产物

比如:动态库(.so), 静态库(.a), 可执行文件(elf) ...

这时Android Studio难免显得有些笨重/不便捷

因此, 本项目将大概介绍如何使用VsCode进行便捷的Android Native层开发

Set Environment

  • Android Native项目关联ndk

    关联ndk开发环境

    编写.vscode目录下的c_cpp_properties.json

    includePath中的路径修改为自己系统中 ndk 的路径

    cStandardcppStandard 是c/c++标准, 根据自己需求修改他

    defines主要是在编写代码时的预处理定义

我们这样做的目的, 仅仅只是为了将项目关联ndk

这样头文件才不会缺失, VsCode才能给我们智能提示

编译的环节, 我们交给ndk-build脚本

ndk-build本质其实就是make构建体系

Compile Android.mk And Application.mk

相关语法, 有注释在脚本里

Target: Inject so to Game And Trick Game On Android

注入的意思是将so注入到游戏内部, 这样我们就可以实现一些作弊手段

常见的比如: 内存读写/hook/call 等等

而这些手段如果要细分的话, 也有很多类别

以内存读写为例:

在注入的情况下, 可以直接使用memcpy

在非注入情况下, 可以使用preadv/syscall

更高级的, 可以刷入内核驱动, 从而在内核层直接读写物理内存

同时, 注入的手法也有很多种类

常见的比如: 修改dex/注入Zygote 等等

这些手法在本项目中, 都会一一展示, 以供后来者研究/学习

How to Use This Project

Later ... OK?

TODO List

  • 完善注入情况下的内存读写

  • 测试hook问题

  • 改善项目结构

  • 完善内存段权限属性恢复

  • dlopen的hook适配安卓全版本

  • 添加CMake支持

  • 实现基于MAC地址的授权验证

  • 完善Engilsh版的README

  • 完善README内容

cheatunitygames's People

Contributors

ssageparuders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.