C++|Qt笔记-CS1.6作弊器编写(无限子弹、无限手雷、血、防弹衣、压枪等)
发布日期:2021-06-30 10:40:47
浏览次数:2
分类:技术文章
本文共 1139 字,大约阅读时间需要 3 分钟。
目录
程序截图
运行CS1.6后:
这里主要是使用Windows.h
全部勾选后::
游戏截图
这里是实时写入的。
关键代码
这里主要是使用WriteProcessMemory和ReadProcessMemory这两个函数。其中基址如下:
钱:
DWORD base = 0x025069BC; DWORD offset1 = 0x7C; DWORD offset2 = 0x1CC;
血量:
DWORD base = 0x025069BC; DWORD offset1 = 0x7C; DWORD offset2 = 0x4; DWORD offset3 = 0x160;
防弹衣:
DWORD base = 0x025069BC; DWORD offset1 = 0x7C; DWORD offset2 = 0x4; DWORD offset3 = 0x1BC;
护甲:
DWORD base = 0x025069BC; DWORD offset1 = 0x7C; DWORD offset2 = 0x5EC; DWORD offset3 = 0xCC;
写的函数:
void WindowHand::writeMemory(unsigned long base, unsigned long setValue){ if(0 == WriteProcessMemory(m_hand, (LPVOID)(base), &setValue, (DWORD)sizeof(setValue), nullptr)){ qDebug() << "修改失败"; }}
读的函数:
unsigned long WindowHand::readMemory(unsigned long base){ if(!m_hand){ qDebug() << "The m_hwnd is null"; //Q_ASSERT(!"The m_hwnd is null"); return 0; } unsigned long ret = 0; DWORD dwSize; if(0 == ReadProcessMemory(m_hand, (LPVOID)base, &ret, sizeof(DWORD), &dwSize)){ qDebug() << "ReadProcessMemory failed"; return ret; } return ret;}
下载地址
程序打包下载地址:
转载地址:https://it1995.blog.csdn.net/article/details/103265056 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
逛到本站,mark一下
[***.202.152.39]2024年04月08日 01时57分18秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
java实现稀疏数组及将稀疏数组存入硬盘中
2019-04-30
2021-05-18
2019-04-30
Flutter 使用插件打开相册、相机
2019-04-30
libuv实现tcp代理服务器
2019-04-30
libuv使用不当导致的内存泄漏
2019-04-30
libuv实现ping包发送和接收
2019-04-30
linux-arm编译报错m4: unrecognized option ‘--gnu‘
2019-04-30
基础架构系列篇-系统CENTOS7安装jdk8
2019-04-30
基础架构系列篇-CENTOS7安装NGINX
2019-04-30
系统运维篇-常用的LINUX指令小计
2019-04-30
基础架构系列篇-系统centos7中安装mysql8.0.23(已更新)
2019-04-30
基础架构系列篇-系统centos7中DOCKER安装REDIS(已更新)
2019-04-30
基础架构系列篇-系统centos7安装docker+COMPOSE
2019-04-30
基础架构系列篇-系统centos7中docker安装rabbitmq
2019-04-30
基础架构系列篇-NGINX部署VUE
2019-04-30
个人电商项目,基于uni-app+ springcloud +VUE技术
2019-04-30
基础架构系列篇-系统centos7安装kafka
2019-04-30
基础架构系列篇-系统centos7中docker安装分布式文件存储服务minio
2019-04-30
知识点记录-java判断系统是linux或windows
2019-04-30
知识点记录-springboot静态资源映射路径
2019-04-30