Aircrack-ng unoficial debian package
I’ve been working lately on an unoficial aircrack-ng package containing all the cool stuff, including airoscript. I talked with Thomas D’Otreppe and he told me I could use some space on aircrack-ng’s servers, but I haven’t had it yet, so I put the repository under degeneratedlabs. If the repo is down try again in a few hours.
You can install lastest (weekly built) aircrack-ng by adding this repo to your /etc/apt/sources.list
deb http://repo.degeneratedlabs.net/debian/ aircrackng-unstable/
And executing
apt-get update && apt-get install aircrack-ng
Also, you can find the sources I use to generate the package at my github. And the script I made to ease the build here:
svn co http://trac.aircrack-ng.org/svn/trunk aircrack-ng-1.1 && cd aircrack-ng-1.1 && svn info && { rm -rf `find . -name .svn` && tar czvf ../aircrack-ng_1.1.orig.tar.gz *; } &>/dev/null && git clone http://github.com/XayOn/Aircrack-ngDebian debian &>/dev/null && vim debian/changelog && debuild $@ && cd .. && dput repo.degeneratedlabs.net *changesAutomagically organising your bittorrent downloads with deluge
I, as most people, like to have my video files ordered. After I’ve finished downloading a torrent I manually move it to my media dir, under a directory for the series it belongs to, or no directory at all, but it’s a hard and unnecesary process.
I’ll explain here (and provide an script for it) how to make deluge automagically handle our files.
I’ve chosen deluge bittorrent client for this guide (blame it on enver555), but you should be able to use my script (with maybe, a few modifications about the argument handling) anywhere.
Getting the script
First, you will need to download the shorting script, it’s a single 5-liner bash script, with lots of magic and power, for that reason, I’ve called it the torrent shorting hat.
#!/bin/bash id=$1; name=$2; path=$3; source ~/.torrent-aliasestype=$(file -b --mime-type $path |cut -d/ -f1)for dest_dir in ${!regexes[@]}; do mkdir -p ~/Media/$type/$dest_dir; [[ $path =~ ${regexes[$dest_dir]} ]] && { mv $path ~/Media/$type/$dest_dir/; exit; }; donemv $path ~/Media/$type/$dest_dir # Fallback
Installing it system-wide or locally
You might want all your users to have access to this script, for that, as with any other linux program, you should copy it to path and give it executable permissions, that’s, as root:
wget https://raw.github.com/gist/1705151/540fd4445ca4e0f540ddf82decba3ffc421c46ab/gistfile1.sh -O /usr/local/bin/torrent_shorting_hat chmod +x /usr/local/bin/torrent_shorting_hat
I personally recoment this method, but if you prefer, you can get it at your local home, you could, for example, do something like this:
wget https://raw.github.com/gist/1705151/540fd4445ca4e0f540ddf82decba3ffc421c46ab/gistfile1.sh -O .torrent_shorting_hat chmod +x .torrent_shorting_hat
Configuring deluge
We enable the execute plugin
Then, we add an execute action for a “finished torrent download” handler. If you’ve added your script locally, you had to reference it as its full path, otherwise you have just to use “torrent_shorting_hat” as scrpit:
Configuring the sorting hat
The sorting hat will read a file in your home called .torrent-aliases, more exactly its regexes variable, it’s basically a shell script with associative arrays, like this:
regexes[''hitchicker']="(.*)42(.*)"
This will get everything containing “42″ to a folder in ~/Media/(mimetype)/hitchicker, being mimetype the file’s mimetype. Wich, by the way, means that even if you don’t have anything configured, the script will organize files by its type.
Rstext.me restructuredtext slideshows on the cloud
I just made restructuredtext slideshow solution public, under the motto “Getting your slideshows done have never been so easy”.
” The best thing about it is that you can build nice, corporate-looking presentations in just seconds, concentrating in the information instead of the format or the style. We provide a lot of predefined themes, and will give corporate support for bussiness image templates”
David Francos
Rstext.me turns around our current concept of building a slideshow by providing a nice infraestructure to edit and store online your slideshows, in restructuredtext format (a widely used easy-to-read markup language).
You can visit it here
Source: http://blog.rstext.me
/foreach user_in [users] do [commands] in irssi
I just finished my implementation of foreach user_in for irssi.
There was out there a plugin to execute anything for each user in a channel window. I had the requirement to send information to a huge amount of that users (that is, a list of users from my bitlbee channel) but not to all the channel, so I said… Why not a foreach_user indo?
This way, I can, for example, do something like this:
/foreach user in friend_one friend_two friend_three /msg -bitlbee &bitlbee $0: Want a beer? 2100 at my place. /foreach user in contact_one contact_two friend_three /msg -bitlbee &bitlbee $0: Have you checked out my last proyect
For this, just download the script from my github and place it in .irssi/scripts/autorun so it will be auto-executed when starting irssi, and load it with:
/load autorun/foreach_user_in.pl
Adding socks5 support to python-irclib
I was playing with IRC and Proxyes a few weeks ago, and I found out that python’s irclib didn’t support them!
It took me like a minute or so to fix it, just overloading socket with socksocket, you can have a look at my fork in github
try:
import socks, os
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5,
os.getenv('proxy_addr'), os.getenv('proxy_port'))
socket.socket = socks.socksocket
except:
pass
So, basically I try importing socks and setting up a default proxy, socks5 (sorry, I haven’t considered socks4 on there), with the environment variables proxy_addr and proxy_port as addr and port.
To use it, you’ll have to get a libirc-based application (there’s a bot included that might be a start) and, before starting it, define proxy_addr and proxy_port
proxy_addr=127.0.0.1; proxy_port=1080; python my_python-irclib_based_foo
Enjoy =)
Presentando MySocialStickers
Presentación
Presentamos MySocialStickers, tu nueva aplicación imprescindible para organizar eventos.
Con MySocialStickers puedes generar identificaciones para los asistentes a un evento basadas en información de twitter
Incluso puedes hacer tus propias tarjetas de visita!
Fuentes de datos
Twitter! De momento MySocialStickers soporta unicamente generar pegatinas en base a twitter. Puedes elejir entre las siguientes fuentes de datos:
- Listas: Organiza eventos de la forma más sencilla
- Seguidores: ¿Quieres organizar un evento y tienes una cuenta de twitter especifica para ello?
- Amigos: ¡Regala MySocialStickers a tus amigos!
- Busquedas: ¿Quieres algo de acción social? ¡Así nacio la idea de MySocialStickers!
- Tu mismo: Presentate de la mejor manera posible.
Personaliza tus tarjetas o tus pegatinas!
Elije entre distintos tamaños predeterminados o inventa tu propio tamaño para tus MySocialStickers. Cambia el color, elije entre QR Code e imagen de perfil, nick o nombre real, puedes darle mil utilidades con cada opcion

Pegatinas sobre ti mismo, con el nick y un código QR
Lo estrenaremos para el Salón del Comic de zaragoza, en el que, a cualquiera que lo pida via twitter con el hashtag #MySocialStickers, le entregaremos (en persona, pedidlas sólo si vais a venir) su pegatina con codigo QR completamente gratis!
Looking for android version with ADB
I was trying to get my android version number with ADB (as I didn’t want to make excessive use of my fingers on a screen, you know
). I wanted to do it so I could make some scripts, but I didn’t really found a cool way to do so. Thankfully, android shell has a command wich will tell us all device info: getprop.
As this is an android shell stuff and not ADB itself, we’ll have to launch adb shell against it, and then parse the output, I’m using awk here to parse it
I’ll change awk internal field separator (IFS) with the -F flag to parse the output into key-value stuff and print only the value, I already knew the key, wich, for android version, is “build.version.release”
We can parse, csv with awk the same way as we’ll be doing this:
cat foo.csv| awk -F "," '/pattern/ {print $1 }'
At the end we’ll get version with just this simple piece of code:
version=$(adb shell getprop |awk -F":" '/build.version.release/ { print $2 }')
Update: I wanted it cleaner, so I removed [ and ] with tr.
version=$(adb shell getprop |awk -F":" '/build.version.release/ { print $2 }')|tr -d '[]'
Amazingly usefull for android debugging!
Biibot, a bash bot based on II
I was on the IRC channel #debian-es-cachondeo yesterday, talking with @Kumul about II and his rc-based bot and I decided to show him the power of bash. In a few minutes I uploaded to my github a first version of what I think is a nice bot, configurable and scalable, with no useful features… But you can add your own!
First of all, let’s see what it does:
- Manage multiple servers with independent channels
- Enable-disable commands at runtime
- Nice configuration file
- Admin user ACL
- Process management
Building and installing airoscript
This has been tested on debian stable and testing
We’re going to install the lastest version of airoscript, subversion one, as always, we need aircrack-ng among other stuff to get it working. Lastest version of airoscript requires aircrack-ng from subversion, so we’re going to install everything at the same time, including some nasty airoscript deps.
At the end of this article, you’ll find an script that will make everything for you.
Making releases for python programs in android
It’s been a while since I lastest got Digenpy for android ready, so I decided to take a look at it again and re-do it. After I finised most of the work, I realized I didn’t have a build-and-test apk system, so I’ve built one.
Here are the steps I followed, as described by android documentation:
- Download android sdk
- Get java development kit (sun-java6-jdk in debian. Only available in debian stable at this time)
- Launch “android” executable from sdk tools/ directory and specify it to download the APIs you want, and the platform tools.
- Generate apk with ant *
- Align apk with zipalign from tools directory *
- Set up a virtual machine in emulator *
- Launch app in emulator *
* I’ve made a little script, hosted here , it also can do debian packages and windows exes (I will talk about it in my next article). After apk building it launches android emulator to test it.
Let’s get all of it togheter. We need to install a few things and configure the script.
First of all, we’ll need to install android SDK on a good path, like /usr/local/share/android-sdk.
$ wget http://dl.google.com/android/android-sdk_r15-linux.tgz -O - |tar xvzf - # mv android-sdk-linux /usr/local/share/android-sdk
Then, we install sun-java6-jdk, only debian stable is covered here.
# apt-get install sun-java6-jdk sun-java6-jre
Finally, we’ll install the android platform tools and sdk, launching (as root) the android app.
# /usr/local/share/android-sdk/tools/android
Inside there, we’ll select an API (I’ve chosen 10) and the platform-tools and SDK-tools.
To be able to emulate, first we’ll have to create the config for an emulator, we’ll do it trough tools/Manage AVDs
Now, we will download the template for android-python apps, uncompress it, and put our script on raw/res/script.py, then execute package_generator script.
wget http://android-scripting.googlecode.com/hg/android/script_for_android_template.zip unzip script_for_android_template.zip mv hello_world.py raw/res/script.py
Package_generator.sh apk
And there we have it: It will generate a nice APK, and launch the emulator with the apk installed so we can test it.








