
{"id":16423,"date":"2016-01-29T18:15:27","date_gmt":"2016-01-29T18:15:27","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16423"},"modified":"2016-01-29T18:15:27","modified_gmt":"2016-01-29T18:15:27","slug":"a-typical-hack-with-strace-command-which-traces-a-ping-command","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2016\/01\/29\/a-typical-hack-with-strace-command-which-traces-a-ping-command\/","title":{"rendered":"A typical hack with strace  command which traces a ping command"},"content":{"rendered":"<p><u>ABOUT strace<\/u><\/p>\n<pre>\nstrace is a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.\n<\/pre>\n<p><u>TYPICAL strace COMMAND RELATED<\/u><br \/>\n[bash]<br \/>\n$sudo strace -c -p `pidof ping`<br \/>\nstrace: Process 4792 attached<br \/>\n% time     seconds  usecs\/call     calls    errors syscall<br \/>\n&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n 43.34    0.001631         203         8           sendto<br \/>\n 24.79    0.000933         116         8         1 recvmsg<br \/>\n 16.40    0.000617          56        11           write<br \/>\n 13.13    0.000494          70         7           poll<br \/>\n  1.44    0.000054          54         1           restart_syscall<br \/>\n  0.90    0.000034          34         1         1 rt_sigreturn<br \/>\n&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n100.00    0.003763                    36         2 total<br \/>\n$<\/p>\n<p>[\/bash]<br \/>\nLINK<br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Strace\">https:\/\/en.wikipedia.org\/wiki\/Strace<\/a><br \/>\n<a href=\"https:\/\/www.tecmint.com\/strace-commands-for-troubleshooting-and-debugging-linux\/\">https:\/\/www.tecmint.com\/strace-commands-for-troubleshooting-and-debugging-linux\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT strace strace is a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace. TYPICAL strace &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2016\/01\/29\/a-typical-hack-with-strace-command-which-traces-a-ping-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A typical hack with strace  command which traces a ping command&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[1497],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16423"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=16423"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16423\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}