如何将代码注入现有的EXE? [英] How do I inject a code into an existing EXE?

查看:143
本文介绍了如何将代码注入现有的EXE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们我是编程的新手,所以请耐心等待我,我被分配了一个代码注入Compiled exe的任务,我听说这可以用代码洞和ollydbg完成,但不知道在哪里开始。



我想要的是删除应用程序本身的标题栏,听起来很简单,但我唯一的知识是一些c ++基础知识。我还没有为DLL编写代码:/



任何帮助都非常感谢,我目前正在阅读C ++ Primer(第5版)并且不是很我希望能够很好地完成这一任务,并在此过程中完成任务:)谢谢大家。

Hey Guys I am very new to programming so please bear with me, I have been assigned the task of injecting a code into a Compiled exe, I heard this can be done with code caves and ollydbg but don't know where to start.

All I want is the remove the Title bar of the application itself, sounds simple but My only knowledge is a few c++ basics. I haven't made the code for the DLL yet either :/

Any help is much appreciated, I am currently reading C++ Primer (5th edition) and am not very far and would love to get good at this, and finish the task in the process :) Thanks guys.

推荐答案

有很多关于codeproject的文章。以下是一些:



Rabbit Threads:让线程跳转

编码器初学者指南

导入内部代码表
There are many articles on codeproject. Here are a few:

Rabbit Threads: Making Threads Jump
The Beginners Guide to Codecaves
Injective Code inside Import Table


存储标题的位置和方式取决于编译器,它可以是代码段的一部分,也可以存储为资源。

无论如何,我强烈而且认真地 not 建议做这样的事情。编译代码是一个非常复杂的编辑,因为它包含机器代码(或接近它的东西......)。

如果必须,但是,找到一些十六进制编辑器 - 找到字符串和编辑它。

在!!!之前做备份
The place where and how your title is stored is depend on the compiler, it can be part of the code segment or stored as resource too.
In anyway I strongly and seriously not recommend to do things like this. Compiled code is a very complicated thing to edit as it contains machine code (or something close to it...).
If it a must be, however, find some hex editor - locate the string and edit it.
Do backup before!!!


这篇关于如何将代码注入现有的EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆