0×1337.de_blog about security, open source, music and revolution.

July 25, 2009

Zensursula reversed

Filed under: security — Tags: , — anx @ 6:47 pm

Just a braindump to remind me and flyc0r that there is a certain attack vector on the DNS system that would so totally fuck up the whole censorship idea here in germany. We found a way to censor (and de-censor) any site in terms of a collaborative effort. Due to the fact that the system is just being implemented we’re being careful to realease any details. But I’ll say so much: we’re standing between the lines and having fun with DNS. And: everyone has a neighbour :D

July 23, 2009

Secure Synergy

Filed under: cli, linux, security — Tags: , , , , , , , — flyc0r @ 3:49 pm

I have been using synergy for a long time now. The only ugly thing about it: it doesn’t encrypt. That’s where ssh comes in. I wrote this handy script a while ago to start ssh tunneled synergy on a client machine:

 #!/bin/sh
port=24800
host=$1

echo -n killing existing synergyc...
killall -9 synergyc
echo done

echo -n killig existing ssh tunnels...
pids=$(ps x |grep ssh|grep $port|grep $host|cut -d' ' -f1)
for i in $pids
	do
		echo -n "killing $i..."
		kill -9 $i;
		echo done
	done

echo -n "Trying to ping $host"
if ping -c1 $1>/dev/null;
 then
	echo done
	echo -n starting ssh tunnel...
	ssh -f -N -L 127.0.0.1:$port:$1:$port $host
	echo done
	echo -n starting synergyc...
	sleep 1
	synergyc 127.0.0.1
	echo done
  else
	echo "failed."
fi
echo done

July 22, 2009

ls after cd

Filed under: cli, linux — flyc0r @ 6:14 pm

If you want an ls to be issued each time you cd somewhere:

function mychdir(){chdir $@;ls;}
alias cd='mychdir'

Just add these two lines to your shells .rc file and you are good to go.

July 18, 2009

flv2mp3

Filed under: cli, linux — Tags: , , , , , , — flyc0r @ 5:20 pm

Just need the sound of a downloaded tube movie (featuring mplayer and lame)?

#!/bin/bash
 mplayer -ao pcm -vo audiodump.wav $1
lame audiodump.wav -q $2 -b $3 $1".mp3"
rm audiodump.wav

Fast Censorship Circumvention

Filed under: cli, linux — Tags: , , , , — flyc0r @ 5:17 pm

Quickly switch to openDNS

 #!/bin/bash
sudo su -c 'echo nameserver 208.67.222.222 > /etc/resolv.conf'
sudo su -c 'echo nameserver 208.67.220.220 >> /etc/resolv.conf'

	
Newer Posts »

Powered by WordPress