<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8126082847152361183</id><updated>2011-04-22T01:32:57.748+02:00</updated><category term='N800'/><category term='metasploit'/><category term='scapy'/><title type='text'>Pierre</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.pierre.droids-corp.org/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://blog.pierre.droids-corp.org/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pierre</name><uri>http://www.blogger.com/profile/08942940816209614597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8126082847152361183.post-8279757506428100394</id><published>2008-01-13T23:09:00.000+02:00</published><updated>2008-01-14T00:09:09.563+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scapy'/><title type='text'>Scapy: using p0f</title><content type='html'>I've recently released a not-yet-applied &lt;a href="http://trac.secdev.org/scapy/ticket/76"&gt;patch&lt;/a&gt; for &lt;a href="http://www.secdev.org/projects/scapy/"&gt;scapy&lt;/a&gt; which improves the use of &lt;a href="http://lcamtuf.coredump.cx/p0f.shtml"&gt;p0f&lt;/a&gt; functionalities.&lt;br /&gt;&lt;br /&gt;First, p0f now comes with databases designed for other TCP packets than only SYN packets (one database for SYN/ACK packets, one for RST and RST/ACK packets, and the last one for "stray" ACK packets). Those new databases are slightly different than the original one, and an effort was required to enable scapy's p0f functions to use them.&lt;br /&gt;&lt;br /&gt;Now, scapy is able to deal with any kind of TCP packets :&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;&gt;&gt;&gt; sniff(prn=prnp0f, filter='tcp')&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;192.168.0.97:33721 - Linux 2.6 (newer, 2) (up: 128 hrs)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;-&gt; 147.210.19.96:www &lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;(S)&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; (distance 0)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;147.210.19.96:www - UNKNOWN [49980:52:1:64:N,N,T,M1460,N,W0,N,N,S:AT:?:?] (up: 946 hrs)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;-&gt; 192.168.0.97:33721 &lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;(SA)&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;The (S) and (SA) denote the database used (regular p0f.fp for S, and p0fa.fp for SA).&lt;br /&gt;&lt;br /&gt;While working on this I've had two ideas of cool features to add, and I've added them.&lt;br /&gt;&lt;br /&gt;The first one is a function to get signatures for the local system. This is done by sniffing packets generated by the use of socket functions, in a function I called p0f_getlocalsigs(). For now, I only use the loopback interface, which causes to generate different signatures than the one generated on regular network interfaces. I'm thinking to add other tests using other interfaces, but nothing is done for now.&lt;br /&gt;&lt;br /&gt;Knowing that scapy is not only a sniffing tool, but is also great to forge, manipulate and send packets, the second one is a function that modifies a packet so that it matches a given signature. This work is done by a function called p0f_impersonate:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;&gt;&gt;&gt; pkt = p0f_impersonate(IP(dst='www.google.fr')/TCP(sport=12345, dport=80, flags='S'), osgenre='Linux')&lt;br /&gt;&gt;&gt;&gt; prnp0f(pkt)&lt;br /&gt;192.168.0.97:12345 - Linux 2.4 (Google crawlbot) (up: 7326 hrs)&lt;br /&gt;-&gt; Net('www.google.fr'):www (S) (distance 0)&lt;br /&gt;&gt;&gt;&gt; send(pkt)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;A (real) p0f running in another window shows:&lt;br /&gt;&lt;blockquote style="font-family: courier new;"&gt;# p0f&lt;br /&gt;p0f - passive os fingerprinting utility, version 2.0.8&lt;br /&gt;(C) M. Zalewski &lt;lcamtuf@dione.cc&gt;, W. Stearns &lt;wstearns@pobox.com&gt;&lt;br /&gt;p0f: listening (SYN) on 'eth1', 262 sigs (14 generic, cksum 0F1F5CA2), rule: 'all'.&lt;br /&gt;192.168.0.97:12345 - Linux 2.4 (Google crawlbot) (up: 7326 hrs)&lt;br /&gt;-&gt; 209.85.135.99:80 (distance 0, link: (Google/AOL))&lt;br /&gt;&lt;/wstearns@pobox.com&gt;&lt;/lcamtuf@dione.cc&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8126082847152361183-8279757506428100394?l=blog.pierre.droids-corp.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.pierre.droids-corp.org/feeds/8279757506428100394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8126082847152361183&amp;postID=8279757506428100394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/8279757506428100394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/8279757506428100394'/><link rel='alternate' type='text/html' href='http://blog.pierre.droids-corp.org/2008/01/scapy-using-p0f.html' title='Scapy: using p0f'/><author><name>Pierre</name><uri>http://www.blogger.com/profile/08942940816209614597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8126082847152361183.post-3064287833969138969</id><published>2007-04-11T19:28:00.000+02:00</published><updated>2007-04-11T19:29:11.837+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scapy'/><title type='text'>Scapext : Scapy Extended</title><content type='html'>&lt;a href="http://www.secdev.org/projects/scapy/"&gt;Scapy&lt;/a&gt; is a great tool for network packets manipulation (sniff, dissect, create, send,...).&lt;br /&gt;&lt;br /&gt;When I use this tool, I lack some features. So I have written an extension (called Scapext) that, for now, includes :&lt;br /&gt;&lt;ul&gt;&lt;li&gt;GeoIP support (through Maxmind GeoIP &lt;a href="http://www.maxmind.com/download/geoip/api/python/"&gt;Python API&lt;/a&gt;). This is faster than the method used in Scapy for now, and easier.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PFLog pcap type (used by the OpenBSD &lt;a href="http://www.openbsd.org/faq/pf/"&gt;Packet Filter&lt;/a&gt; to log packets ; this allows PF to store valuable information on what happened to the packets logged).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Early SunRPC support with state handling.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Interested ? See &lt;a href="http://pierre.droids-corp.org/scapy/"&gt;my page&lt;/a&gt; about Scapy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8126082847152361183-3064287833969138969?l=blog.pierre.droids-corp.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.pierre.droids-corp.org/feeds/3064287833969138969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8126082847152361183&amp;postID=3064287833969138969' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/3064287833969138969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/3064287833969138969'/><link rel='alternate' type='text/html' href='http://blog.pierre.droids-corp.org/2007/04/scapext-scapy-extended.html' title='Scapext : Scapy Extended'/><author><name>Pierre</name><uri>http://www.blogger.com/profile/08942940816209614597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8126082847152361183.post-6456386239889585789</id><published>2007-04-11T13:54:00.000+02:00</published><updated>2007-04-11T14:50:30.614+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='N800'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><title type='text'>Metasploit Automated Exploitation on N800</title><content type='html'>As suggested by &lt;a href="http://pierre-droids.blogspot.com/2007/04/msfweb-on-n800.html#comment-9053968639604255120"&gt;spaceaquarium&lt;/a&gt;, I've tried to get Metasploit &lt;a href="http://blog.metasploit.com/2006/09/metasploit-30-automated-exploitation.html"&gt;Automated Exploitation&lt;/a&gt; (one of the killer features of Metasploit Framework 3) working on my N800. And that's easy.&lt;br /&gt;&lt;br /&gt;You need Ruby and RubyGems, then install ActiveRecord with gem (for these steps, see my posts about  &lt;a href="http://pierre-droids.blogspot.com/2007/04/n800-with-scapy-and-metasploit.html"&gt;Metasploit Framework&lt;/a&gt; and &lt;a href="http://pierre-droids.blogspot.com/2007/04/msfweb-on-n800.html"&gt;msfweb&lt;/a&gt; on N800). Now, install &lt;a href="http://rubyforge.org/projects/sqlite-ruby/"&gt;sqlite3-ruby&lt;/a&gt; (you may use &lt;a href="http://pierre.droids-corp.org/maemo/"&gt;my package&lt;/a&gt; for that).&lt;br /&gt;&lt;br /&gt;Last but not least... you need &lt;a href="http://www.insecure.org/nmap/"&gt;Nmap&lt;/a&gt;. You can use this &lt;a href="http://www.mulliner.org/nokia770/"&gt;repository&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;UPDATE : you can also use &lt;a href="http://pierre.droids-corp.org/maemo/"&gt;my package&lt;/a&gt; for Nmap, as it's the latest stable version.&lt;br /&gt;&lt;br /&gt;Now, run msfconsole, then :&lt;br /&gt;&lt;blockquote&gt;msf &amp;gt; load db_sqlite3&lt;br /&gt;msf &amp;gt; db_autopwn&lt;br /&gt;[*] Usage: db_autopwn [options]&lt;br /&gt;    [...]&lt;br /&gt;&lt;br /&gt;msf &amp;gt; db_nmap -p 22,445 [TARGET]&lt;br /&gt;&lt;br /&gt;Starting Nmap 3.95 ( http://www.insecure.org/nmap/ ) at 2007-04-11 13:52&lt;br /&gt;    [...]&lt;br /&gt;Nmap finished: [...]&lt;br /&gt;msf &amp;gt; db_autopwn -p -t&lt;br /&gt;[*] Analysis completed in [...]&lt;br /&gt;[...]&lt;/blockquote&gt;&lt;br /&gt;Nice ! More about this feature &lt;a href="http://blog.metasploit.com/2006/09/metasploit-30-automated-exploitation.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8126082847152361183-6456386239889585789?l=blog.pierre.droids-corp.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.pierre.droids-corp.org/feeds/6456386239889585789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8126082847152361183&amp;postID=6456386239889585789' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/6456386239889585789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/6456386239889585789'/><link rel='alternate' type='text/html' href='http://blog.pierre.droids-corp.org/2007/04/metasploit-automated-exploitation-on.html' title='Metasploit Automated Exploitation on N800'/><author><name>Pierre</name><uri>http://www.blogger.com/profile/08942940816209614597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8126082847152361183.post-7806099355664606337</id><published>2007-04-10T15:42:00.000+02:00</published><updated>2007-04-10T16:16:16.328+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='N800'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><title type='text'>msfweb on N800</title><content type='html'>As I said &lt;a href="http://pierre-droids.blogspot.com/2007/04/n800-with-scapy-and-metasploit.html"&gt;earlier&lt;/a&gt;, I wanted to have msfweb (the &lt;a href="http://www.metasploit.com/"&gt;Metasploit&lt;/a&gt; Framework web interface) running on my N800, because it could be far more easy to use on that kind of devices. Finally it works !&lt;br /&gt;&lt;br /&gt;First of all, install Metasploit (read &lt;a href="http://pierre-droids.blogspot.com/2007/04/n800-with-scapy-and-metasploit.html"&gt;this&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;Then, you "only" need to get &lt;a href="http://rubygems.org/"&gt;RubyGems&lt;/a&gt; (you can try my &lt;a href="http://pierre.droids-corp.org/maemo/"&gt;package&lt;/a&gt;), and get gem files for &lt;a href="http://www.rubyonrails.org/"&gt;Rails&lt;/a&gt; and its dependencies (you'll find the whole set &lt;a href="http://pierre.droids-corp.org/maemo/gems/"&gt;here&lt;/a&gt;). Install each dependency, then Rails itself (run "gem install package-version.gem").&lt;br /&gt;&lt;br /&gt;You should be able to run from an xterm (in the directory where you've put Metasploit) the command ./msfweb.&lt;br /&gt;&lt;br /&gt;It's a bit slow to start, but it seems to work :&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_D5jO1Y8kvi8/Rhubz9kjkTI/AAAAAAAAAAM/xRiprRmqxsU/s1600-h/screenshot-2007-04-10-16-11-11.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_D5jO1Y8kvi8/Rhubz9kjkTI/AAAAAAAAAAM/xRiprRmqxsU/s400/screenshot-2007-04-10-16-11-11.png" alt="" id="BLOGGER_PHOTO_ID_5051802724029665586" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8126082847152361183-7806099355664606337?l=blog.pierre.droids-corp.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.pierre.droids-corp.org/feeds/7806099355664606337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8126082847152361183&amp;postID=7806099355664606337' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/7806099355664606337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/7806099355664606337'/><link rel='alternate' type='text/html' href='http://blog.pierre.droids-corp.org/2007/04/msfweb-on-n800.html' title='msfweb on N800'/><author><name>Pierre</name><uri>http://www.blogger.com/profile/08942940816209614597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_D5jO1Y8kvi8/Rhubz9kjkTI/AAAAAAAAAAM/xRiprRmqxsU/s72-c/screenshot-2007-04-10-16-11-11.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8126082847152361183.post-4915940943272213845</id><published>2007-04-05T13:22:00.000+02:00</published><updated>2007-04-05T13:54:01.384+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scapy'/><category scheme='http://www.blogger.com/atom/ns#' term='N800'/><category scheme='http://www.blogger.com/atom/ns#' term='metasploit'/><title type='text'>N800 with scapy and metasploit</title><content type='html'>Thanks to the &lt;a href="http://www.python.org/"&gt;python&lt;/a&gt; package provided by the &lt;a href="http://repository.maemo.org/"&gt;Maemo&lt;/a&gt; "Extras" repository and to the &lt;a href="http://maemo-hackers.org/wiki/OssoXterm"&gt;osso-xterm&lt;/a&gt; provided by the &lt;a href="http://www.maemo-hackers.org/"&gt;Maemo-Hackers&lt;/a&gt; repository, I have had scapy running on my Nokia N800 for a while.&lt;br /&gt;&lt;br /&gt;I have seen that &lt;a href="http://erratasec.blogspot.com/2007/02/needs-more-cowbell.html"&gt;some people&lt;/a&gt; had the &lt;a href="http://www.metasploit.com/"&gt;Metasploit Framework&lt;/a&gt; running, thanks to an unreleased &lt;a href="http://www.ruby-lang.org/"&gt;Ruby&lt;/a&gt; package.&lt;br /&gt;&lt;br /&gt;As there is a Ruby file with &lt;a href="http://mud-builder.garage.maemo.org/"&gt;mud-builder&lt;/a&gt;, I have built a Ruby package (you can get it &lt;a href="http://pierre.droids-corp.org/maemo/"&gt;here&lt;/a&gt; if you are too lazy to build it yourself) for N800, and... that's it. Just get Metasploit, and run msfcli from an xterm, it works.&lt;br /&gt;&lt;br /&gt;As it's not that easy to work with an xterm on the N800 (as on any pocket-sized device), we really need a GUI. For metasploit, one could think of using msfweb plus the integrated web browser. But msfweb does not work for now (needs at least &lt;a href="http://rubygems.org/"&gt;RubyGems&lt;/a&gt; and &lt;a href="http://www.rubyonrails.org/"&gt;Rails&lt;/a&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8126082847152361183-4915940943272213845?l=blog.pierre.droids-corp.org' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.pierre.droids-corp.org/feeds/4915940943272213845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8126082847152361183&amp;postID=4915940943272213845' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/4915940943272213845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8126082847152361183/posts/default/4915940943272213845'/><link rel='alternate' type='text/html' href='http://blog.pierre.droids-corp.org/2007/04/n800-with-scapy-and-metasploit.html' title='N800 with scapy and metasploit'/><author><name>Pierre</name><uri>http://www.blogger.com/profile/08942940816209614597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
