googleの人材募集の解答編パート2
ということで、第2弾。
無事http://7427466391.com/を
発見したら、今後は
Congratulations. You've made it to level 2. Go to www.Linux.org and enter Bobsyouruncle as the login and the answer to this equation as the password.
f(1)= 7182818284
f(2)= 8182845904
f(3)= 8747135266
f(4)= 7427466391
f(5)= __________
とある。なんだかなー。一応、10桁の素数.com はBINGOしなかったはずだから、、
まあクイズみたいなもんだ。f(4)は素数、それ以外はなんかの10桁だ。
共通点が見つかればもう解けたも同然。
実は全桁数をたすと49になる。その10桁だ。
つーことで、プログラム書く、、ぽりぽり。
すげー適当、パート1と同じ部分はカット。 実行すると、、、(パート1)と同じ print "make e$no go!\n"; $cnt=0; while($cnt<999999999999){ $host =substr($e,$cnt++,10); $s0 =substr($host,0,1); $s1 =substr($host,1,1); $s2 =substr($host,2,1); $s3 =substr($host,3,1); $s4 =substr($host,4,1); $s5 =substr($host,5,1); $s6 =substr($host,6,1); $s7 =substr($host,7,1); $s8 =substr($host,8,1); $s9 =substr($host,9,1); $total = $s0 + $s1 + $s2 + $s3 + $s4+ $s5+ $s6+ $s7+ $s8 + $s9; #print "$host is $s1 $s2 $s3 $total \n"; if ($total eq 49) { print "BINGO! f($wgetcnt)=$host\n";$wgetcnt++; } if ($wgetcnt > 6) {exit;} }
と、無事 f(5) の値が出てくる。Here we go e-00010.txt make e10 go! BINGO! f(1)=7182818284 BINGO! f(2)=8182845904 BINGO! f(3)=8747135266 BINGO! f(4)=7427466391 BINGO! f(5)=5966290435 BINGO! f(6)=2952605956
http://www.Linux.orgに位ってID:Bobsyouruncle
を入れ、パスワードにf(5)の数字を入れると無事
http://www.google.com/labjobs/index.htmlが表示される。
まあ、簡単だったし、最初のステージではgoogleの意図しない方法で解けたので
BUGレポートを送ってあげた。
オレの英語は無茶苦茶でしょう。たぶん通じない。
うーん、いいたい日本語は、、
Subject: security-hole in 1st stage.
Date: Thu, 15 Jul 2004 10:49:38 +0900
From: funa
To: problem-solver@google.comHello , I am a japanese hacker(^_^)/.
#but this is real mail address.1st stage Question have a big security hole.
NOT use "e" and "Prime number" function and get http://7427466391.com/
HOW?
1st. get a "e" strings use google.
http://www.google.co.jp/search?sourceid=navclient&hl=ja&ie=UTF-8&oe=UTF-8&q=e%E3%81%AE%E5%80%A4
HIT site is http://ja0hxv.calico.jp/pai/eval.html2nd. make a program.
wget "e"strings {0..9}.com
wget "e"strings {1..10}.com
wget "e"strings {2..11}.com
...
I can found the http://7427466391.com/ 99th site is HIT.program is http://ftvjapan.ddo.jp/~funa/google/hack.txt <= here.
Thank you for your Questions. bye bye!
P.S.
2nd stage program is http://ftvjapan.ddo.jp/~funa/google/hack2.txt <= here
やあ、僕は日本のハッカーだ、
本物のメアドだよ、嘘じゃない。
最初の問題には重要なセキュリティホールがあるよ。
eの関数も素数の関数も使わないで答えを出すことが出来た。
どうやってかって?
まず、eの値をぐぐる。するとここにeの値の文字列がある。
それをもとに、頭から10桁づつ.com をwget していくわけさ。
すると99サイト目にヒットした。
そのプログラムはここにあるよ。
楽しい問題をありがとう、バイバイ。
追伸
2問目の解答用プログラムはここ。
さて、どんな返事来るか、、、
あ、自動メールきやがった。
Subject: Re: [#12225421] security-hole in 1st stage.
Date: Thu, 15 Jul 2004 01:50:24 -0000
From: problem-solver@google.com
To: "funa"Dear Problem Solver,
Thanks for taking the time to play with our little brain-teaser and for
sending us your solution. While you won't find a confirmation of the
answer in this email, we did want to let you know that your message was
received and that we'll be taking a look at it. If you submitted a resume,
we'll be spending some time with that as well. If it seems like there
might be a fit with a position we have open, we'll contact you within the
next few days.And as for the answer to the puzzle, we'll post the ads and the solution
on our site within a couple of months, after those who are a little slower
than you have had a chance to work on it a bit longer. Thanks again for
your interest in Google.The Google Labs Engineering Team