CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Oct 2000
    Location
    Ottawa, CANADA. (CNADA ROCKS!!)
    Posts
    1,895

    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?
    and Canada rocks!! Peace bro.

  2. #2
    Join Date
    Oct 2000
    Location
    Ottawa, CANADA. (CNADA ROCKS!!)
    Posts
    1,895

    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.
    and Canada rocks!! Peace bro.

  3. #3
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537

    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.

  4. #4
    Join Date
    Oct 2000
    Location
    Ottawa, CANADA. (CNADA ROCKS!!)
    Posts
    1,895

    Re: any rebase.exe experts here?

    sweet, Thanks.
    I was wondering how to use the -R option.

    MS gives you a one line description .
    and Canada rocks!! Peace bro.

  5. #5
    Join Date
    Apr 2005
    Posts
    4

    Question 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...



    OK before help me here some infos (maybe it´s important)



    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
    Last edited by xy_2000; April 11th, 2005 at 12:41 PM. Reason: add a images

  6. #6
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537

    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.

  7. #7
    Join Date
    Apr 2005
    Posts
    4

    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

  8. #8
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    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.
    Best regards,
    Igor

  9. #9
    Join Date
    Apr 2005
    Posts
    4

    Unhappy 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

  10. #10
    Join Date
    Apr 2005
    Posts
    24

    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

  11. #11
    Join Date
    Apr 2005
    Posts
    4

    Question Re: any rebase.exe experts here?

    @Artt
    I´ve pe-explorer, but i´ve no idea how to use this for my particular task ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured