flat assembler
Message board for the users of flat assembler.

Index > Windows > Export table tweaks

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20339
Location: In your JS exploiting you and your system
revolution 27 Mar 2008, 21:53
itsnobody wrote:
... I put the export names in alphabetical order and it worked

I don't know if FASM automatically does this now...
By default, the macros in the fasm download will sort the export strings for you
Post 27 Mar 2008, 21:53
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 27 Mar 2008, 23:53
asmfan: have you checked whether they're automagically sorted in the output PE file?
Post 27 Mar 2008, 23:53
View user's profile Send private message Visit poster's website Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 28 Mar 2008, 06:06
Of course yes! Binary editors show that fasm doesn't sort anything in export, only in import.
Post 28 Mar 2008, 06:06
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 28 Mar 2008, 06:20
Can you post a .zip here including both source and executables for your test?
Post 28 Mar 2008, 06:20
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20339
Location: In your JS exploiting you and your system
revolution 28 Mar 2008, 06:27
asmfan wrote:
Of course yes! Binary editors show that fasm doesn't sort anything in export, only in import.
If you used the standard 'export' macro then they are sorted. I suspect that your exports are sorted and you have probably looked at the strings and thought that they are unsorted. You have to remember that the pointers are sorted, not the names.

And quite the opposite of what you say actually. The imports are not automatically sorted, they simply follow the order given in the include files.
Post 28 Mar 2008, 06:27
View user's profile Send private message Visit poster's website Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 28 Mar 2008, 07:14
revolution Yes, that's the key! Pointers are sorted while strings not and stored as is (as declared). fasm sorts strings internally and build export address table sorted. The tested dll was perfectly made by fasm.
Now i'm too lazy to build manual imperfect export to check how it works Wink
Post 28 Mar 2008, 07:14
View user's profile Send private message Reply with quote
Pinecone_



Joined: 28 Apr 2008
Posts: 180
Pinecone_ 02 Oct 2008, 01:16
I was writing export sections manually a few months ago on XP SP2, was having problems until i sorted them.
Post 02 Oct 2008, 01:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.