Skip to content

Comment on Hack this for 20 BTC

Comments

Brute forced the 1 BTC award.

The HN user was 'petercooper'.

Did you use the site generator or did you implement in another language?

Using the console:

I wrote a wrapper function around the site generator that took a callback so the next string to test would be called recursively. If a public key matched the public key I was aiming for, I dumped the response to the console, otherwise I just called the wrapper function again.

Then I wrote a function that iterated over a list of strings and output an array with all the possible permutations.

Then I just fed an array of the userids of the top 20 users into that function and fed that function into my wrapper.

I opened 5 browser windows and fed each of them 20 userids to take advantage of multiple cores, but I'm not entirely sure that makes sense to do.

Congratulations! I'm curious to know - is that script now working on the 20BTC's challenge?

Unfortunately that script would take thousands of years to solve the challenge. Whoever does will need to use a much more creative method - probably something circumventing the need to brute-force.

And the password was 'petecoper'

Congrats!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.