sqli-lab学习笔记

sqli-lab学习经验

学习sqli注入必备语句:
查库:select schema_name from information_schema.schemata

查表:select table_name from information_schema.tables where table_schema=‘security’(此处拿security库为例)

查字段:select column_name from information_schema.columns where table_name=‘users’(此处拿users表例)

查字段的值:select username,password from security.users(此处拿username,password字段为例)

注入类型:

字符注入,整型注入,报错注入,布尔盲注,时间注入,宽字节注入,堆叠注入

登录MySQL:

bin>mysql -u root -p

注释符:

–+
–空格

特殊注释符:;%00

查询列数语句:

order by

联合查询语句:

union_select

将所有的数据连接成一行显示:

group_concat

区分:

concat_ws(’~’,A,B)
显示为:(A,B)

left()函数:

left从左侧截取,正确返回1,错误侧返回0

写入文件:

into outfile

判断数据长度:

length(database()=X)

updatexml函数:

格式:updatexml(1,concat(0x7e,(构造语句),0x7e),1)


有志者,事竟成!希望你学有所成,加油吧!♥♥♥

如文章有错误感谢指出,联系Q:2181796086

如文章有帮助点赞关注一下吧!

  • 10
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Brucye

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值