Advertisement
MichaelPetch

shellcode1

Oct 18th, 2020 (edited)
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. .section .text
  2. .globl _start
  3. _start:
  4. jmp overdata
  5. name:.string "/bin/sh"
  6. arg1:.string "-c"
  7. arg2:.string "ls"
  8.  
  9. overdata:
  10. leaq name(%rip), %rdi
  11.  
  12. pushq $0
  13. pushq $arg2
  14. pushq $arg1
  15. pushq %rdi
  16. movq %rsp, %rsi
  17.  
  18. movq $0, %rdx
  19.  
  20. movq $59, %rax
  21. syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement