Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Das ist ein Programm mit dem man die Registerzustände erfahren kann
- global main
- extern printf
- section .text
- main:
- push ss
- push gs
- push fs
- push es
- push ds
- push cs
- pushf
- call getEIP
- push edi
- push esi
- push esp
- push ebp
- push edx
- push ecx
- push ebx
- push eax
- push debugReg
- call printf
- add esp, 56
- mov eax, 1
- mov ebx, 0
- int 80h
- getEIP:
- push eax
- mov eax, [esp-4]
- push eax
- mov eax, [esp-4]
- ret
- section .data
- debugReg db "EAX: %08X EBX: %08X",10, " ECX: %08X EDX: %08X", 10, "EBP: %08X ESP: %08X", 10, "ESI: %08X EDI: %08X", 10, "EIP: %08X EFLAGS: %08X", 10, "CS: %08X DS: %08X ES: %08X FS: %08X", 10, "GS: %08X SS: %08X",10,0
Advertisement
Add Comment
Please, Sign In to add comment