<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inaz2</author_name>
  <author_url>https://blog.hatena.ne.jp/inaz2/</author_url>
  <blog_title>ももいろテクノロジー</blog_title>
  <blog_url>https://inaz2.hatenablog.com/</blog_url>
  <categories>
    <anon>Exploit</anon>
  </categories>
  <description>シェルコード実行中にシェルコードが置かれているアドレスを得る方法についてのメモ。 callを使う callを実行したとき、スタックにリターンアドレスとしてcallの次の命令のアドレスが積まれることを利用する。 /* geteip_call.s */ .intel_syntax noprefix .globl _start _start: jmp caller callee: jmp main caller: call callee main: pop ecx int3 アセンブルして対応するバイト列を確認してみる。 $ gcc -nostdlib geteip_call.s $ objdump…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaz2.hatenablog.com%2Fentry%2F2014%2F07%2F15%2F023104&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>2014-07-15 02:31:04</published>
  <title> シェルコードが置かれているアドレスを得る</title>
  <type>rich</type>
  <url>https://inaz2.hatenablog.com/entry/2014/07/15/023104</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
