thoughts…

check4authfails

September 1st, 2008

Just when you thought Pie couldn’t get any more boring! I’ve created a script to check for authentication failures in the auth.log of a linux box. If more than 10 are seen from the same source, that source is blocked! Muhahaha and no it doesn’t check if you are the one being foolish.. so careful when you log in :)
#!/bin/bash
#
# Look for "authentication failure" in /var/log/auth.log
# If 10 or more failures from same IP, add that IP to iptables
# format: iptables -I INPUT -s 129.137.2.164 -j DROP
# but... check each IP against what is already in iptables since
# we don't want multiple entries.

for ip in \
`if [ -e /etc/sysconfig/iptables-config ]
then
cat /var/log/auth.log
else
zcat /var/log/auth.*.gz | cat - /var/log/auth.{log,log.0}
fi | grep “authentication failure” | \
grep -o “rhost=[^ ]*” | sed -e ’s/rhost=//’ | sort | \
uniq -c | sort -n | \
while read line
do
num=$(echo $line | awk ‘{print $1}’)
if [ $num -ge 10 ]
then
echo $line | awk ‘{print $2}’
fi
done`
do
if (! $(echo $ip | egrep -q “^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$”) )
then
ip=`host -t a $ip | sed -e ’s/.* \([^ ]*\)$/\1/’`
fi
if (! `/sbin/iptables-save | grep DROP | awk ‘{print $4}’ | grep -q “$ip”`)
then
/sbin/iptables -I INPUT -s $ip -j DROP
fi
done

# Output to see what we’ve got.
/sbin/iptables-save > /etc/sysconfig/iptables-config

Ta-Daaah!

August 22nd, 2008

Posted in Humour | 1 Comment »

The Condemned

August 5th, 2008

The Condemned

In this film’s defence, it never tries to be more than it is. A delightful action-packed thrill fest and thats it.

The film is predictable from start to finish and you can tell from the fight that someone is a wrestler.. sorry I don’t recognise him, I’m not a wrestling fan.

I’ll give it a H2 rating of 2 and a CS rating of 3… a fun film with nothing great to offer but doesn’t spit in your face either… and sure a rich guy could organise blood-sports such as this… but some of the tech is silly ;)

Wanted

August 3rd, 2008

Wanted

I can’t decide if I should be ashamed or not… after watching the trailer you decide.

I really enjoyed this film! Good story, good action, beautifully shot (pun intended) and of course very nice Angelina bottom.

A H2 rating of 1, but a CS rating of 4… bend bullets? Fuck off. :)

X-Files : I Want to Believe

August 3rd, 2008

X-Files: I Want to Believe

I’d like to believe I didn’t waste money going to see this… but I can’t.

Basically do you remember the series? I mean the early series when it didn’t have the vaguely interesting story arc running through it? When it was just one self-contained episode? Thats what this film is… just a bog-standard episode that got stretched… not even a good episode either :(

I’ll give it a 4 on the H2 scale, which is pretty damn bad, but a 3 on the CS scale, it could happen, maybe.

Don’t bother peeps.

The H2 and CS scale.

July 25th, 2008

I’ve just given my first movie review and mentioned the H2 scale… of course you don’t know what that is…

Here’s a clue… The H2 scale is measured from 0 to 5.

0 is excellent and 5 is this film doesn’t exist

Get it? H2… Highlander 2… yep Highlander 2 doesn’t exist and I’ll slap anyone with a bat made out of jelly that disagrees.

My other scale is the CS scale. This is based on reality, or in terms of sci-fi, fantasy etc, feasibility or believability… and CS stands for??

Crystal Skull… you know Indiana Jones and the Kingdom of the Crystal Skull…

I refuse to even review that film, but suffice it to say its H2 reading is off the fecking charts.

Doomsday

July 24th, 2008

So what can I say about this film…

Good? Great? Bad? Terrible?

I’m gonna go with Not Serious. I actually quite enjoyed it… don’t get me wrong it isn’t good ;) but it’s silly and funny and definately tongue in cheek.

It also has a very high percentage of blood splatter and face crushing, very gigglesome. And strangely the soundtrack is pretty nifty.

On the H2 scale I’ll only go as high as 3. KIller viruses that wipe out humanity aren’t knew… but did you every hear of one that only took out Scotland?… yeah we’ll allow that. The tech is reasonable… the eye… maybe not quite so… but I’ll allow it too.

On the CS scale I’m gonna go for 2. Pretty real.. dead people, guns and cars and shit… locking up scotland…er… ok then.

Recommended? Yeah… but only if you have nothing else to watch… during the summer we have quite a TV pause, so I’d get it in now while you can.

Awsome…

July 18th, 2008

http://www.apple.com/trailers/wb/watchmen/high.html

really quite awsome… very much looking forward to this ;)

http://www.dailymotion.com/relevance/search/terminator+salvation/video/x65hfh_terminator-salvation-teaser_shortfilms

I had pretty much written off anything to do with Terminator after Terminator 3 and the Sarah Connor chronicles… but this little teaser looks awsome… and it’s Christian Bale.

Posted in Movies | 4 Comments »

New Beginnings…

July 16th, 2008

So here I go again…

Technical problems and a lacking enthusiasm caused the death of my previous blog. I intend for things to go differently this time.

Technically I’m running this on my own server now (now with added backups ;)) and enthusiastically… well we’ll just have to see. I have lots of ideas anyhoo! ;)