当前位置:网站首页>入口点注入
入口点注入
2022-08-05 04:58:00 【小鸡岛~】
入口点: 每一个程序都有一个入口点地址,比如main函数。我们的ntdll模块加载后会去调用这个入口点地址,然开始执行我们的代码
提出问题:
- codeRemoteArea需要做什么事情
task1:加载我们的注入模块 LoadLibraryW 地址 存在两个问题:A.CALL xxxx 这个地址无效,为什么?重定位 B.push xxxx 字符串地址是错误的 利用window的动态链接库加载原理:A进程加载了xxx模块*(运行时),B进程也需要加载模块xxx,OS为了节约内存,他会直接使用A进程加载后的模块地址。 task2: 修复入口点地址被破环的5个字节的代码 task3: JMP 入口点地址
2.codeRemoteArea函数执行需要什么数据呢?
1.函数指针(LoadLibraryW ) 模块路径(dllName)
2.入口点地址(EntryPoint), 存储**被破环的指令**的地方(oldCode)
3.谁去填充这些数据呢?
task1: GetModuleHandleA+偏移地址, 赋值到EntryPoint
task2: 保存被破坏的的指令 入口点地址→oldCode
task3: 破坏入口点地址 JMP 要去的地址T
4.谁去搭建这个数据框架?
task1:alloc memory on the GameMemory
边栏推荐
猜你喜欢
随机推荐
【cesium】3D Tileset 模型加载并与模型树关联
Detailed explanation of Mysql's undo log
Feature preprocessing
关于sklearn库的安装
WPF中DataContext作用
【cesium】Load and locate 3D Tileset
The production method of the powered small sailboat is simple, the production method of the electric small sailboat
Flutter学习2-dart学习
1068 Find More Coins
【无标题】
dedecms error The each() function is deprecated
write the story about us
[MRCTF2020] Ezpop (detailed)
AUTOCAD - dimension association
数字_获取指定位数的小数
Application status of digital twin technology in power system
upload上传图片到腾讯云,如何上传图片
数字孪生技术在电力系统中的应用现状
mysql数据库表什么字段类型的存储长度最大?
Detailed explanation of each module of ansible
![[BJDCTF2020] EasySearch](/img/60/464de3bcdda876171b9f61ad31bff1.png)





![[MRCTF2020] Ezpop (detailed)](/img/19/920877ca36d1eda8d118637388ab05.png)
