<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lirlia</author_name>
  <author_url>https://blog.hatena.ne.jp/lirlia/</author_url>
  <blog_title>フラミナル</blog_title>
  <blog_url>https://blog.framinal.life/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>セキュリティ</anon>
  </categories>
  <description>非常に限定的なテクニックです。 攻撃を受けたサーバーにて悪いプロセスが起動されることがあります。 プロセスを実行するためには実行元のファイルが必要ですが、Linuxでは一度プロセスを起動してしまえば実ファイルは削除しても問題ありません。そのため攻撃者はプロセスを起動した後に実行元ファイルを削除してしまいます。 これを何とかして復元できないか？というのが今回のテクニックです。 プロセスを起動してファイルを削除する 削除されたファイルをプロセスから復元する プロセスを起動してファイルを削除する sleepをするtest.shを用意してみます。 blog [gh-pages]$ cat test.s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.framinal.life%2Fentry%2F2017%2F10%2F26%2F074338&quot; title=&quot;【Linux】削除されたファイルをプロセスから復元するには/proc/[PID]/exeを使おう - フラミナル&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>https://farm5.staticflickr.com/4078/4775107201_4bdefccce9.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-26 07:43:38</published>
  <title>【Linux】削除されたファイルをプロセスから復元するには/proc/[PID]/exeを使おう</title>
  <type>rich</type>
  <url>https://blog.framinal.life/entry/2017/10/26/074338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
