|
-
August 1st, 2002, 04:02 AM
#1
Junior Member
asm registers
Hey all, I am currently reading a great article on smashing the stack. The article can be found at http://www.phrack.com/phrack/49/P49-14
Anyways, as I am reading this, I realize that I don't know much about the assembly registers that are talked about. I have searched the net and found very convoluted definitions of registers. so I was wondering if anyone could BRIEFLY talk about the following registers as they pertain to x86 systems.
eax:
ecx:
edx:
esp:
ebp:
esi:
Any help on any of these would be great!
Thanks
-
August 1st, 2002, 05:13 AM
#2
Anyways, as I am reading this, I realize that I don't know much about the assembly registers that are talked about. I have searched the net and found very convoluted definitions of registers. so I was wondering if anyone could BRIEFLY talk about the following registers as they pertain to x86 systems.
Well basically these registers are used to store values. You can move date into just about any of these registers and use them for general purpose storage. There are some exceptions to this ie. some of the registers have special properties/uses and rules to go with them.
AX or EAX: This a general purpose register but it is also used automatically for accumulator (calculator) operations like multiplication/division.
BX or EBX: Also a general purpose register but it is also used for as a base offset into sections of memory. This lets you do some nifty things with video memory for example.
CX or CBX: Also a general purpose register but it is also used as a counter in loops and stuff.
DX or EDX: Similar to AX/EAX
SP or ESP: Stack Pointer - usually only used as the current offset into the stack.
BP or EBP: Base Pointer - mostly used as an offset into the stack inside procedures
OpenBSD - The proactively secure operating system.
-
August 1st, 2002, 12:50 PM
#3
Junior Member
smirc:
This is great information! Thank you so much for your help. Just curious, have you done any buffer overflow stuff?
-Scott
-
August 3rd, 2002, 03:32 AM
#4
Member
smartin, in http://www.antionline.com/showthread...hreadid=232596 u can find some links related to shellcode and buffer overflow.
ByE!
Groby
-
August 3rd, 2002, 04:31 PM
#5
Junior Member
-
August 5th, 2002, 12:50 AM
#6
This is great information! Thank you so much for your help. Just curious, have you done any buffer overflow stuff?
Yes
OpenBSD - The proactively secure operating system.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|