flat assembler
Message board for the users of flat assembler.

Index > Windows > Executing binary data from .data section

Author
Thread Post new topic Reply to topic
eskizo



Joined: 22 Nov 2005
Posts: 59
eskizo 26 Dec 2006, 21:10
Changing EIP to the 1st byte of .data section would make windows execute that buffer ? If not, how could I do that ?
Post 26 Dec 2006, 21:10
View user's profile Send private message Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
zhak 26 Dec 2006, 21:25
code in data section is almost always executed w/o any problems. it's one of the methods of code injection. just make a jmp to code in data section....
you also can set EXECUTABLE flag for data section if code is not executed by default
Post 26 Dec 2006, 21:25
View user's profile Send private message Reply with quote
ACP



Joined: 23 Sep 2006
Posts: 204
ACP 27 Dec 2006, 09:08
Please note that you can define ".data" section as:

section '.data' code readable executable

and store real data in other section. Section attributes are important - not the section name.
Post 27 Dec 2006, 09:08
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


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