any rebase.exe experts here?
as I understand to rebase 1.dll and 2.dll you do this
rebase.exe -b 0x400000 1.dll 2.dll
right. Is ther a way to create a .bat file that sequentally rebase multiple files
rebase.exe -b 0x400000 1.dll
rebase.exe -b 0x400000 2.dll but now 1.dll and 2.dll are both unique base addresses.
The problem is that I have a program with many dlls in many extreamly nested folders. I could not possible include all the paths in a single command line.
Any Ideas?
Re: any rebase.exe experts here?
Ok.. one solution is to specify a unique load address in project settings.
I think I'm going to take this route.
awaiting any suggestions.
Re: any rebase.exe experts here?
If the .dlls are in the same dir then just pass *.dll
If seperate dirs, then create a file listing the offset of the dirs + dll names.
Pass that to rebase:
rebase -b 0x62000000 -R c:\dev\myrootproject -G <filename containing dll names with path offsets>
eg:
debug\root.dll
\debug\firstdll.dll
\debug\seconddll.dll
Or something like that....
You should be outputting all your libs/exe/dlls into one dir at any rate...then you could have just *.dll'd it....IMHO.
Re: any rebase.exe experts here?
sweet, Thanks.
I was wondering how to use the -R option.
MS gives you a one line description :(.
Re: any rebase.exe experts here?
A nice hello :)
I´m new here at this board, and have one question.
My proplem is that the rebasing of some files does not ever work and i dont know why?. I use the rebase.exe see images...
http://de.geocities.com/matiano_99/rebase.gif
OK before help me here some infos (maybe it´s important)
http://de.geocities.com/matiano_99/PE-info.gif
My file which i want rebased is not compiled from me and PEID say its coded in Microsoft Visual C++ 6.0 SPx Method 1 [Overlay].
Can somebody tell me reasons when it is possible to rebase a file and when not :) ?
regards,
xy_2000
Re: any rebase.exe experts here?
The common usage is to rebase your .dlls as they use a default 0x10000000. Hence the need to rebase to avoid collisions via the loader.
exes use a default of 0x400000.
So I do not see your reason for trying to rebase your .exe.
Re: any rebase.exe experts here?
@Mick
Thx for your help :)
now i´ve tried rebase myfile again the see images....
[img]http://de.geocities.com/matiano_99/rebase-again.gif[img]
...and tried more!
The resabe.exe say i´ve 10000 size of mapping (to change the imagebase) but when i play with the space it does not work.
I´ve evertime the same resultat how this images...
http://de.geocities.com/matiano_99/PE-info.gif
:(
What i can do now ?
regards,
xy_2000
Re: any rebase.exe experts here?
The best way is to forget about rebase and let system loader decide itself where module will be loaded at.
Rebasement is too much delicate thing - I belive you're out of notion why and what for it ought to be done.
Re: any rebase.exe experts here?
@Igor Vartanov
ok its your opinion..., but i want rebased myfile!
i´m only wondering why i can not rebase my file.
rebase.exe say to me i´ve 0x00010000 size of mapping, but i can not use the mapping size to rebase my file :(
1. maybe i must use an exra option to rebase myfile.exe ?
2. or must i must make manual the size of mapping bigger with an pe-editor ?
when nobody beleave, maybe somebody want try to rebase my file?
regards,
xy_2000
Re: any rebase.exe experts here?
Why don't you use PE Explorer for that particular task?
PE Explorer home page: http://www.heaventools.com
Hope it helps
Re: any rebase.exe experts here?
@Artt
I´ve pe-explorer, but i´ve no idea how to use this for my particular task ?