- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Delphi-DLL注入(Delphi - DLL injection)
Delphi-DLL注入(Delphi - DLL injection)
Delphi - DLL injection 2008-08-05 backs there are many kinds of remote DLL injection method, is used by a lot of Trojan virus hidden process approach, because through the program to load the DLL is not shown in task manager. Here are a way of established using CreateRemoteThread remote thread injecting DLL.
First of all, we have to improve their permissions, because of the distance into the inevitable to access to the target process of memory space, if not enough system permissions, will not be able to do anything. The following is the function is used to enhance we want permission to use.
The function EnableDebugPriv: Boolean;
var
HToken: THandle;
Tp: TTokenPrivileges;
Rl: Cardinal;
The begin
Result: = false;
/ / open process token ring
TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERY OpenProcessToken (GetCurrentProcess (),
HToken);
/ / get the unique ID of the process
If lookupton evalue (nil, SeDebugPrivilege, tp. Privileges [0]. Luid) then
The begin
Tp. PrivilegeCount: = 1;
Tp. Privileges [0]. Attributes: = SE_PRIVILEGE_ENABLED;
/ / adjust permissions
Result: = AdjustTokenPrivileges (hToken, false, tp, SizeOf (tp), nil, rl);
The end;
The end;
A brief introduction to two apis for OpenProcessToken () and AdjustTokenPrivileges () :
OpenProcessToken () : gets a handle to the process access token.
The function OpenProcessToken (
ProcessHandle: THandle; / / modify the process handle of the access permission
DesiredAccess: DWORD; / / specify the type of operation you are going to perform
Var TokenHandle: the access token pointer returned by THandle / /
) : BOOL;
AdjustTokenPrivileges () : permissions to adjust the process.
The function of AdjustTokenPrivileges (
TokenHandle: THandle; / / access token handle
DisableAllPrivileges: BOOL; / / the decision is to make the authorization change or to Disable all permissions
Const NewState because: TTokenPrivileges;
{specifies the permissions to modify, is a pointer to the TOKEN_PRIVILEGES structure,
您可能关注的文档
- 陈玉琴讲座对癌症的一些理解。(Chen yuqin's lecture on some understanding of cancer.).doc
- 除体内湿气的方子(Except for the damp in the body).doc
- 隔离变压器原理及应用(Principle and application of isolation transformer).doc
- 隔夜茶的妙用大全(Overnight tea is a great use of tea).doc
- 隔变压器(Isolation transformer).doc
- 赤壁方言小结(A small knot in chibi dialect).doc
- 非主流《泡妹女生必会的笑话经典收藏》-冷笑话大全(The non-mainstream bubble girl girl will laugh classic collection - cold joke big).doc
- 非ST段抬高性急性冠状动脉综合征2009(Non-st segment elevation acute coronary syndrome 2009).doc
- 非会计专业大龄考生注会一次过6门心得体会(The non-accounting major age candidates will experience six experiences in a single time).doc
- 非常好听的英文歌分类整合(Very good English song classification integration).doc
- DIY面膜(DIY mask).doc
- dll注入(DLL injection).doc
- DOTA史诗级超难逻辑(The DOTA epic is extremely difficult to logic).doc
- Dnf第二季70级所有消耗品代码(Dnf second season 70 all consumable code).doc
- DOTA走势攻略(DOTA trend strategy).doc
- dow考试用(Dow examination with).doc
- DS1302(DS1302).doc
- dwr离子(DWR ion).doc
- D速度富(D speed rich).doc
- EI_Centro30地震波(EI_Centro30 seismic waves).doc
文档评论(0)