<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
 
 <title>Born to be geek!</title>
 
 <link href="http://herraiz.org/blog/" />
 <updated>2010-02-07T11:38:37+01:00</updated>
 <id>http://herraiz.org/blog</id>
 <author>
   <name>Israel Herraiz</name>
   <email>isra@herraiz.org</email>
 </author>

 
 <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/herraiz/btbg" /><feedburner:info uri="herraiz/btbg" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/3.0/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/herraiz/btbg" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fherraiz%2Fbtbg" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><entry>
   <title>Where are you?</title>
   <link href="http://feedproxy.google.com/~r/herraiz/btbg/~3/AVyMZmpTLqI/" />
   <updated>2010-02-05T00:00:00+01:00</updated>
   <id>http://herraiz.org/blog/2010/02/05/where-are-you</id>
   <content type="html">
&lt;p&gt;
In the last weeks, I have been asked the above question quite a lot of
times. Two weeks ago, I was supposed to be in Canada. In 2009, after
the lack of opportunities in Spain, and the scary forecasts for the
economy in Spain (with unemployment rates reaching 20%), I started to
look for research and university teaching positions abroad. I was
lucky, and I found a postdoc in Canada, for three years, in a top
research group.
&lt;/p&gt;
&lt;p&gt;
I was very happy for that opportunity, and looking forward to starting
to work there. I was having a hard time in Spain, because I did not
manage to get "accreditation", and Canada was the right place to gain
a lot of experience and opening new future
opportunities. &lt;i&gt;Accreditation&lt;/i&gt; in Spain is an official (and painful
and hyper-bureaucratic) validation process that every candidate for an
university position must go through before being able to apply for
positions. The process is tough because you have to collect a lot of
documents, and you need a lot of teaching and research experience to
pass it. With my CV, it was difficult to get the accreditation, and my
estimations were that I needed at least two more years doing research
to get it. That's why the opportunity in Canada came in the right
moment.
&lt;/p&gt;
&lt;p&gt;
However, last November I got the accreditation. I applied with the
idea of a last try before going to Canada. And it turned out to be
successful. Having got the accreditation, I started to apply to every
position that was open in Madrid. After a couple of months, I finally
got a position in a small university in Madrid, which is very teaching
oriented, although it is starting new research and doctorate
programs. That means that I will probably need some time to continue
doing research, because I have to adapt to this new university, and I
have lot of teaching duties. But I think that in the following months
I will manage to find the way to combine teaching and research.
&lt;/p&gt;
&lt;p&gt;
So, where am I now? Well, right now I am on a plane, heading Brussels,
to attend FOSDEM (the magic of my new blogging system is that I can
add posts offline, and synchronize my blog once I am connected). And
in the following months (probably years), I will stay in
Madrid. Hopefully, my current position will be long-term, maybe even
permanent.
&lt;/p&gt;
&lt;p&gt;
It has been a hard decision. Going to Canada for research is a life
changing experience, and I have probably dropped a lot of future
opportunities after this decision. But in the personal side, this is
the option that currently makes it easier to balance my professional
and personal life.
&lt;/p&gt;
&lt;p&gt;
I have not spread the word till now because in the middle of this deep
meditation, Rocío and I have had to face some personal issues. Her
mother suffered a heart disease and needed surgery, and we have been
very busy (I have been picking her sister's kids from school,
preparing lunch for them and doing a lot of other fun
tasks). Fortunately, she is now all right, and recovering fast. Should
I have gone to Canada when I planned to, Rocío would have had to deal
with all this alone. So in spite of all my doubts, and also in spite
of being that kind of decisions that no matter what option you choose,
you are probably choosing wrongly, at least for now, it has been the
right decision.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=AVyMZmpTLqI:Ft4W7XYXVRA:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=AVyMZmpTLqI:Ft4W7XYXVRA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=AVyMZmpTLqI:Ft4W7XYXVRA:ecdYMiMMAMM"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=ecdYMiMMAMM" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=AVyMZmpTLqI:Ft4W7XYXVRA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/herraiz/btbg/~4/AVyMZmpTLqI" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://herraiz.org/blog/2010/02/05/where-are-you/</feedburner:origLink></entry>
 
 <entry>
   <title>New GPG key</title>
   <link href="http://feedproxy.google.com/~r/herraiz/btbg/~3/VqbZjBBdEnU/" />
   <updated>2010-01-27T00:00:00+01:00</updated>
   <id>http://herraiz.org/blog/2010/01/27/new-gpg-key</id>
   <content type="html">
&lt;p&gt;
My old GPG key (with ID &lt;code&gt;6248BA12&lt;/code&gt;) is now obsolete because it was too
short (1024 bits) and I used the deprecated SHA1 algorithm for most of
my signatures. I have revoked that key and I generated a new one, that
is signed with my old key. The new key ID is &lt;code&gt;FE0A7AF3&lt;/code&gt;. Please update
your keyring with the following commands:
&lt;/p&gt;



&lt;pre class="example"&gt;$ gpg --keyserver pgp.rediris.es --refresh-keys 6248BA12
$ gpg --keyserver pgp.rediris.es --recv-keys FE0A7AF3
&lt;/pre&gt;



&lt;p&gt;
I will be at the &lt;a href="http://fosdem.org/2010/keysigning"&gt;FOSDEM keysigning party&lt;/a&gt;, so if you are attending
FOSDEM don't miss the party, and we can exchange key signatures for
this new key.
&lt;/p&gt;
&lt;p&gt;
If you still have an old key, you may &lt;a href="http://www.debian-administration.org/users/dkg/weblog/48"&gt;consider creating a stronger key&lt;/a&gt;.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=VqbZjBBdEnU:UUbbCCCbHZ4:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=VqbZjBBdEnU:UUbbCCCbHZ4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=VqbZjBBdEnU:UUbbCCCbHZ4:ecdYMiMMAMM"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=ecdYMiMMAMM" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=VqbZjBBdEnU:UUbbCCCbHZ4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/herraiz/btbg/~4/VqbZjBBdEnU" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://herraiz.org/blog/2010/01/27/new-gpg-key/</feedburner:origLink></entry>
 
 <entry>
   <title>Under attack</title>
   <link href="http://feedproxy.google.com/~r/herraiz/btbg/~3/hsNREZ-sA2s/" />
   <updated>2010-01-19T00:00:00+01:00</updated>
   <id>http://herraiz.org/blog/2010/01/19/under-attack</id>
   <content type="html">
&lt;p&gt;
Some weeks ago, I received a message telling me that my website had
been &lt;i&gt;hacked&lt;/i&gt;, with a link to PHP script that was indeed stored in my
server. The email was quite polite, trying to fake a real warning from
a benevolent user:
&lt;/p&gt;



&lt;pre class="example"&gt;It appears your server has been hacked. the following link, for
example, used to redirect to rogue antispyware:

[LINK REMOVED]

don't click on the link unless you're on Linux or you really know
what you're doing, because it may redirect to a malicious
site. right now it's just redirecting to CNN's web site. you
probably want to get rid of this page and get your server cleaned up
ASAP. just giving you a heads up.  
thanks.
&lt;/pre&gt;



&lt;p&gt;
I reviewed all the contents in my server, and I found several other
PHP scripts, that were different, and several subdirectories named
&lt;code&gt;.files&lt;/code&gt; that contained HTML pages with links to similar PHP scripts
stored in other sites.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://herraiz.org/blog/files/2010-01-19/tsd.phpremovethis"&gt;The script&lt;/a&gt; was a base-64 encoded. I decoded it using a Python script,
and the decoded script was encoded using a naive encrypting algorithm
that shifts the positions of the characters. I again decoded that
using another Python script, and &lt;a href="http://herraiz.org/blog/files/2010-01-19/decoded.txt"&gt;I finally obtained what the malicious script did&lt;/a&gt;. It turns out that the script randomly crawled the URLs of
other attacked sites connecting to the machine at 77.55.31.116,, and
it generated all the files that were stored in the &lt;code&gt;.files&lt;/code&gt; directory.
&lt;/p&gt;
&lt;p&gt;
The IP belonged to an ISP called The Planet.com. The site hosted there
seems to belong to a Russian guy. I reported the incident to the abuse
contact address of the ISP, but I never got a reply.
&lt;/p&gt;
&lt;p&gt;
I also noted that all the lines ended in &lt;code&gt;\r\n&lt;/code&gt;, so the attacker is a
&lt;del&gt;Mac&lt;/del&gt; Windows user. &lt;a href="http://herraiz.org/blog/files/2010-01-19/decoded2.txt"&gt;I gathered some other scripts randomly&lt;/a&gt;, and the scripts gave
the attacker control to upload and modify files in the hosted
machine. It could also query Wordpress databases in the host, what
gave me a hint about how the attacker managed to upload files to my
server.
&lt;/p&gt;
&lt;p&gt;
I had an old Wordpress installation, and it seems that there is a bug
that let anyone from the web to register and inject shell script
code. I removed a couple of users from all the Wordpress installations
that I had, and disabled the possibility of registering new
users. Actually I have dropped Wordpress and I using Jekyll and Emacs
Org-Mode for this blog.
&lt;/p&gt;
&lt;p&gt;
From my site, I have recovered a list of &lt;a href="http://herraiz.org/blog/files/2010-01-19/sites.txt"&gt;53 sites&lt;/a&gt; that have been also
attacked, and that have probably not yet cleaned. &lt;a href="http://herraiz.org/blog/files/2010-01-19/address_scripts.txt"&gt;I am also publishing&lt;/a&gt;
here a list of the addresses of these sites, together with the name of
the malicious PHP script (without the &lt;code&gt;.php&lt;/code&gt; extension) that is stored
in the site (first and second columns of the text file,
respectively). If your site is included in the previous listings,
check that the scripts included in the second listing exist, and if
they do, remove all the PHP scripts that you are sure you did not
upload (you can also check that the suspicious scripts are encoded),
and look for directories named &lt;code&gt;.files&lt;/code&gt;; remove all those directories.
&lt;/p&gt;
&lt;p&gt;
And finally, keep your Wordpress always up to date; or even better,
drop it and change to another solution. It seems that Wordpress is
pretty much a Gruyère cheese.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=hsNREZ-sA2s:FJLmnEi6FbQ:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=hsNREZ-sA2s:FJLmnEi6FbQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=hsNREZ-sA2s:FJLmnEi6FbQ:ecdYMiMMAMM"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=ecdYMiMMAMM" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=hsNREZ-sA2s:FJLmnEi6FbQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/herraiz/btbg/~4/hsNREZ-sA2s" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://herraiz.org/blog/2010/01/19/under-attack/</feedburner:origLink></entry>
 
 <entry>
   <title>Hello world</title>
   <link href="http://feedproxy.google.com/~r/herraiz/btbg/~3/KNud86hV8_Q/" />
   <updated>2010-01-18T00:00:00+01:00</updated>
   <id>http://herraiz.org/blog/2010/01/18/hello-world</id>
   <content type="html">
&lt;p&gt;
This is the first post in my new blog, based on &lt;a href="http://github.com/mojombo/jekyll"&gt;Jekyll&lt;/a&gt; and &lt;a href="http://orgmode.org"&gt;Emacs Org-Mode&lt;/a&gt;. Now I can post from Emacs and I always have a local copy of
my blog stored in a personal Git repository. I can post while I am
offline and synchronize my posts once I get a connection.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.herraiz.org"&gt;The old blog&lt;/a&gt; is now deprecated. If you were reading Born to be geek!
from your favorite feed reader, you don't have to change anything. The
feed address is the same, but it now points to this new blog.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=KNud86hV8_Q:hzqqu-4zSCk:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=KNud86hV8_Q:hzqqu-4zSCk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=KNud86hV8_Q:hzqqu-4zSCk:ecdYMiMMAMM"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=ecdYMiMMAMM" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/herraiz/btbg?a=KNud86hV8_Q:hzqqu-4zSCk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/herraiz/btbg?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/herraiz/btbg/~4/KNud86hV8_Q" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://herraiz.org/blog/2010/01/18/hello-world/</feedburner:origLink></entry>
 
 
</feed>
