flat assembler
Message board for the users of flat assembler.
Index
> Windows > Why MessageBoxA don't work.. |
Author |
|
asm0day_ru 07 Jan 2015, 15:26
attach
|
|||||||||||
07 Jan 2015, 15:26 |
|
Overflowz 07 Jan 2015, 18:25
because you have hardcoded this?
Code: mb db 6ah,?,6ah,?,6ah,?,6ah,?,0e8h,0bh,0edh,7fh,76h,0c3h you don't really pass valid pointer to MessageBox API. |
|||
07 Jan 2015, 18:25 |
|
AsmGuru62 08 Jan 2015, 16:05
I tried his code in OllyDbg.
Allocation is ok, but he hardcoded the address of (presumably) MessageBoxA - these last bytes at 'mb' vector. They point to inaccessible memory. |
|||
08 Jan 2015, 16:05 |
|
baldr 08 Jan 2015, 17:02
AsmGuru62,
Guess why? It seems to me that he's not understanding what that code's doing (allocation of one byte is just marvelous). |
|||
08 Jan 2015, 17:02 |
|
AsmGuru62 08 Jan 2015, 17:53
If he knows API - he kows that allocating 1 byte is actually allocating a page of memory.
|
|||
08 Jan 2015, 17:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.