fork download
  1. BITS 32
  2.  
  3. section .text
  4. global _start
  5.  
  6. _start:
  7. jmp short two
  8. one:
  9. pop ebx
  10. xor eax, eax
  11. mov [ebx + 7], al
  12. mov [ebx + 8], ebp
  13. mov [ebx + 12], eax
  14. lea ecx, [ebp + 8]
  15. lea edx, [ebp + 12]
  16. mov al, 11
  17. int 0x80
  18. ; exit(0)
  19. ;mov al, 1
  20. ;xor ebx, ebx
  21. ;int 0x80
  22. two:
  23. call one
  24. db '/bin/shXAAAABBBB'
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:24:6: warning: character constant too long for its type
   db '/bin/shXAAAABBBB'
      ^
prog.cpp:1:1: error: 'BITS' does not name a type
 BITS 32
 ^
prog.cpp:18:9: error: expected constructor, destructor, or type conversion before '(' token
   ; exit(0)
         ^
prog.cpp:19:4: error: 'mov' does not name a type
   ;mov al, 1
    ^
prog.cpp:20:4: error: expected unqualified-id before 'xor' token
   ;xor ebx, ebx
    ^
prog.cpp:21:8: error: expected unqualified-id before numeric constant
   ;int 0x80
        ^
stdout
Standard output is empty