SHARE
TWEET

https_dns_proxy strace

ryzhov_al Jan 12th, 2017 69 in 24 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /opt/tmp # strace /opt/sbin/https_dns_proxy -v
  2. execve("/opt/sbin/https_dns_proxy", ["/opt/sbin/https_dns_proxy", "-v"], [/* 20 vars */]) = 0
  3. readlinkat(AT_FDCWD, "/proc/self/exe", "/opt/sbin/https_dns_proxy", 4096) = 25
  4. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77926000
  5. stat("/opt/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=1192, ...}) = 0
  6. open("/opt/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
  7. mmap(NULL, 1192, PROT_READ, MAP_SHARED, 3, 0) = 0x77925000
  8. close(3)                                = 0
  9. open("/opt/lib/libcares.so.2", O_RDONLY) = 3
  10. fstat(3, {st_mode=S_IFREG|0755, st_size=73524, ...}) = 0
  11. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  12. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\220\24\0\0004\0\0\0"..., 4096) = 4096
  13. mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x778f0000
  14. mmap(0x778f0000, 67668, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x778f0000
  15. mmap(0x77910000, 2760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10000) = 0x77910000
  16. close(3)                                = 0
  17. munmap(0x77924000, 4096)                = 0
  18. open("/opt/lib/libcurl.so.4", O_RDONLY) = 3
  19. fstat(3, {st_mode=S_IFREG|0755, st_size=339924, ...}) = 0
  20. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  21. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0000;\0\0004\0\0\0"..., 4096) = 4096
  22. mmap(NULL, 405504, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7788d000
  23. mmap(0x7788d000, 333896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7788d000
  24. mmap(0x778ee000, 6812, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x51000) = 0x778ee000
  25. close(3)                                = 0
  26. munmap(0x77924000, 4096)                = 0
  27. open("/opt/lib/libev.so.4", O_RDONLY)   = 3
  28. fstat(3, {st_mode=S_IFREG|0755, st_size=64432, ...}) = 0
  29. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  30. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\20\32\0\0004\0\0\0"..., 4096) = 4096
  31. mmap(NULL, 126976, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7786e000
  32. mmap(0x7786e000, 56452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7786e000
  33. mmap(0x7788c000, 548, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x7788c000
  34. close(3)                                = 0
  35. munmap(0x77924000, 4096)                = 0
  36. open("/opt/lib/libresolv.so.0", O_RDONLY) = 3
  37. fstat(3, {st_mode=S_IFREG|0755, st_size=1844, ...}) = 0
  38. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  39. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0P\3\0\0004\0\0\0"..., 4096) = 1844
  40. mmap(NULL, 69632, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7785d000
  41. mmap(0x7785d000, 884, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7785d000
  42. mmap(0x7786d000, 904, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7786d000
  43. close(3)                                = 0
  44. munmap(0x77924000, 4096)                = 0
  45. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  46. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  47. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  48. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\300\265\0\0004\0\0\0"..., 4096) = 4096
  49. mmap(NULL, 749568, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x777a6000
  50. mmap(0x777a6000, 656352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x777a6000
  51. mmap(0x77856000, 7836, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa0000) = 0x77856000
  52. mmap(0x77858000, 17500, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77858000
  53. close(3)                                = 0
  54. munmap(0x77924000, 4096)                = 0
  55. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  56. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  57. close(3)                                = 0
  58. open("/opt/lib/libssl.so.1.0.0", O_RDONLY) = 3
  59. fstat(3, {st_mode=S_IFREG|0644, st_size=359880, ...}) = 0
  60. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  61. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0@\301\0\0004\0\0\0"..., 4096) = 4096
  62. mmap(NULL, 405504, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77743000
  63. mmap(0x77743000, 320044, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77743000
  64. mmap(0x777a1000, 17256, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4e000) = 0x777a1000
  65. close(3)                                = 0
  66. munmap(0x77924000, 4096)                = 0
  67. open("/opt/lib/libcrypto.so.1.0.0", O_RDONLY) = 3
  68. fstat(3, {st_mode=S_IFREG|0644, st_size=1634040, ...}) = 0
  69. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  70. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\200@\3\0004\0\0\0"..., 4096) = 4096
  71. mmap(NULL, 1556480, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x775c7000
  72. mmap(0x775c7000, 1413900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x775c7000
  73. mmap(0x77730000, 71924, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x159000) = 0x77730000
  74. mmap(0x77742000, 2656, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77742000
  75. close(3)                                = 0
  76. munmap(0x77924000, 4096)                = 0
  77. open("/opt/lib/libz.so.1", O_RDONLY)    = 3
  78. fstat(3, {st_mode=S_IFREG|0755, st_size=86620, ...}) = 0
  79. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  80. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\300\22\0\0004\0\0\0"..., 4096) = 4096
  81. mmap(NULL, 147456, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x775a3000
  82. mmap(0x775a3000, 80872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x775a3000
  83. mmap(0x775c6000, 3592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13000) = 0x775c6000
  84. close(3)                                = 0
  85. munmap(0x77924000, 4096)                = 0
  86. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  87. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  88. close(3)                                = 0
  89. open("/opt/lib/libm.so.0", O_RDONLY)    = 3
  90. fstat(3, {st_mode=S_IFREG|0755, st_size=103328, ...}) = 0
  91. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  92. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\300\26\0\0004\0\0\0"..., 4096) = 4096
  93. mmap(NULL, 163840, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7757b000
  94. mmap(0x7757b000, 96820, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x7757b000
  95. mmap(0x775a2000, 3088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x17000) = 0x775a2000
  96. close(3)                                = 0
  97. munmap(0x77924000, 4096)                = 0
  98. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  99. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  100. close(3)                                = 0
  101. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  102. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  103. close(3)                                = 0
  104. stat("/opt/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=31868, ...}) = 0
  105. open("/opt/lib/libcrypto.so.1.0.0", O_RDONLY) = 3
  106. fstat(3, {st_mode=S_IFREG|0644, st_size=1634040, ...}) = 0
  107. close(3)                                = 0
  108. open("/opt/lib/libdl.so.0", O_RDONLY)   = 3
  109. fstat(3, {st_mode=S_IFREG|0755, st_size=13948, ...}) = 0
  110. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77924000
  111. read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0 \v\0\0004\0\0\0"..., 4096) = 4096
  112. mmap(NULL, 81920, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77567000
  113. mmap(0x77567000, 9064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77567000
  114. mmap(0x77579000, 4308, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x77579000
  115. close(3)                                = 0
  116. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77923000
  117. munmap(0x77924000, 4096)                = 0
  118. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  119. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  120. close(3)                                = 0
  121. open("/opt/lib/libdl.so.0", O_RDONLY)   = 3
  122. fstat(3, {st_mode=S_IFREG|0755, st_size=13948, ...}) = 0
  123. close(3)                                = 0
  124. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  125. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  126. close(3)                                = 0
  127. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  128. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  129. close(3)                                = 0
  130. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  131. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  132. close(3)                                = 0
  133. open("/opt/lib/libc.so.0", O_RDONLY)    = 3
  134. fstat(3, {st_mode=S_IFREG|0755, st_size=714824, ...}) = 0
  135. close(3)                                = 0
  136. munmap(0x77925000, 1192)                = 0
  137. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED, -1, 0) = 0x77925000
  138. set_thread_area(0x7792c460)             = 0
  139. mprotect(0x77856000, 4096, PROT_READ)   = 0
  140. mprotect(0x77927000, 4096, PROT_READ)   = 0
  141. mprotect(0x77579000, 4096, PROT_READ)   = 0
  142. ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
  143. ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
  144. fcntl(1, F_GETFL)                       = 0x2 (flags O_RDWR)
  145. brk(NULL)                               = 0x762000
  146. brk(0x763000)                           = 0x763000
  147. fcntl(1, F_SETFL, O_RDONLY|O_APPEND)    = 0
  148. ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
  149. brk(0x764000)                           = 0x764000
  150. open("/opt/etc/ssl/openssl.cnf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  151. stat("/opt/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=1192, ...}) = 0
  152. open("/opt/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
  153. mmap(NULL, 1192, PROT_READ, MAP_SHARED, 3, 0) = 0x77924000
  154. close(3)                                = 0
  155. open("/opt/lib/libz.so", O_RDONLY)      = 3
  156. fstat(3, {st_mode=S_IFREG|0755, st_size=86620, ...}) = 0
  157. close(3)                                = 0
  158. brk(0x765000)                           = 0x765000
  159. brk(0x766000)                           = 0x766000
  160. socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP) = 3
  161. close(3)                                = 0
  162. clock_gettime(CLOCK_MONOTONIC, {1217601, 845900949}) = 0
  163. getuid()                                = 0
  164. geteuid()                               = 0
  165. getgid()                                = 0
  166. getegid()                               = 0
  167. gettimeofday({1484215510, 759762}, NULL) = 0
  168. clock_gettime(CLOCK_MONOTONIC, {1217601, 846661511}) = 0
  169. epoll_create(256)                       = 3
  170. fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
  171. eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK)   = 4
  172. fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
  173. fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK)  = 0
  174. rt_sigaction(SIGCHLD, {0x7787310c, ~[RTMIN RT_1], SA_RESTART}, NULL, 16) = 0
  175. brk(0x767000)                           = 0x767000
  176. brk(0x768000)                           = 0x768000
  177. brk(0x769000)                           = 0x769000
  178. brk(0x76a000)                           = 0x76a000
  179. brk(0x76b000)                           = 0x76b000
  180. brk(0x76c000)                           = 0x76c000
  181. brk(0x76d000)                           = 0x76d000
  182. brk(0x776000)                           = 0x776000
  183. socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 5
  184. bind(5, {sa_family=AF_INET, sin_port=htons(5053), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
  185. rt_sigaction(SIGPIPE, {0x7787310c, ~[RTMIN RT_1], SA_RESTART}, NULL, 16) = 0
  186. rt_sigaction(SIGINT, {0x7787310c, ~[RTMIN RT_1], SA_RESTART}, NULL, 16) = 0
  187. brk(0x77f000)                           = 0x77f000
  188. clock_gettime(CLOCK_MONOTONIC, {1217601, 852184970}) = 0
  189. open("/etc/resolv.conf", O_RDONLY|O_LARGEFILE) = 6
  190. ioctl(6, TCGETS, 0x7fa7b328)            = -1 ENOTTY (Inappropriate ioctl for device)
  191. brk(0x780000)                           = 0x780000
  192. read(6, "nameserver 127.0.0.1\nnameserver "..., 4096) = 71
  193. read(6, "", 4096)                       = 0
  194. close(6)                                = 0
  195. open("/etc/nsswitch.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  196. open("/etc/host.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  197. open("/etc/svc.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  198. uname({sysname="Linux", nodename="RT-N14U", ...}) = 0
  199. epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN, {u32=4, u64=4294967300}}) = 0
  200. epoll_ctl(3, EPOLL_CTL_ADD, 5, {EPOLLIN, {u32=5, u64=4294967301}}) = 0
  201. clock_gettime(CLOCK_MONOTONIC, {1217601, 854789908}) = 0
  202. epoll_wait(3, [], 64, 1)                = 0
  203. clock_gettime(CLOCK_MONOTONIC, {1217601, 857943049}) = 0
  204. open("/etc/hosts", O_RDONLY|O_LARGEFILE) = 6
  205. ioctl(6, TCGETS, 0x7fa7b2d8)            = -1 ENOTTY (Inappropriate ioctl for device)
  206. read(6, "127.0.0.1 localhost.localdomain "..., 4096) = 175
  207. read(6, "", 4096)                       = 0
  208. close(6)                                = 0
  209. clock_gettime(CLOCK_MONOTONIC, {1217601, 861119587}) = 0
  210. socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
  211. fcntl64(6, F_GETFL)                     = 0x2 (flags O_RDWR)
  212. fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
  213. fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
  214. connect(6, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, 16) = 0
  215. send(6, "'\206\1\0\0\1\0\0\0\0\0\0\3dns\6google\3com\0\0\1\0\1", 32, MSG_NOSIGNAL) = 32
  216. epoll_ctl(3, EPOLL_CTL_ADD, 6, {EPOLLIN, {u32=6, u64=4294967302}}) = 0
  217. clock_gettime(CLOCK_MONOTONIC, {1217601, 862787325}) = 0
  218. epoll_wait(3, [{EPOLLIN, {u32=6, u64=4294967302}}], 64, 59743) = 1
  219. clock_gettime(CLOCK_MONOTONIC, {1217601, 890032632}) = 0
  220. clock_gettime(CLOCK_MONOTONIC, {1217601, 890190384}) = 0
  221. recvfrom(6, "'\206\201\200\0\1\0\20\0\0\0\0\3dns\6google\3com\0\0\1\0\1"..., 4097, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("8.8.8.8")}, [16]) = 288
  222. close(6)                                = 0
  223. clock_gettime(CLOCK_MONOTONIC, {1217601, 891033384}) = 0
  224. epoll_wait(3,
RAW Paste Data
Top