Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section .text
- .globl _start
- _start:
- jmp overdata
- name:.string "/bin/sh"
- arg1:.string "-c"
- arg2:.string "ls"
- overdata:
- leaq name(%rip), %rdi
- pushq $0
- pushq $arg2
- pushq $arg1
- pushq %rdi
- movq %rsp, %rsi
- movq $0, %rdx
- movq $59, %rax
- syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement