flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
kohlrak
I thought of something and wondered if it were possible. How would one import a DLL into the program compile time (rather than run time) if it's already comipled?
|
|||
![]() |
|
vid
you can create a DLL loader, append DLL as data, and pass it's address to loader that will load it when exe runs.
next time think about better thread name please ![]() |
|||
![]() |
|
vid
don't forget to load DLL not byte-to-byte same as in file, but as loader does (section align 4096, instead of 512 in file). Then just look through DLL exports, and you can find functions that interest you
|
|||
![]() |
|
kohlrak
To be honest i really don't know where to start.
|
|||
![]() |
|
vid
start by reading about PE format, and maybe try writing utility that will dump contents of PE headers, sections, tables etc... That will give you knowledge of PE format you need to manually load DLL
http://en.wikibooks.org/wiki/Reverse_Engineering/PE |
|||
![]() |
|
r22
Interesting concept, but can you give an example of how this would be useful?
|
|||
![]() |
|
vid
when you want to add code to already existing binary for some reason. For example i did this in copy protector
|
|||
![]() |
|
kohlrak
Let's say you want to use fmod (for example) in a program but you don't want to go through all the rigamaroo of an installer file.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.