<?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>Carbonized Blog &#187; Script Kiddies</title>
	<atom:link href="http://carbonize.co.uk/wp/tag/script-kiddies/feed/" rel="self" type="application/rss+xml" />
	<link>http://carbonize.co.uk/wp</link>
	<description>Just a bunch of stuff</description>
	<lastBuildDate>Tue, 06 Mar 2012 19:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Blocking IP Addresses Using htaccess</title>
		<link>http://carbonize.co.uk/wp/2009/05/15/blocking-ip-addresses-using-htaccess/</link>
		<comments>http://carbonize.co.uk/wp/2009/05/15/blocking-ip-addresses-using-htaccess/#comments</comments>
		<pubDate>Fri, 15 May 2009 12:26:27 +0000</pubDate>
		<dc:creator>Carbonize</dc:creator>
				<category><![CDATA[spam]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Script Kiddies]]></category>
		<category><![CDATA[spammers]]></category>

		<guid isPermaLink="false">http://carbonize.co.uk/wp/?p=267</guid>
		<description><![CDATA[<a href="http://carbonize.co.uk/wp/2009/05/15/blocking-ip-addresses-using-htaccess/" title="Blocking IP Addresses Using htaccess"></a>I&#8217;m writing this because blocking by domain on my hosts pretty much kills my web site and so I have had to learn to block ip addresses. Blocking single ip addresses is simple as you just need something like the &#8230;<p class="read-more"><a href="http://carbonize.co.uk/wp/2009/05/15/blocking-ip-addresses-using-htaccess/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://carbonize.co.uk/wp/2009/05/15/blocking-ip-addresses-using-htaccess/" title="Blocking IP Addresses Using htaccess"></a><p>I&#8217;m writing this because blocking by domain on my hosts pretty much kills my web site and so I have had to learn to block ip addresses. Blocking single ip addresses is simple as you just need something like the following</p>
<p> order allow,deny<br />
 deny from 9.120.161.206<br />
 allow from all</p>
<p>And that will block the computer at ip address 9.120.161.206 from being able to access your site. But what if you want to block a whole range of ip addresses such as 9.120.161.0 to 9.120.161.255? Well then we just leave off the end number like this</p>
<p> order allow,deny<br />
 deny from 9.120.161.<br />
 allow from all</p>
<p>Ok so now we get to the clever and damn fiddly bit. As of Apache 1.3 we can use <acronym title="Classless Inter-Domain Routing">CIDR</acronym> codes to specify ranges of ip addresses. So another way of writing the above code would be</p>
<p> order allow,deny<br />
 deny from 9.120.161.0/24<br />
 allow from all</p>
<p>and that would do exactly the same as 9.120.161. but we can do so much more. After the break (ie click the read more link) I will show a list of the CIDR codes and what they do.<br />
<span id="more-267"></span><br />
Ok first thing we need to do is explain that CIDR goes from 0 to 32. 0 covers every possible ip address, all 4,294,967,296 of them so doesn&#8217;t really get used much. As CIDR is based on bits the number of ip addresses blocked doubles as we go down the list.</p>
<p>32 only block the single ip address so is a bit pointless<br />
31 blocks 2 address so would block 127.0.0.1 and 127.0.0.2. Could just as easily be like 127.0.0.19/31 as you can start from any ip address<br />
30 blocks 4 ip address so 127.0.0.1 to 127.0.0.4<br />
29 blocks 8 ip address so 127.0.0.1/29 would block 127.0.0.1 to 127.0.0.8 (starting to see a pattern?)<br />
28 down to 25 I&#8217;m sure you can figure out. It&#8217;s from 24 it gets interesting.<br />
24 blocks a whole sub set of ip addresses (thats 256 addresses) so we can use 127.0.0.0/24 to block 127.0.0.0 to 127.0.0.255<br />
23 blocks 512 address so that&#8217;s 2 entire subsets. 127.0.0.0/23 would block 127.0.0.0 to 127.0.1.255<br />
22 is 1024 addresses or 4 sub sets<br />
21 is 2048 or 8 sub sets<br />
20 is 4096 address or 16 sub sets (like 127.0.0.0 to 127.0.15.255)<br />
19 would be 8192 address so 32 sub sets. I used this one when blocking keyweb.de servers<br />
18 is 16384 or 64 sub sets<br />
17 equals 32768 addresses and I used it to block some layeredtech<br />
16 is the lowest CIDR code I have used and that covers 65536 addresses or 256 sub sets. This is again used to block LayeredTech.</p>
<p>I&#8217;m pretty sure you can work the rest out for yourself from here on. I got my information from <a  href="http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing" target="_blank">this Wikipedia entry</a>. I will now post a couple I have used in my own htaccess and say why.</p>
<p> # These two are for layeredtech. Well known friend to spammers.<br />
 deny from 72.232.0.0/16<br />
 deny from 72.233.0.0/17<br />
 # Keyweb.de servers. Plenty of spam attempts from them<br />
 deny from 87.118.96.0/19<br />
 # Dragonara.net just started getting spam attempts from them<br />
 deny from 194.8.74.0/23</p>
]]></content:encoded>
			<wfw:commentRss>http://carbonize.co.uk/wp/2009/05/15/blocking-ip-addresses-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sad Children Thinking They Are Hackers</title>
		<link>http://carbonize.co.uk/wp/2009/03/10/sad-children-thinking-they-are-hackers/</link>
		<comments>http://carbonize.co.uk/wp/2009/03/10/sad-children-thinking-they-are-hackers/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 19:12:05 +0000</pubDate>
		<dc:creator>Carbonize</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[hackers]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[Script Kiddies]]></category>

		<guid isPermaLink="false">http://carbonize.co.uk/wp/?p=161</guid>
		<description><![CDATA[<a href="http://carbonize.co.uk/wp/2009/03/10/sad-children-thinking-they-are-hackers/" title="Sad Children Thinking They Are Hackers"></a>A few days ago I installed the Bad Behavior plugin for Word Press just as an extra way of combatting spam comments etc. In 2 days it&#8217;s blocked 49 attempts by malicious scripts to access this blog. I just looked &#8230;<p class="read-more"><a href="http://carbonize.co.uk/wp/2009/03/10/sad-children-thinking-they-are-hackers/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://carbonize.co.uk/wp/2009/03/10/sad-children-thinking-they-are-hackers/" title="Sad Children Thinking They Are Hackers"></a><p>A few days ago I installed the <a  href="http://www.bad-behavior.ioerror.us/" target="_blank">Bad Behavior</a> plugin for Word Press just as an extra way of combatting spam comments etc. In 2 days it&#8217;s blocked 49 attempts by malicious scripts to access this blog. I just looked at the log and most of them are attempts to run a remote PHP script to see if I am running a vulnerable script.  The remote scripts are all the same and simply contain</p>
<p><code>&lt;?php /* Fx29ID */ echo(&quot;FeeL&quot;.CoMz&quot;); die(&quot;FeeL&quot;.&quot;CoMz&quot;); /* Fx29ID */ ?&gt;</code></p>
<p>Basically from what I can see there is a bunch of <a  href="http://en.wikipedia.org/wiki/Script_kiddie" target="_blank">script kiddies</a> who like to call themselves hackers but haven&#8217;t got the first clue about real hacking. All they can do is follow step by step instructions they have found on security web sites. A real hacker is a person who actually knows how things work and looks for ways to exploit them so that the makers can make the products more secure.<br />
<span id="more-161"></span><br />
<strong>Had quite a few hits on this one with people searching for information so have decided to add some.</strong></p>
<p>If you are running Word Press then I highly recommend installing the Bad Behavior plugin as this has, to my knowledge, blocked all attempts by these kiddies. I have also added a couple of the banned useragents from Bad Behavior to my sites .htaccess file to prevent them accessing the site all together. It also blocks some known spambots.</p>
<p><code>SetEnvIfNoCase User-Agent "^libwww-perl*" spammer=yes<br />
SetEnvIfNoCase User-Agent "^Mozilla/5\.0$" spammer=yes<br />
SetEnvIfNoCase User-Agent "^Java/1*" spammer=yes<br />
SetEnvIfNoCase User-Agent "^Java 1*" spammer=yes<br />
SetEnvIfNoCase User-Agent "^&lt;sc" spammer=yes<br />
SetEnvIfNoCase User-Agent "^Jakarta*" spammer=yes<br />
SetEnvIfNoCase User-Agent "^TrackBack*" spammer=yes<br />
SetEnvIfNoCase User-Agent "^USERAGENT$" spammer=yes<br />
SetEnvIfNoCase Via pinappleproxy spammer=yes<br />
SetEnvIfNoCase X-AAAAAAAAAAAA 1 spammer=yes<br />
Deny from env=spammer</code></p>
<p>Just remember it is also up to you to make sure that any scripts you are running on your site, be they a forum, a blog, a guestbook etc are the latest versions.</p>
<p>BTW if you came here because you found a file containing the FeeL.CoMz text from above then I&#8217;m sorry to say your site has already been exploited by this idiots. All you can do is look for other files last updated around the same time to see what else they did. Then make sure your scripts are updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://carbonize.co.uk/wp/2009/03/10/sad-children-thinking-they-are-hackers/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

