hackthis攻略(Intermediate Level)

Intermediate Level 1

这里写图片描述
这个比较简单,改一下url就可以了
这里写图片描述


Intermediate Level 2

这里写图片描述
和Basic Level 3类似的解决办法
这里写图片描述
搞一个按钮出来,点击就通过了


Intermediate Level 3

这里写图片描述
虽然写了danger,但是我还是义无反顾的点击了,然后才知道不能点,点了就失败了
这关考察的是cookie,我们先安装一个chrome插件

https://chrome.google.com/webstore/detail/edit-this-cookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en

安装后打开
这里写图片描述
值显示的是false,我们把它改成true后点击确认,再点击这个danger图片,就可以过关了


Intermediate Level 4

这里写图片描述
这关,考察xss
我们试着将代码直接填入框内试试看
这里写图片描述
我们发现,当我们填入

<script>alert('HackThis!!');</script>

提交后,下方只显示了 alert(‘HackThis!!’); 说明页面将script标签给过滤了
这时候我们很明确了,我们可以试着构造代码,让页面过滤我们的script标签,然后在过滤后的代码里做文章,这样来绕过

<<script>script>alert('HackThis!!');</script</script>>

这样就可以了


Intermediate Level 5

这里写图片描述
图片上面写着,登录失败后ip将被锁定10秒钟
我们随便填一个用户名和密码进去
这里写图片描述

Jun 11 01:05:42: Failed password for gfdh from ***.***.61.122

下方我们可以看到被封禁的时间和ip等等信息,这时候我们可以考虑log注入
关于log注入的详细信息,可以参考这篇文章:https://www.cnblogs.com/coderzh/archive/2008/12/15/1355530.html
所以我们在用户名那边填入 \n ,密码任意
于是日志就变成了

Jun 11 01:08:42: Failed password for 
 from ***.***.61.122

新增了一行,变成了登录成功了,这意味着这个登录是通过查看日志来判断我们是否登录成功………….


Intermediate Level 6

这里写图片描述
登录,登录者的真实名字是Sandra Murphy(而不是用户名),不是使用SQL注入
看一下提示,显示了一篇关于xml的文章,所以我们考虑xpath注入
这里写图片描述
顺序是login,password,realname
关于xpath注入,不了解的可以看一下这篇文章:https://blog.csdn.net/quiet_girl/article/details/50588130
现在我们来构造用户名和密码
Username:’ or ”=’
Password:’ or ”=” and realname/text()=’Sandra Murphy

成功


Intermediate Level 结束
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Over a decade ago (nearly eternity in Internet Time), Randal Schwartz wrote the first edition of Learning Perl. In the intervening years, Perl itself has grown substantially from a "cool" scripting language used primarily by Unix system administrators to a robust object-oriented programming (OOP) language that runs on practically every computing platform known to mankind. Throughout its four editions, Learning Perl remained the same size (about 300 pages) and continued to cover much of the same material to remain compact and accessible to the beginning programmer. But there is much more to learn about Perl now than when that first book was written. Randal called the first edition of this book Learning Perl Objects, References, and Modules, and now it's Intermediate Perl, but we like to think of it as just Learning More Perl. [*] This is the book that picks up where Learning Perl leaves off. We show you how to use Perl to write larger programs. [*] Don't ask why it isn't called that. We must have had 300 emails on the subject. Okay, ask, since we know you're going to anyway. You never really stop learning Perl, so Learning More Perl doesn't really tell you much about the book. Our editor chose the name, which tells you what to expect. As in Learning Perl, we designed each chapter to be small enough to read in just an hour or so. Each chapter ends with a series of exercises to help you practice what you've just learned, and the answers are in the appendix for your reference. And like Learning Perl, we've developed the material in this book for a teaching environment and used it in that setting, including for our own use at Stonehenge Consulting Services, as we conduct on-site and open-enrollment trainings. You don't have to be a Unix guru, or even a Unix user, to benefit from this book. Unless otherwise noted, everything in this book applies equally well to Windows ActivePerl from ActiveState and all other modern implementations of Perl. To us

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值