西邮linux兴趣小组2014纳新免试题(二)

【第二关】

题目


http://round2.sinaapp.com/

分析


打开后,戳进去发现一句名言,然后下一戳的url提示。

在网页源码中得到Page1024提示,于是写一个脚本

#!/bin/bash

url_pre="http://round2.sinaapp.com/"
next=$1
while [ -n "$next" ]
do
	url="${url_pre}${next}"
	r=`curl -s $url`
	next=`echo $r | grep -o -E '.{32}\.html'`
	echo "[" $next "]----"
done

几分钟后,URL不在变化,得到 9f5b05cba2b2f85f9409921ccbbef642.html

访问 http://round2.sinaapp.com/9f5b05cba2b2f85f9409921ccbbef642.html

网页源码无任何提示,图片名称为 problem.jpg

用hexedit打开,在尾部发现如下代码

00285D60   0A 0D 0A 0D  0A 0D 0A 0D  0A 0D 0A 0D  0A 0D 0A 5F  ..............._
00285D70   5E 2A 28 22  5E 6F 5E 22  2B 28 2A 22  40 5F 40 22  ^*("^o^"+(*"@_@"
00285D80   3E 3E 37 29  29 2D 37 34  3F 70 75 74  63 68 61 72  >>7))-74?putchar
00285D90   28 5F 5E 2A  26 28 22 2D  20 2D 21 22  5B 31 5D 29  (_^*&("- -!"[1])
00285DA0   2D 31 33 3F  2A 28 26 22  3D 5E 5F 5E  3D 38 39 3A  -13?*(&"=^_^=89:
00285DB0   35 31 31 32  33 3D 3C 3F  38 3E 3E 3C  3E A3 AD 5F  51123=<?8>><>.._
00285DC0   A3 AD 62 22  5B 5F 5D 2B  34 29 5E 5F  2D 31 3A 31  ..b"[_]+4)^_-1:1
00285DD0   30 29 2C 6D  61 69 6E 28  2A 28 22 5E  6F 5E 79 22  0),main(*("^o^y"
00285DE0   2B 31 29 2D  27 6E 27 2B  5F 29 3A 2A  22 5E 5F 5E  +1)-'n'+_):*"^_^
00285DF0   22 3B 67 65  74 63 68 28  29 3B 0D 0A  0D 0A 0D 0A  ";getch();......
00285E00   1A   

和C代码很相似,直接写入C程序中运行。

#include<stdio.h>
int main(int _)
{
	_^*("^o^"+(*"@_@">>7))-74?putchar(_^*&("- -!"[1])-13?*(&"=^_^=89:51123=><>-_-b"[_]+4)^_-1:10),main(*("^o^y"+1)-'n'+_):*"^_^";
	return 0;
}

运行结果:8886544455532321��

观察problem.jpg图片上的语句

with my whole heart i choose to believe you
but you will never figure out how it shows
like you'd never know it'll be sunny or rainy tomorrow
passing by my side but not recognizing my smile
still it may be too hard for my heart to hide
luckily i am young to enjoy the process of kinding
luckily it isn't too late to go on looking
i'll give you simple freedom, so just keep soaring
even the final destination is the vast ocean
even the sky is the limit
to my heart the key is your glimmer of amusement in the eyes
just as to my soul the misery is your frown of dread
solving this mystery, it'll take my whole life
having no question at all i will love you till the end of time
cold as snow, or warm as sunshine, it is always the same
well beloved one, can you hear my pary?

尝试2个数字一组,横纵坐标查找字母,未果

尝试2个数字一组,横纵坐标查找单词,未果

尝试1个数字一组,按其所处位置为行号,数字本身为列号

8    believe
8    it
8    or
6    not
5    too
4    young
4    too
4    simple
5    is
5    the
5    key
3    to
2    this
3    question
2    as
1    well

输入tooyoungtoosimple得到 http://sortsth.sinaapp.com/,即第三关

 

posted @ 2014-04-18 19:37  雨中尘埃  阅读(237)  评论(0编辑  收藏  举报