Do you really need to have the code behind the jmp table in the same section?
If so, this is something I never tried. Still a couple of possible pointers :
All entries in the import redirect table are created like you would use EXTERN variables in your code. the linker automatically creates an entry in the table that 'links' to some lib you added to the linker. So I guess that is the way to go if you want to have extra code there. Maybe one redirection jump from there to your code is enough?
On the other hand, if you settle with modifying your app at runtime, there are possibilities to hack up the import table. You could for example have your codepiece encoded in whatever section, and have some code executed at startup that decodes it and injects it after the import redirect table...
Some good starter reading for that : http://www.codeproject.com/KB/system/inject2it.aspx
If you do find a clean way to do this without messing after linking, I'm interested to know how to do it _________________ Ignorance is bliss, knowledge is power
Nice explanation stingduk, I forgot all about your precious tool!
Detten WHERE ARE YOU you Seem to be adept at doing a disaapearing Act
I visit Efnet #biw now and then, but not daily
I can be reached through mail : detten (at nospam) gmail (dot) com
Will bring the shell server back up one of these days aswell. _________________ Ignorance is bliss, knowledge is power
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum