0

A Funny Re-Run With Andrew E. Mathis

This guy is nearing his forties but has no knowledge at all when it comes to computers or networking so he spouts accusations of ‘virus-activity’ when something doesn’t work the way he expects it.

What a hilarity. See the attached screenshot below.

Click on it for better quality !

Have a nice day, friends

PS:
There are a plethora of ways to block Tor traffic, here’s another example using Bash shell scripting (cron-service.sh):

#!/bin/bash

if [ "$USER" != "root" ]; then
    echo "Must be run as root (you are $USER)."
    exit 1
fi

if [ "$1" == "" ]; then
    echo "$0 port [port [port [...]]]"
    exit 1
fi 

CHAIN_NAME="INPUT"
TMP_TOR_LIST="/tmp/temp_tor_list"
IP_ADDRESS=$(ifconfig eth0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}')

# Create tor chain if it doesn't exist. This is basically a grouping of
# filters within iptables.
if ! iptables -L "$CHAIN_NAME" -n >/dev/null 2>&1 ; then
    iptables -N "$CHAIN_NAME" >/dev/null 2>&1
fi

# Download the exist list from the tor project, build the temp file. Also
# filter out any commented (#) lines.
rm -f $TMP_TOR_LIST
touch $TMP_TOR_LIST

for PORT in "$@"
do
    wget -q -O - "https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=$IP_ADDRESS&port=$PORT" -U NoSuchBrowser/1.0 >> $TMP_TOR_LIST
    echo >> $TMP_TOR_LIST
done

sed -i 's|^#.*$||g' $TMP_TOR_LIST

# Block the contents of the list in iptables
iptables -F $CHAIN_NAME

for IP in $(cat $TMP_TOR_LIST | uniq | sort)
do
    iptables -A $CHAIN_NAME -s $IP -j DROP
done

iptables-save >> /var/log/block-tor-iptables.log

Regards,
-k0nsl

k0nsl

k0nsl

k0nsl is a programmer, server administrator, designer, moderator, spokesman and factotum of a wide-variety of web pages. You can reach k0nsl via e-mail — i.am@k0nsl.org.

Leave a Reply

Your email address will not be published. Required fields are marked *