Advertisement
Guest User

Tuinslak

a guest
Mar 28th, 2011
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.61 KB | None | 0 0
  1. ROOT
  2. ---
  3. gplugD ~ # strace ping 127.0.0.1 -c 1
  4. execve("/bin/ping", ["ping", "127.0.0.1", "-c", "1"], [/* 13 vars */]) = 0
  5. brk(0)                                  = 0x24000
  6. uname({sys="Linux", node="gplugD", ...}) = 0
  7. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  8. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000
  9. access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
  10. open("/etc/ld.so.cache", O_RDONLY)      = 3
  11. fstat64(3, {st_mode=S_IFREG|0644, st_size=25117, ...}) = 0
  12. mmap2(NULL, 25117, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40026000
  13. close(3)                                = 0
  14. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  15. open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
  16. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\4-\0\0004\0\0\0"..., 512) = 512
  17. fstat64(3, {st_mode=S_IFREG|0644, st_size=47212, ...}) = 0
  18. mmap2(NULL, 78548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4002d000
  19. mprotect(0x40039000, 28672, PROT_NONE)  = 0
  20. mmap2(0x40040000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb) = 0x40040000
  21. close(3)                                = 0
  22. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  23. open("/lib/libc.so.6", O_RDONLY)        = 3
  24. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\314V\1\0004\0\0\0"..., 512) = 512
  25. fstat64(3, {st_mode=S_IFREG|0755, st_size=1205684, ...}) = 0
  26. mmap2(NULL, 1242372, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40041000
  27. mprotect(0x40164000, 28672, PROT_NONE)  = 0
  28. mmap2(0x4016b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x122) = 0x4016b000
  29. mmap2(0x4016e000, 9476, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4016e000
  30. close(3)                                = 0
  31. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000
  32. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
  33. set_tls(0x4001e920, 0x4001f000, 0x4001eff8, 0x4001e920, 0x40025000) = 0
  34. mprotect(0x4016b000, 8192, PROT_READ)   = 0
  35. mprotect(0x40024000, 4096, PROT_READ)   = 0
  36. munmap(0x40026000, 25117)               = 0
  37. socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
  38. getuid32()                              = 0
  39. setuid32(0)                             = 0
  40. socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
  41. connect(4, {sa_family=AF_INET, sin_port=htons(1025), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
  42. getsockname(4, {sa_family=AF_INET, sin_port=htons(51261), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
  43. close(4)                                = 0
  44. setsockopt(3, SOL_RAW, ICMP_FILTER, ~(ICMP_ECHOREPLY|ICMP_DEST_UNREACH|ICMP_SOURCE_QUENCH|ICMP_REDIRECT|ICMP_TIME_EXCEEDED|ICMP_PARAMETERPROB), 4) = 0
  45. setsockopt(3, SOL_IP, IP_RECVERR, [1], 4) = 0
  46. setsockopt(3, SOL_SOCKET, SO_SNDBUF, [324], 4) = 0
  47. setsockopt(3, SOL_SOCKET, SO_RCVBUF, [65536], 4) = 0
  48. getsockopt(3, SOL_SOCKET, SO_RCVBUF, [131072], [4]) = 0
  49. brk(0)                                  = 0x24000
  50. brk(0x45000)                            = 0x45000
  51. fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
  52. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000
  53. write(1, "PING 127.0.0.1 (127.0.0.1) 56(84"..., 49PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
  54. ) = 49
  55. setsockopt(3, SOL_SOCKET, SO_TIMESTAMP, [1], 4) = 0
  56. setsockopt(3, SOL_SOCKET, SO_SNDTIMEO, "\1\0\0\0\0\0\0\0", 8) = 0
  57. setsockopt(3, SOL_SOCKET, SO_RCVTIMEO, "\1\0\0\0\0\0\0\0", 8) = 0
  58. getpid()                                = 7432
  59. rt_sigaction(SIGINT, {0xb830, [], SA_INTERRUPT|0x4000000}, NULL, 8) = 0
  60. rt_sigaction(SIGALRM, {0xb830, [], SA_INTERRUPT|0x4000000}, NULL, 8) = 0
  61. rt_sigaction(SIGQUIT, {0xb844, [], SA_INTERRUPT|0x4000000}, NULL, 8) = 0
  62. gettimeofday({1301340127, 339850}, NULL) = 0
  63. ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0
  64. ioctl(1, TIOCGWINSZ, {ws_row=39, ws_col=141, ws_xpixel=1128, ws_ypixel=663}) = 0
  65. gettimeofday({1301340127, 341942}, NULL) = 0
  66. gettimeofday({1301340127, 342505}, NULL) = 0
  67. sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.1")}, msg_iov(1)=[{"\10\0\221\214\35\10\0\1\337\337\220M\3519\5\0\10\t\n\v\f\r\16\17\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
  68. setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={10, 0}}, NULL) = 0
  69. recvmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.1")}, msg_iov(1)=[{"E\0\0T\177\275\0\0@\1\374\351\177\0\0\1\177\0\0\1\0\0\231\214\35\10\0\1\337\337\220M"..., 192}], msg_controllen=20, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=0x1d /* SCM_??? */, ...}, msg_flags=0}, 0) = 84
  70. write(1, "64 bytes from 127.0.0.1: icmp_re"..., 5664 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=1.09 ms
  71. ) = 56
  72. write(1, "\n", 1
  73. )                       = 1
  74. write(1, "--- 127.0.0.1 ping statistics --"..., 34--- 127.0.0.1 ping statistics ---
  75. ) = 34
  76. write(1, "1 packets transmitted, 1 receive"..., 601 packets transmitted, 1 received, 0% packet loss, time 2ms
  77. ) = 60
  78. write(1, "rtt min/avg/max/mdev = 1.090/1.0"..., 50rtt min/avg/max/mdev = 1.090/1.090/1.090/0.000 ms
  79. ) = 50
  80. exit_group(0)                           = ?
  81.  
  82.  
  83.  
  84.  
  85.  
  86. REGULAR USER
  87. ---
  88.  
  89.  
  90. yeri@gplugD ~ $ strace ping 127.0.0.1 -c 1
  91. execve("/bin/ping", ["ping", "127.0.0.1", "-c", "1"], [/* 16 vars */]) = 0
  92. brk(0)                                  = 0x24000
  93. fcntl64(0, F_GETFD)                     = 0
  94. fcntl64(1, F_GETFD)                     = 0
  95. fcntl64(2, F_GETFD)                     = 0
  96. access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
  97. uname({sys="Linux", node="gplugD", ...}) = 0
  98. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  99. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000
  100. access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
  101. open("/etc/ld.so.cache", O_RDONLY)      = 3
  102. fstat64(3, {st_mode=S_IFREG|0644, st_size=25117, ...}) = 0
  103. mmap2(NULL, 25117, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40026000
  104. close(3)                                = 0
  105. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  106. open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
  107. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\4-\0\0004\0\0\0"..., 512) = 512
  108. fstat64(3, {st_mode=S_IFREG|0644, st_size=47212, ...}) = 0
  109. mmap2(NULL, 78548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4002d000
  110. mprotect(0x40039000, 28672, PROT_NONE)  = 0
  111. mmap2(0x40040000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb) = 0x40040000
  112. close(3)                                = 0
  113. access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
  114. open("/lib/libc.so.6", O_RDONLY)        = 3
  115. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\314V\1\0004\0\0\0"..., 512) = 512
  116. fstat64(3, {st_mode=S_IFREG|0755, st_size=1205684, ...}) = 0
  117. mmap2(NULL, 1242372, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40041000
  118. mprotect(0x40164000, 28672, PROT_NONE)  = 0
  119. mmap2(0x4016b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x122) = 0x4016b000
  120. mmap2(0x4016e000, 9476, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4016e000
  121. close(3)                                = 0
  122. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000
  123. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
  124. set_tls(0x4001e920, 0x4001f000, 0x4001eff8, 0x4001e920, 0x40025000) = 0
  125. mprotect(0x4016b000, 8192, PROT_READ)   = 0
  126. mprotect(0x40024000, 4096, PROT_READ)   = 0
  127. munmap(0x40026000, 25117)               = 0
  128. socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = -1 EACCES (Permission denied)
  129. getuid32()                              = 1000
  130. setuid32(1000)                          = 0
  131. socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = -1 EACCES (Permission denied)
  132. dup(2)                                  = 3
  133. fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
  134. brk(0)                                  = 0x24000
  135. brk(0x45000)                            = 0x45000
  136. fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
  137. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000
  138. _llseek(3, 0, 0xbef0e158, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
  139. write(3, "socket: Permission denied\n", 26socket: Permission denied
  140. ) = 26
  141. close(3)                                = 0
  142. munmap(0x40020000, 4096)                = 0
  143. exit_group(2)                           = ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement