<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.9.1 (http://www.squarespace.com/) on Tue, 09 Feb 2010 10:53:58 GMT--><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rss="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:cc="http://web.resource.org/cc/"><rss:channel rdf:about="http://pentest.cryptocity.net/exploitation/"><rss:title>Exploitation</rss:title><rss:link>http://pentest.cryptocity.net/exploitation/</rss:link><rss:description></rss:description><dc:language>en-US</dc:language><dc:date>2010-02-09T10:53:58Z</dc:date><admin:generatorAgent rdf:resource="http://www.squarespace.com/">Squarespace Site Server v5.9.1 (http://www.squarespace.com/)</admin:generatorAgent><rss:items><rdf:Seq><rdf:li rdf:resource="http://pentest.cryptocity.net/exploitation/exploitation-102.html"/><rdf:li rdf:resource="http://pentest.cryptocity.net/exploitation/exploitation-101.html"/></rdf:Seq></rss:items></rss:channel><rss:item rdf:about="http://pentest.cryptocity.net/exploitation/exploitation-102.html"><rss:title>Exploitation 102</rss:title><rss:link>http://pentest.cryptocity.net/exploitation/exploitation-102.html</rss:link><dc:creator>Dan Guido</dc:creator><dc:date>2009-06-09T04:18:41Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<p>Exploit mitigations, shellcoding, and Metasploit with Dino Dai Zovi.</p>
<p><object width="640" height="360"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7496913&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7496913&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="360"></embed></object></p>
<ul>
<li><a href="http://pentest.cryptocity.net/files/exploitation/memory_corruption_101.pdf">Slides</a> (start at slide 25)</li>
</ul>
<p>As mentioned in the video, the homework for this week is to turn your exploit for homework.exe into a <a href="http://metasploit.com/framework/download/">Metasploit</a> Module. The best documentation for Metasploit is online and it is probably easiest to find a sample exploit and work from there. The Metasploit wikibook has a page on <a href="http://en.wikibooks.org/wiki/Metasploit/WritingWindowsExploit">writing Windows exploits</a> that is a good place to start. Keep in mind, though, that the exploit in the wikibook uses the send_cmd function, which is FTP specific. You will want to use "sock.put" instead.</p>
<p>For some good examples, look at the following modules included with Metasploit:</p>
<ul>
<li>modules/exploits/windows/lpd/niprint.rb</li>
<li>modules/exploits/windows/proxy/ccproxy_telnet_ping.rb</li>
</ul>
<p>As a final note, the instructors strongly suggest that you launch your Metasploit exploits from Linux, OSX, or <a href="http://www.cygwin.com/">Cygwin</a> on Windows (essentially, anything but the Windows installer).</p>
<h3>Reading Material</h3>
<ul>
<li><a href="http://www.hick.org/~mmiller/shellcode/win32/">A collection of win32 shellcode</a></li>
<li><a href="http://pentest.cryptocity.net/files/exploitation/winasm-1.0.1.pdf">Win32 Assembly Components by LSD</a></li>
<li><a href="http://pentest.cryptocity.net/files/exploitation/asmcodes-1.0.2.pdf">UNIX Assembly Codes Development for Vulnerabilities Illustration Purposes by LSD</a></li>
<li><a href="http://www-cse.ucsd.edu/~hovav/papers/s07.html">Return-Oriented Programming: Exploits Without Code Injection</a></li>
<li><a href="http://www.phrack.com/issues.html?issue=64&amp;id=6#article">Attacking the Core: Kernel Exploiting Notes</a></li>
<li>Offensive Security's <a href="http://www.offensive-security.com/metasploit-unleashed/">Metasploit Unleashed</a> open course</li>
</ul>
<p>If you passed this section with ease and understand most of the reading material above, you might want to try taking Immunity's <a href="http://www.immunitysec.com/services-cnop.shtml">Network Offense Professional</a> certification. Good luck!</p>]]></content:encoded></rss:item><rss:item rdf:about="http://pentest.cryptocity.net/exploitation/exploitation-101.html"><rss:title>Exploitation 101</rss:title><rss:link>http://pentest.cryptocity.net/exploitation/exploitation-101.html</rss:link><dc:creator>Dan Guido</dc:creator><dc:date>2009-06-09T04:01:43Z</dc:date><dc:subject></dc:subject><content:encoded><![CDATA[<p>Dino Dai Zovi's Memory Corruption 101. Performed completely off-the-cuff on Windows 2000.</p>
<p><object width="640" height="480"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5146345&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5146345&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="480"></embed></object></p>
<p><object width="640" height="480"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5160961&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5160961&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="480"></embed></object></p>
<p>&nbsp;</p>
<ul>
<li><a href="http://pentest.cryptocity.net/files/exploitation/memory_corruption_101.pdf">Slides</a></li>
</ul>
<p>&nbsp;</p>
<p>Your assignment is to write an exploit for homework.exe on Windows 2000 using the attached shellcode. The shellcode is provided as a Ruby string, but an exploit written in any language is acceptable (Perl, Python, C, etc.).</p>
<ul>
<li><a href="http://pentest.cryptocity.net/files/exploitation/homework.exe">homework.exe</a></li>
<li><a href="http://pentest.cryptocity.net/files/exploitation/shellcode.rb">shellcode.rb</a></li>
</ul>
<h3>Reading Material</h3>
<ul>
<li>The <a href="http://pentest.cryptocity.net/files/exploitation/demo.exe">demo.exe</a> binary and its <a href="http://pentest.cryptocity.net/files/exploitation/demo.c">source code</a></li>
<li><a href="http://www.snort.org/vrt/tools/awbo.html">Advanced Windows Buffer Overflows (AWBOs)</a></li>
<li><a href="http://www.snort.org/vrt/tools/awboprimer.html">Guide to the AWBOs</a></li>
<li><a href="http://pentest.cryptocity.net/files/exploitation/ms08-067wp.pdf">MS08-067 - Sourcefire Vulnerability Research Team Report</a></li>
<li><a href="http://www.corelan.be:8800/index.php/category/security/exploit-writing-tutorials/">Peter Van Eeckhoutte's Exploit Writing Tutorials</a></li>
</ul>
<p>A video I made that shows basic debugging for exploit development with a vulnerability in&nbsp;<a href="http://pentest.cryptocity.net/files/exploitation/WarFTP-1.65.zip">WarFTPD 1.65</a>.</p>
<p><object width="640" height="480"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5113617&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5113617&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="480"></embed></object></p>]]></content:encoded></rss:item></rdf:RDF>