From 20834dcc57537cd95260a4a22f5d91a027adfd35 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Thu, 10 Jul 2025 22:20:01 +0200 Subject: Add x86_64 asm Signed-off-by: Carlos Maiolino --- x86_64/jmp_havoc.s | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 x86_64/jmp_havoc.s (limited to 'x86_64/jmp_havoc.s') diff --git a/x86_64/jmp_havoc.s b/x86_64/jmp_havoc.s new file mode 100644 index 0000000..6dd734d --- /dev/null +++ b/x86_64/jmp_havoc.s @@ -0,0 +1,39 @@ +# Play around with jumps + +.section .text +.globl _start + +_start: + movq $25, %rax + jmp thelabel + +somewhere: + movq %rax, %rdi + jmp anotherlabel + +label1: + addq %rbx, %rax + movq $5, %rbx + jmp here + +labellabel: + syscall + +anotherlabel: + movq $60, %rax + jmp labellabel + +thelabel: + movq %rax, %rbx + jmp there + +here: + divq %rbx + jmp somewhere + +there: + addq $5, %rbx + jmp label1 + +anywhere: + jmp thelabel -- cgit v1.2.3