Autor Beitrag
Flamefire
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Sa 24.11.07 19:03 
hi
ich möchte eine dll von einem programm laden lassen
dazu wird beim start des programs eine dll von mir inected die dann eine fremde dll lädt
wie kann ich dieser DLL ein andere Imagebase (ein genau festgelegte also z.b. $180000) aufzwingen?
Wenn ich mit LordPE nur die ImageBase ändere funktioniert die dll ja nicht
wenn ich meine dll an $1000000(original imagebase) lade verdrängt die zwar die original dll aber die ist dann an $1950000
wie mach ich das?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 24.11.07 19:33 
Indem Du die Relocation-Procedure selber machst, die sonst LoadLibrary ausführt. Wie das geht, zeigt Dir die uallCollection (Dort gibt's ne Neuimplementation von LoadLibrary ...)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Flamefire Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Sa 24.11.07 19:46 
verdammt...
da seh ich nich durch...
kannst mir nen tip geben?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 24.11.07 19:48 
Relocation Tabelle der DLL auswerten und die betroffenen Adressen entsprechend patchen ...

@uallCollection: Ich beim ersten Blick auch nicht. Der Source ist gewöhnungsbedürftig, aber machbar :P

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Flamefire Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: Sa 24.11.07 19:59 
ne sry ich schaffs ne...
hab keine ahnung wie ich das machen soll...