本文章于2010-04-26 09:08:37发布在本人百度空间.后因某些原因临时和谐了.现在拿出来看看还是能感觉到自己一直在技术的道路上成长着.缅怀即将逝去的大学校园生活.
World of Command
Just enjoy, :)
guest@syclover:~$ cat WELCOME
Welcome to the World of Command.
Use "ls", "cat", "cd", "make", and "apt-get" to discover the world.
//应该是比较简单的。。。先来看一看目录形式吧
guest@syclover:~$ pwd
You are in a maze of twisty passages, all alike.
guest@syclover:~$ uname
Illudium Q-36 Explosive Space Modulator
//这些都是没有的信息。。。。
guest@syclover:~$ ls -a
· .
· ..
· .hint
· LICENSE
· WELCOME
//发现了第一个提示。hint
guest@syclover:~$ cat .hint
/tmp
//肯定在这个目录里了。。先进去看看
guest@syclover:~$ cd /tmp
guest@syclover:~$ ls -a
· .
· ..
· .hint
· LICENSE
· WELCOME
//回环目录,看来是进不去了。。那直接查看内容吧。。
guest@syclover:~$ ls /tmp
· alist.cpp
· Makefile
//行了。。所有东西都出来了、、、
guest@syclover:~$ cat /tmp/Makefile
CC = g++
CFLAGS = -Wall -g
all:
echo 'make: *** No rule to make target `all\'. Stop.'
alist: alist.cpp
$(CC) $(CFLAGS) -o $@ $^
clean:
rm -f alist
guest@syclover:~$ make -C /tmp alist
make: Entering directory `/tmp'
g++ -Wall -g -o alist alist.cpp
make: The program 'g++' is currently not installed. You can install it by typing:
make: sudo apt-get install g++
make: g++: command not found
make: *** [alist] Error 127
make: Leaving directory `/tmp'
//没有编译器。。。果然要用 apt-get
guest@syclover:~$ sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
g++
0 upgraded, 1 newly installed, 0 to remove.
Need to get 1,446GB of archives.
After this operation, 41.0TB of additional disk space will be used.
Get:1 http://repository.ccav.com karmic/main g++ 4:4.4.1-1ubuntu2 [1,446GB]
Fetched 1,446GB in 1s (1,113TB/s)
Selecting previously deselected package g++.
(Reading database ... 6121 files and directories currently installed.)
Unpacking g++ (from .../g++_4%3a4.4.1-1ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Setting up g++ (4:4.4.1-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.
//g++安装完成
guest@syclover:~$ make -C /tmp alist
make: Entering directory `/tmp'
g++ -Wall -g -o alist alist.cpp
make: Leaving directory `/tmp'
make: Leaving directory `/tmp'
guest@syclover:~$ /tmp/alist
//编译运行。。
Th4s is a Linux P s w Hash: 05$Led8N1kvbWqyQ5DwJF7KTep/Qrf.csc4QMrVMg25V3aUk3RKejcba
Use "wget", "irc", "apt-get", "poweroff", "reboot", "exit", "sleep", "man",
"vim", "emacs", "su", "uname", and Konami Code to have more fun.
Very special thanks to xkcd.com, you guys are awesome.
//就这么轻而易举的拿到了hash, you guys are awesome...这很了不起吗?这道题目的难点不是在这里,并且根本没有涉及LINUX操作系统的更高级的操作。难点在这个HASH。。这个HASH看着不是一般的别扭。根本不像shadow的加密方法算出来的密文。。所以要得到Key值还需要后续解密步骤了。。
==============================================================================
Th4s is a Linux P s w Hash: 05$Led8N1kvbWqyQ5DwJF7KTep/Qrf.csc4QMrVMg25V3aUk3RKejcba先打个MAKR。
==============================================================================