HackThisSite/Basic 7解决方案

细节决定成败!

在正式进入黑客闯关界面之前我们可以看到一个tips:

The password is hidden in an unknown file, and Sam has set up a script to display a calendar. Requirements: Basic UNIX command knowledge.

说明这一关需要用过日历脚本执行unix命令找到隐藏的密码文件。

This time Network Security sam has saved the unencrypted level7 password in an obscurely named file saved in this very directory.

In other unrelated news, Sam has set up a script that returns the output from the UNIX cal command. Here is the script:

Enter the year you wish to view and hit 'view'.

说明密码文件就在本目录下,但是取了很复杂的名字。

本来是想用管道来搞定了,但是实验后发现不行。

后来直接用分好把两个命令分割开就OK了。

执行 ;ls

结果如下:

       January 2014
Mon Tue Wed Thu Fri Sat Sun
          1   2   3   4   5
  6   7   8   9  10  11  12
 13  14  15  16  17  18  19
 20  21  22  23  24  25  26
 27  28  29  30  31


.
..

cal.pl
index.php
k1kh31b1n55h.php
level7.php
直接访问: https://www.hackthissite.org/missions/basic/7/k1kh31b1n55h.php就能看到密码了。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值