鱼C论坛

 找回密码
 立即注册
查看: 3158|回复: 2

谁有 Delphi 写的内存修改器源代码共享下

[复制链接]
发表于 2012-11-10 10:42:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
谁有 Delphi 写的内在修改器源代码共享下,偶想学学怎么写修改器谢谢。{:7_168:}
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
发表于 2012-11-19 00:17:47 | 显示全部楼层
用CE的源码``可以看学到``
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
发表于 2012-11-19 13:17:21 | 显示全部楼层
unit wl_main;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, bsSkinData, BusinessSkinForm, ComCtrls, bsSkinTabs, ExtCtrls,
bsSkinCtrls, StdCtrls,getgamepro, Gauges;

procedure sitcall;
type
TForm1 = class(TForm)
bsBusinessSkinForm1: TbsBusinessSkinForm;
bskndt1: TbsSkinData;
bscmprsdstrdsknskin: TbsCompressedStoredSkin;
bsSkinPageControl1: TbsSkinPageControl;
bsSkinTabSheet1: TbsSkinTabSheet;
bsSkinTabSheet2: TbsSkinTabSheet;
bsSkinBevel1: TbsSkinBevel;
bsSkinPanel1: TbsSkinPanel;
bskng1: TbsSkinGauge;
bskng2: TbsSkinGauge;
bskng3: TbsSkinGauge;
bskng4: TbsSkinGauge;
tmr1: TTimer;
btn1: TButton;
procedure btn1Click(Sender: TObject);
procedure tmr1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure sitcall;
begin
asm
mov eax,006a5e10h
call eax
end;
end;
procedure TForm1.btn1Click(Sender: TObject);
var
gh:HWND;
gid,gpro:THandle;
calladdr:Pointer;
tt:DWORD;
begin
gh:=FindWindow(nil,'Element Client');
if gh > 0 then
begin
GetWindowThreadProcessId(gh,@gid);
gpro:=OpenProcess(PROCESS_ALL_ACCESS,False,gid);
calladdr:=VirtualAllocEx(gpro,nil,windows.MAX_PATH,windows.MEM_COMMIT OR windows.MEM_RESERVE,windows.PAGE_EXECUTE_READWRITE);
//写入代码
WriteProcessMemory(gpro,calladdr,@sitcall,MAX_PATH,tt);
CreateRemoteThread(gpro,nil,0,calladdr,nil,0,tt);
end;
end;

procedure TForm1.tmr1Timer(Sender: TObject);
var
gameh:HWND;
gameprocesspid,gameprocess:THandle;
Hp,MaxHp,Mp,MaxMp:DWORD;
i:DWORD;
tt,i1:DWord;
begin
hp:=0;
Mp:=0;
maxhp:=0;
MaxMp:=0;
gameprocess:=gamepro;
ReadProcessMemory(gameprocess,Pointer($B9F64C ),@i1,4,tt);
ReadProcessMemory(gameprocess,Pointer(i1 + $28),@i,4,tt);
ReadProcessMemory(gameprocess,Pointer(i + $264),@hp,2,tt);
ReadProcessMemory(gameprocess,Pointer(i + $268),@mp,2,tt);
ReadProcessMemory(gameprocess,Pointer(i + $280),@maxhp,2,tt);
ReadProcessMemory(gameprocess,Pointer(i + $284),@MaxMp,2,tt);
//ShowMessage(IntToStr(tt));
Self.bskng3.MaxValue:=MaxHp; //体力
Self.bskng3.Value:=hp ; //体力
Self.bskng3.ProgressTransparentColor:=clRed;
self.bskng4.MaxValue:=MaxMp;
Self.bskng4.Value:=Mp;

/////////



end;

end.
之前乱写的!
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-11-21 22:23

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表