- Install
gdb - Install GDB PEDA
- Install
nasm - Create a makefile:
%: %.asm nasm -f elf64 $< && ld -s -o $@ [email protected] all: $(patsubst %.asm,%,$(wildcard *.asm)) clean: $(patsubst %.asm,%,$(wildcard *.asm)) rm $^ rm *.o
- Have a tab with https://www.felixcloutier.com/x86/ handy.
- Create a skeleton asm file (e.g.
0x00.asm) and write some assembly:section .text global _start _start: ; your asm code here
make && gdb ./0x00startito break at first instruction in executable,sito step instruction. Update registers withset(e.g.set $rax=3). Loop 6.
Last active
January 29, 2024 17:51
-
-
Save charles-l/5455a3caba992b02187225a8ac749771 to your computer and use it in GitHub Desktop.
my xchg rax,rax getting started guide (https://www.xorpd.net/pages/xchg_rax/snip_00.html)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment