fork download
  1. section .text
  2.  
  3. global _start
  4.  
  5. _start:
  6.  
  7. mov eax, 4
  8. mov ebx, 1
  9. mov ecx, welmsg
  10. mov edx, len
  11. int 0x80
  12.  
  13. xor ecx, ecx
  14. xor edx, edx
  15. mov eax, 4
  16. mov ebx, 1
  17. mov ecx, namemsg
  18. mov edx, namemsglen
  19. int 0x80
  20.  
  21. mov eax, 3
  22. mov ebx, 0
  23. mov ecx, buffer
  24. mov edx, 16
  25. int 0x80
  26.  
  27. xor ecx, ecx
  28. xor edx, edx
  29.  
  30. mov eax, 4
  31. mov ebx, 1
  32. mov ecx, nameis
  33. mov edx, nameislen
  34. int 0x80
  35.  
  36. mov eax, 4
  37. mov ebx, 1
  38. mov ecx, buffer
  39. mov edx, 16
  40. int 0x80
  41.  
  42.  
  43.  
  44. mov eax, 1
  45. mov ebx, 0
  46. int 0x80
  47.  
  48. section .data
  49. welmsg db "Hello and welcome to this random app", 0x0a
  50. len equ $ - welmsg
  51. namemsg db "Please input your name: "
  52. namemsglen equ $-namemsg
  53. nameis db "Your name is: "
  54. nameislen equ $-nameis
  55.  
  56. section .bss
  57. buffer resb 16
Success #stdin #stdout 0.01s 5288KB
stdin
James
stdout
Hello and welcome to this random app
Please input your name: Your name is: James