Hacker Newsnew | past | comments | ask | show | jobs | submit | 2014-01-02login
Stories from January 2, 2014
Go back a day, month, or year. Go forward a day, month, or year.
1.“Vacations are for the weak” (sethbannon.com)
486 points by sethbannon on Jan 2, 2014 | 356 comments
2.Bzr is dying; Emacs needs to move (lists.gnu.org)
401 points by __david__ on Jan 2, 2014 | 302 comments
3.Can-Do vs. Can’t-Do Culture (recode.net)
342 points by minimaxir on Jan 2, 2014 | 129 comments
4.How Netflix Reverse Engineered Hollywood (theatlantic.com)
336 points by coloneltcb on Jan 2, 2014 | 129 comments
5.Ask HN: What's your speciality, and what's your "FizzBuzz" equivalent?
260 points by ColinWright on Jan 2, 2014 | 331 comments
6.Lock Picking – A Basic Guide (hackthis.co.uk)
252 points by hackthisuk on Jan 2, 2014 | 110 comments
7.Searching the Internet for evidence of time travelers (arxiv.org)
210 points by ColinWright on Jan 2, 2014 | 147 comments
8.Free Bootstrap Themes (blacktie.co)
195 points by aram on Jan 2, 2014 | 57 comments
9.Gate Tower Building (wikipedia.org)
196 points by lelf on Jan 2, 2014 | 50 comments
10.Hyperloop: Not so fast (mathworks.com)
196 points by cju on Jan 2, 2014 | 141 comments
11.Resolving power button issues in Mac OS X Mavericks (binchewer.org)
189 points by madeofpalk on Jan 2, 2014 | 144 comments
12.The Saddest SaaS Pricing Pages of the Year (priceintelligently.com)
171 points by pccampbell on Jan 2, 2014 | 82 comments
13.Happy New Year from Y Combinator (blog.ycombinator.com)
163 points by sethbannon on Jan 2, 2014 | 12 comments
14.NSA seeks to build quantum computer that could crack most types of encryption (washingtonpost.com)
156 points by JunkDNA on Jan 2, 2014 | 106 comments
15.Jolla Outsells iPhone 5S and 5C in Finland (jollausers.com)
156 points by sirkneeland on Jan 2, 2014 | 81 comments
16.Ask HN: Female hacker-founder AMA
151 points by dzink on Jan 2, 2014 | 74 comments
17.K-means Clustering 86 Single Malt Scotch Whiskies (revolutionanalytics.com)
135 points by platz on Jan 2, 2014 | 25 comments
18.Dogs are sensitive to small variations of the Earth's magnetic field (frontiersinzoology.com)
138 points by gmatty on Jan 2, 2014 | 35 comments
19.The Best To-Do List: A Private Gist (carlsednaoui.com)
146 points by Ashuu on Jan 2, 2014 | 90 comments
20.Memory cache optimizations (libtorrent.org)
138 points by dbaupp on Jan 2, 2014 | 11 comments

The economist who helped Walt Disney's theme park dream become what it is today[1] said that the most important thing he learned through it all was the profound difference between a "no, because" person and a "yes, if" person.

If you ask many people an audacious "Can we do X?" their response is usually along the lines of "No, because [valid reasons]". They're not wrong, but the basic attitude is to shoot down what doesn't seem to fit with one's own view of the world. These are "no, because" people, and big companies are often full of them.

Much rarer and infinitely more valuable, especially for an entrepreneur, is the person who hears "Can we do X?" and responds, "Yes, if... [possible solutions]". Their response is one of problem-solving instead of confrontation, seeking to find a synthesis of the new perspective and their own. It seems like a small thing, but it is a very significant shift in mindset. Thinking like a "yes, if" person can unlock so much potential.

A friend of mine, one of the most talented and knowledgeable game programmers around, could easily have shot down many of the ambitious ideas that came his way. Instead, he greeted them with enthusiasm, often saying, "It's software! We can do anything!" Wouldn't you like to set out to do amazing things with that person on your team?

[1] - https://d23.com/harrison-price/

22.Improve Your Python: Metaclasses and Dynamic Classes With Type (jeffknupp.com)
115 points by lukashed on Jan 2, 2014 | 13 comments
23.Building a Mesh Network in Rural Somaliland (commotionwireless.net)
113 points by benbristow on Jan 2, 2014 | 40 comments

I'm going to rush this, sorry.

* Guy sees service running on 32764 and thinks that's quite odd

* Gets very frustrated at useless forum posts from people with no clue

* Downloads a copy of the firmware from the (horrible) modem-help.co.uk

This is where it gets interesting:

Binwalk ------

First off, a program called Binwalk is used. This is a combo of a really cool python script, the libmagic database (if you've used the file utility in 'nix you've used it) and some C to deal with some compression types.

When binwalk works, it's pure brilliance. As you can see in the screenshot on slide 12, binwalk is able to detect strings and filesystems inside the firmware.

References to Texas Instruments and Telogy Networks would be a good starting point if you wanted to google for datasheets or some more background information

I haven't ever seen a reference to Igor Pavlov in a firmware binary before but his name popping up is a good indication that you might be hitting 7zip or LZMA compressed data - http://en.wikipedia.org/wiki/Igor_Pavlov_%28programmer%29

The filesystem -----

Squashfs is commonly used (and horribly broken) by manufacturers of modems and routers.

Luckily the author is able to extract the filesystem out by looking at the offsets printed out by binwalk - this doesn't always work!

Slide 13 is pretty typical when reversing modem firmware - someone thought they were being smart and broke the squashfs format. It looks like no one else will be able to replicate this as the source code for the modified format has been taken down (?) It's possible the author is using the name of the folder in the last screenshot of slide 13 as a hint of what to do next, slide 14 and 15 are magic to me.

I think the author has changed the LZMA sourcecode to look for LZMA compressed data with a gzip header but this seems really strange to me

Slide 15 just shows the unsquashfs tool with what seems like sensible output (if you'd done something wrong at this point you might see huge numbers of inodes or a silly number of files and you'd have to go back to the compression and keep looking)

Now the author has a filesystem to look through - I would have used strings and grep instead of just grep at this point. He's grepping for the name of the service he found in the forum posts, I think.

From here he's used a very expensive program called IDA Pro (https://www.hex-rays.com/products/ida/support/orderforms/nam...) to help. You may also be able to use the objdump command or The Online Disassembler.

I have no knowledge of MIPS assembly so I'm unable to help you there - IDA provides some flow diagrams like you can see in slide 19. I'm not sure if the author annotated the fucntion names or if IDA was able to find them.

He identifies a buffer overflow and writes a small script to exploit it in slide 20 (I'd love some extra explanation of this if anyone can give it)

When the script is run it seems to dump the current configuration of the modem, but then it crashes or resets (slide 21)

The comments on slide 23 suggest that the code has jumped to the "restore_default" function - sorry, I don't understand this part. References to nvram would suggest it's going something to the config though, which would explain slide 21.

Slide 26 shows an (hopefully LAN-side only) exploit that's able to enable the HTTP management interface of the modem and reset the password at the same time.

Final edit: I'm sorry for the formatting of this post. I'd love to collaborate with someone on a blog post about this exploit. I'm really just getting started with firmware reversing (and most of the time I don't get past the binwalk stage). My contact details are in my profile.

25.Machine that Levitates Objects Using Sound [video] (hardware-360.com)
95 points by justinmares on Jan 2, 2014 | 41 comments
26.Pure JS OCR via Emscripten (antimatter15.com)
95 points by DrinkWater on Jan 2, 2014 | 25 comments
27.Homebrew Cask – CLI workflow for the administration of Mac binaries (github.com/phinze)
86 points by dmmalam on Jan 2, 2014 | 24 comments

>>It is unfortunate that so many people are stuck in jobs that don't offer sufficient time off.

This is because outside of Silicon Valley, and outside of software development in general, corporations have been gaining more and more power over their employees. You can see this when you look at stagnating wages for everyone outside the executive class. Don't like your job? Too bad. You should just be grateful that you have a job in the first place. Don't have a job? Better go door to door begging everyone to employ you. Haven't had a non-minimum-wage job for the past year? Good luck convincing any HR person that you're worth even an interview. Etcetera.

What this country needs is another labor movement. The first one gave us things like healthcare and retirement benefits, improved workplace conditions (especially safety), and the five-day workweek (down from six). Hopefully, the second one will give us remote work, paid paternal leave, 30-day minimum vacations every year, and a hard cap of 50 hours per week.

29.Windows 8 and Windows 8.1 pass 10% market share, Windows XP falls below 30% (thenextweb.com)
79 points by hackhackhack on Jan 2, 2014 | 72 comments
30.Distributed systems for fun and profit (free ebook) (mixu.net)
77 points by phiggy on Jan 2, 2014 | 14 comments

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: