Question: Re-write helloWorld.asm below as well as compile & link it. Then debug the program to answer the following questions: 1. Find memory addresses contain the
Re-write "helloWorld.asm" below as well as compile & link it. Then debug the program to answer the following questions:
1. Find memory addresses contain the programs environment strings. Additionally, what memory address contains the programs arguments?
2. Debug the program and stop it immediately before the syscall for write, then find the current ESP, EBP, and EIP.
3. Where is the message located?
4. State the return value for the write syscall, and where it is located.
-----------------------------------------------------------------
helloWorld.asm
*******************
section .data
msg db "Hello World", 0xa, 0
len equ $-msg
section .text
global _start
_start:
mov eax, 0x04
mov ebx, 0x01
mov ecx, msg
mov dex, len
int 0x80
move eax, 0x01
mov ebx, 0x00
int 0x80
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
