flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
MinhHung 11 Jan 2011, 03:34
Code: format PE GUI entry start include 'win32a.inc' section '.text' code readable executable start: push 5 push 0 push 0 push _website push 0 push 0 call [ShellExecute] push 0 call [ExitProcess] _website db 'http://www.google.com',0 section '.idata' import data readable writeable library kernel,'kernel32.dll',\ shell,'shell32.dll' import kernel,ExitProcess,'ExitProcess' import shell,ShellExecute,'ShellExecuteA' if you want to use window Function 'include win32a.inc' or 'include win32ax.inc' |
|||
![]() |
|
Jesse Redick 11 Jan 2011, 03:44
MinhHung,
Thank you so much for the quick reply. That does work and thank you, but I was hoping to be able to get this to work without any includes. That is what I am shooting for ![]() |
|||
![]() |
|
MinhHung 11 Jan 2011, 03:59
Code: format PE GUI entry start section '.text' code readable executable start: push 5 push 0 push 0 push _website push 0 push 0 call [ShellExecute] push 0 call [ExitProcess] _website db 'http://www.google.com',0 section '.idata' import data readable writeable dd 0,0,0,RVA kernel,RVA kernel_table dd 0,0,0,RVA shell,RVA shell_table dd 0,0,0,0,0 kernel_table: ExitProcess dd RVA _ExitProcess dd 0 shell_table: ShellExecute dd RVA _ShellExecute dd 0 kernel db 'kernel32.dll',0 shell db 'shell32.DLL',0 _ExitProcess dw 0 db 'ExitProcess',0 _ShellExecute dw 0 db 'ShellExecuteA' if you don't want include anything |
|||
![]() |
|
Jesse Redick 11 Jan 2011, 04:07
MinhHung,
Oh WOW! Thank you so very very much! You are a true life saver! That works beautifuly! I can't thank you enough!! ![]() You are awesome! |
|||
![]() |
|
edfed 11 Jan 2011, 11:30
thanks minhung, it is an interresting snippet.
![]() what does it look like exactlly with invoke? [edit] found, it looks like this. Code: format PE GUI entry start include 'win32a.inc' section '.text' code readable executable start: invoke ShellExecute,0,0,website,0,0,5 invoke ExitProcess,0 section '.data' data readable writeable website db 'http://board.flatassembler.net',0 section '.idata' import data readable writeable library kernel,'kernel32.dll',\ shell,'shell32.dll' import kernel,ExitProcess,'ExitProcess' import shell,ShellExecute,'ShellExecuteA' and for sure, it will be part of the book. bacause it is really good for educational purpose. the proof is that i understand. only problem is RVA, even if i read a lot baout RVA, i don't really understand what it means, and how it is behind. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.