3月10号晚上,我在v2ex上看到了这篇帖子 《JetBrains Quest,解开可获得全家桶三个月免费订阅》 https://www.v2ex.com/t/651662,当时准备已经洗完澡,准备休息了,看到这个,勾起了我的兴趣,虽然我用的是Community的版本……

No.0

首先看第一步,给出了一串文本,如下:

48 61 76 65 20 79 6f 75 20 73 65 65 6e 20 74 68 65 20 73 6f 75 72 63 65 20 63 6f 64 65 20 6f 66 20 74 68 65 20 4a 65 74 42 72 61 69 6e 73 20 77 65 62 73 69 74 65 3f

从这个文本来看,应该是16进制的文本, 直接将这个16进制转换成文本试下:

x = '4861766520796f75207365656e2074686520736f7572636520636f6465206f6620746865204a6574427261696e7320776562736974653f'
print(bytes.fromhex(x).decode('utf-8'))

果然,结果是:

Have you seen the source code of the JetBrains website?

那就去JetBrains的官网看看

No.1

在Chrome中打开JetBrains的官网 https://www.jetbrains.com,按下F12,查看网页源代码,终于被我发现了线索,路径为:html->body.home-page.header-no-overflow.body-adaptive->div.page->div.page__content:

<!--
      O
{o)xxx|===============-
      O

Welcome to the JetBrains Quest.

What awaits ahead is a series of challenges. Each one will require a little initiative, a little thinking, and a whole lot of JetBrains to get to the end. Cheating is allowed and in some places encouraged. You have until the 15th of March at 12:00 CET to finish all the quests.
Getting to the end of each quest will earn you a reward.
Let the quest commence!

JetBrains has a lot of products, but there is one that looks like a joke on our Products page, you should start there... (hint: use Chrome Incognito mode)
It’s dangerous to go alone take this key: Good luck! == Jrrg#oxfn$

                 O
-===============|xxx(o}
                 O
-->

No.2

要找到JetBrains中图标像joke的产品,打开JetBrains的产品大全 https://www.jetbrains.com/products.html,joke缩写为jk,找到图标是jk的产品,点击它,会弹出一个窗口:

You have discovered our JetBrains Quest! If you don’t know what this is, you should start from Twitter, Facebook or LinkedIn.


To continue to the next challenge you need to go to the following link… But there is a problem, the last 3 digits are missing:


https://jb.gg/###


To get these digits you need to know how many prime numbers there are between 500 and 5000


Good Luck!

No.3

有一个网址https://jb.gg/###,后面的3位数字缺失,这个三位数字是500到5000之间的素数的个数。

一个简单的笨办法就是暴力穷举,反正是三位数,从100~999而已,使用程序跑非常快。
另外一个正常的方法,就是使用程序计算500到5000之间的素数。
我用的方法是搜索法,我在的google搜索“500 5000 prime”,第一个链接是1到5000之间的素数,我打开网址,把500到5000的素数拷贝出来,放到vscode中,有573个逗号,那么就是有574个素数了,打开这个网址https://jb.gg/574,会跳转到https://www.jetbrains.com/help/pycharm/getting-help.html#quest

打开的网址中,有一张图片,上面是个台球桌,有一张白纸,白纸的上面是JetBrains的名为YT产品的图标,下方是一串文字MPS-31816

No.4

JetBrains旗下名为YT的产品,是YouTracker,是一个bug追踪管理工具。而MPS是JetBrains旗下的另外一款工具,这个MPS-31816就是YouTracker中的bug编号。

打开YouTracker中的bug管理网址https://youtrack.jetbrains.com/issues,选择产品MPS,然后输入31816进行搜索,出现了,出现了,打开这个bug详情,地址是:https://youtrack.jetbrains.com/issue/MPS-31816

一个title为JetBrains Quest的bug,里面的内容是:

“The key is to think back to the beginning.” – The JetBrains Quest team

Qlfh$#Li#|rx#duh#uhdglqj#wklv#|rx#pxvw#kdyh#zrunhg#rxw#krz#wr#ghfu|sw#lw1#Wklv#lv#rxu#lvvxh#wudfnhu#ghvljqhg#iru#djloh#whdpv1#Lw#lv#iuhh#iru#xs#wr#6#xvhuv#lq#Forxg#dqg#iru#43#xvhuv#lq#Vwdqgdorqh/#vr#li#|rx#zdqw#wr#jlyh#lw#d#jr#lq#|rxu#whdp#wkhq#zh#wrwdoo|#uhfrpphqg#lw1#|rx#kdyh#ilqlvkhg#wkh#iluvw#Txhvw/#qrz#lw“v#wlph#wr#uhghhp#|rxu#iluvw#sul}h1#Wkh#frgh#iru#wkh#iluvw#txhvw#lv#‟WkhGulyhWrGhyhors†1#Jr#wr#wkh#Txhvw#Sdjh#dqg#xvh#wkh#frgh#wr#fodlp#|rxu#sul}h1#kwwsv=22zzz1mhweudlqv1frp2surpr2txhvw2

我观察了下这段密文,不像base64,也尝试了获取md5去base64,都没有结果。

3月10号晚上,我的工作就到这里了,已经到了12点,我准备第二天再看。

No.5

第二天,早早就到了公司,但是依然对这段密文无从下手。

这个时候我快放弃了,打开了v2ex上最初的那个帖子,帖子中一位名为shiji的回复者,给了我线索,这个线索就是caesar,同时提供了一个caesar解密的网址https://www.dcode.fr/caesar-cipher,这个时候我才知道有caesar这种方法。

使用这个网站进行解密,把上面获得的那段密文贴进去,然后解密,shift+3解出来的这段文本,就是正常的文本了:

Nice$#If#|ou#are#reading#this#|ou#must#have#worked#out#how#to#decr|pt#it1#This#is#our#issue#tracker#designed#for#agile#teams1#It#is#free#for#up#to#6#users#in#Cloud#and#for#43#users#in#Standalone/#so#if#|ou#want#to#give#it#a#go#in#|our#team#then#we#totall|#recommend#it1#|ou#have#finished#the#first#Quest/#now#it“s#time#to#redeem#|our#first#pri}e1#The#code#for#the#first#quest#is#‟TheDriveToDevelop†1#Go#to#the#Quest#Page#and#use#the#code#to#claim#|our#pri}e1#https=22www1jetbrains1com2promo2quest2

最终,得到了一个code,就是TheDriveToDevelop,填写code的网址是:http://www.jetbrains.com/promo/quest

至此,终于解出来了。

后记

解密确实非常吸引人,特别是解密成功后的感觉。

(这篇文章写于2020-03-11,但是因为这个活动2020-03-15才结束,所以这篇文章会于2020-03-16发布)

标签: quest, 解谜

添加新评论