08.27.07
Posted in howto, inet, software, unix at 5:08 pm by brainstorm

La batalla continua indefinidament: es milloren els motors antispam (spamassassin, dspam…) i els spammers s’adapten, s’usen llistes negres remotes (RBL’s) i ells s’adapten… que un gif com attachment pot tenir pinta d’spam ? Doncs ells usen PDF’s… el compte de mai acabar :/
Doncs bé, fart de rebre una mitja de 10 spams diaris a l’Inbox vaig decidir implantar mesures dràstiques. Primer vaig probar amb greylisting (usant postgrey). El resultat va ser decepcionant: apenes filtrava un 10% més dels spams respecte a no tenir aquesta mesura.
La capacitat d’adaptació i perseverança dels spammers em recorda a uns personatges d’una sèrie de ciència ficció :-/… El cas és que finalment em vaig decantar per SPF… conclusió després de setmanes d’ús i revisió de logs exhaustiva: tant de bo ho hagués fet abans !
Read the rest of this entry »
Permalink
07.16.07
Posted in inet, software, unix at 10:08 pm by brainstorm
As I exposed on a previous post, I was planning to replicate my DNS server using FreeDNS as a secondary nameserver for redundancy. My main concern was how to overcome the 20 subdomain limit advertised by FreeDNS.
I thought about creating a new DNS view to allow FreeDNS to transfer a subset of my subdomains (the twenty most “critical” by my criteria). But apparently, there’s no need to do so if you just use the DNS backup feature
Thanks FreeDNS !
Read the rest of this entry »
Permalink
06.16.07
Posted in gadgets, howto, software, unix at 5:55 pm by brainstorm
If you’re switching between providers and want to keep your addressbook and sms’s, here is a simple way of doing so with gnokii:
$ gnokii --getsms AR 1 10 -d >> sms_archive
$ gnokii --getphonebook SM 1 200 > phonebook
The “AR” stands for “ARchive” and tells gnokii to search the SMS’s there, and not in the INbox (”IN” being another cellphone storage area). Following AR, there is the SMS range you want to save (sms 1st till 10th). Make sure you have a look at gnokii manpage if this is not working for you. For instance, on the following command, the “SM” is referring to the SIM card… perhaps you’re not storing your phonebook there, but in the internal mobile phone memory (”ME”).
Here I’m assuming that you have configured your /etc/gnokiirc properly. Just for the record, I’m using a bluetooth usb adapter.
As a result of this mini-howto, you have a plaintext copy of your phonebook and sms messages on your computer, isn’t it easy and convenient ?
Sure, there are clearly better and comprehensive alternatives out there, like SyncML (OpenSync), but this solution suits my needs very quickly and it’s quite effortless.
Doing a backup of the photos is even simpler if you happen to have kblueetothd, one of the coolest KDE kioslaves: just drag&drop the pictures to your PC and you’re done !
Permalink
02.15.07
Posted in software, unix, wifi at 1:22 am by brainstorm
Part de la feina que havia de fer al 3GSM consistia en escanejar les xarxes inalàmbriques que hi havia en rang (podien arribar fins les 300 sense moure’s massa). De totes aquestes xarxes calia veure quines eren legítimes i quines s’havien muntat sense permís exprés de l’organització.
Com que els portàtils dels que disposàvem corrien windows, em van venir al cap unes tools que vaig descobrir a LISA’05: Wireless Weapons of Mass Destruction for Windows, concretament la utilitat ssidscan.vbs que suposadament retorna un llistat d’SSID’s per command line per tal de poder parsejar els resultats a posteriori… he dit suposadament, aquest és el resultat:
Com veieu, per un bug documentat (i pel que sembla, no arreglat encara (!!!) no mostra correctament el nom dels SSIDs real: lletres addicionals, altres que falten, caràcters estranys en alguns casos…
Read the rest of this entry »
Permalink
12.20.06
Posted in inet, software, unix at 3:09 pm by brainstorm
Fa un temps que sóc aficionat a fer scripts que fan screen scraping (web spidering). Els meus primers tantejos van ser amb el fantàstic mòdul LWP. Amb una mica de paciència, fent GETs i POSTs on tocava, url-encodejant i en alguns casos usant un grapat d’expressions regulars podia extreure les dades d’una pàgina web i mostrar-les en el format que m’interessava, emmagatzemar-les en una BD, etc…
Un bon dia vaig descobrir una altra perla interessant a CPAN: WWW::Mechanize, que es comporta com un navegador (sense javascript). Alguns mètodes de l’API són:
$mech->follow( $link );
$mech->click( $button );
$mech->set_fields( %field_values );
$mech->back();
Com podeu veure no és necessària una llarga explicació (imho), el seu comportament és el que us podrieu trobar en qualsevol navegador. Aquest mòdul ens simplifica força les accions que podem fer en el navegador, però el parseig l’hem de fer a mà igualment… fins que un bon dia, apareix a la meva vida en Template::Extract 
Read the rest of this entry »
Permalink
« Previous entries · Next entries »