<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>C</anon>
    <anon>Linux</anon>
  </categories>
  <description>横取りというか覗き見る。リベンジ http://www.linux.or.jp/JM/html/LDP_man-pages/man2/ptrace.2.html 50行straceもどき - memologue Playing with ptrace, Part I | Linux Journal このあたりを参考に、write()しているところでデータを盗み見る。 処理の流れ アタッチして待つ システムコール(入る方)を待つ レジスタ読んで、システムコール番号ごとに中身を見る システムコール(出る方)を待つ 2に戻る ptrace()の使い方 ptrace( PTRACE_ATTACH, p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20091123%2Fptrace&quot; title=&quot;走行中のプロセスの標準出力を横取りする方法 - 揮発性のメモ２&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-11-23 00:00:00</published>
  <title>走行中のプロセスの標準出力を横取りする方法</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20091123/ptrace</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
