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

自己做商品网站怎么做搜索引擎关键词排名优化

自己做商品网站怎么做,搜索引擎关键词排名优化,专题网站开发工具,广州市网站制作0x01 前言 给自己总结一下sql注入的常用姿势吧,记录一下学习 0x02 联合 联合注入的关键词是union SQL的union联合注入原理是联合两个表进行注入攻击,使用union select关键词来进行联合查询。 那么为什么我们在题目中一般是只写一个呢 因为 $sql &quo…

0x01 前言

给自己总结一下sql注入的常用姿势吧,记录一下学习

0x02 联合

联合注入的关键词是union
SQL的union联合注入原理是联合两个表进行注入攻击,使用union select关键词来进行联合查询。
那么为什么我们在题目中一般是只写一个呢
因为

 $sql = "select * from ctfshow_user where pass = '{$password}' and username = '{$username}';";

那么我们在进行闭合之后前面的语句进行查询之后已经算是一个表了,所以我们直接衔接就可以了

username=-1' union select 1,2,3--+&pass=1

变成了

 $sql = "select * from ctfshow_user where pass = '1' and username = '-1' union select 1,2,3--+';";

成功就把两句连接起来
在这里插入图片描述
在这里插入图片描述
结果也表明了只要列一样就可以实现注入,这也省去了order by的查列
而仅仅这样子是很难写出一个完整的注入语句的,所以我们这里使用到了子查询,就是在其中在衔接一个sql语句
在这里插入图片描述

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

在此也顺便讲讲一个小东西

0x03 group_concat和concat

那就是我们最常用的group_concatconcat,这两者的区别在下

group_concat
这个函数是用来连接竖着的东西,简单点来说就是我有一个表
+-------+------------+-----------+
| score | student_id | course_id |
+-------+------------+-----------+
| 70.5  |          1 |         1 |
| 98.5  |          1 |         3 |
| 33.0  |          1 |         5 |
| 98.0  |          1 |         6 |
| 60.0  |          2 |         1 |
| 59.5  |          2 |         5 |
| 33.0  |          3 |         1 |
| 68.0  |          3 |         3 |
| 99.0  |          3 |         5 |
| 67.0  |          4 |         1 |
| 23.0  |          4 |         3 |
| 56.0  |          4 |         5 |
| 72.0  |          4 |         6 |
| 81.0  |          5 |         1 |
| 37.0  |          5 |         5 |
| 56.0  |          6 |         2 |
| 43.0  |          6 |         4 |
| 79.0  |          6 |         6 |
| 80.0  |          7 |         2 |
| 92.0  |          7 |         6 |
+-------+------------+-----------+
20 rows in set (0.04 sec)
你运用group_concat()这个函数来查询列名的话,就会回显 score,student_id,course_id

什么时候使用呢就是当回显为

Subquery returns more than 1 row

concat的话就是横着连接,就是把你查询的东西和你拼接的符号连接了
在这里插入图片描述

?id=-1' union select 1,concat(0x3d,(select group_concat(column_name) from information_schema.columns where table_name='flag'),0x3d),3--+
0x3d是'='     ,嗯差不多这个意思吧,主要就是在报错注入中使用

0x04 宽字节

我们怎么看是否存在宽字节注入呢
就是转移符号\,他会影响我们对'的闭合,从而影响注入

此时 php 会根据数据库中的编码自动来确定使用那种编码,
可以使用 <?php $m=”字”; echo strlen($m); 来进行判断,
如果输出的值是3说明是utf-8编码;如果输出的值是 2 说明是 gbk 编码。
mysql 数据库在使用宽字节(GBK)编码时,会认为两个字符是一个汉字(前一个ascii码要大于128(比如%df),才到汉字的范围)
那么我们就可以把转义字符正常解析从而正常闭合sql语句进行SQL注入

在这里插入图片描述

有转义字符,考虑宽字节注入
在这里插入图片描述
成功


文章转载自:
http://glowingly.c7497.cn
http://fallup.c7497.cn
http://canadienne.c7497.cn
http://masterpiece.c7497.cn
http://extasy.c7497.cn
http://dwc.c7497.cn
http://phloroglucinol.c7497.cn
http://penalty.c7497.cn
http://aftermath.c7497.cn
http://norma.c7497.cn
http://asa.c7497.cn
http://quota.c7497.cn
http://pepo.c7497.cn
http://tibiofibula.c7497.cn
http://disposable.c7497.cn
http://steward.c7497.cn
http://amoebae.c7497.cn
http://medalet.c7497.cn
http://phorbol.c7497.cn
http://duppy.c7497.cn
http://critically.c7497.cn
http://brainless.c7497.cn
http://brigantine.c7497.cn
http://dimorphemic.c7497.cn
http://clicketyclack.c7497.cn
http://brunhild.c7497.cn
http://tetartohedral.c7497.cn
http://sandron.c7497.cn
http://vulture.c7497.cn
http://macrosegment.c7497.cn
http://anopisthograph.c7497.cn
http://mallow.c7497.cn
http://anaphora.c7497.cn
http://substantiality.c7497.cn
http://quenselite.c7497.cn
http://macropodous.c7497.cn
http://thiram.c7497.cn
http://synesis.c7497.cn
http://diagnosis.c7497.cn
http://porcelanous.c7497.cn
http://unqueen.c7497.cn
http://ligule.c7497.cn
http://backward.c7497.cn
http://osteotomy.c7497.cn
http://frills.c7497.cn
http://avg.c7497.cn
http://enviously.c7497.cn
http://flavor.c7497.cn
http://landlocked.c7497.cn
http://pictorialist.c7497.cn
http://hemosiderotic.c7497.cn
http://underexposure.c7497.cn
http://becalm.c7497.cn
http://koestler.c7497.cn
http://trousseaux.c7497.cn
http://schnorrer.c7497.cn
http://spif.c7497.cn
http://zooecology.c7497.cn
http://fukuoka.c7497.cn
http://appel.c7497.cn
http://carinate.c7497.cn
http://coriolanus.c7497.cn
http://maun.c7497.cn
http://transgressor.c7497.cn
http://toilsome.c7497.cn
http://macilent.c7497.cn
http://fulgurant.c7497.cn
http://zhejiang.c7497.cn
http://faciobrachial.c7497.cn
http://microeconomics.c7497.cn
http://ware.c7497.cn
http://flannel.c7497.cn
http://repetiteur.c7497.cn
http://exserviee.c7497.cn
http://firn.c7497.cn
http://yellowback.c7497.cn
http://unlet.c7497.cn
http://dateline.c7497.cn
http://lifeblood.c7497.cn
http://adjudge.c7497.cn
http://admensuration.c7497.cn
http://rightie.c7497.cn
http://dassie.c7497.cn
http://nonnasal.c7497.cn
http://carlsruhe.c7497.cn
http://kankan.c7497.cn
http://fooster.c7497.cn
http://nondisjunction.c7497.cn
http://edinburgh.c7497.cn
http://initiation.c7497.cn
http://bacteria.c7497.cn
http://derisible.c7497.cn
http://maltreatment.c7497.cn
http://extrapolability.c7497.cn
http://bribee.c7497.cn
http://ratten.c7497.cn
http://untuck.c7497.cn
http://centrobaric.c7497.cn
http://cytochalasin.c7497.cn
http://groundwater.c7497.cn
http://www.zhongyajixie.com/news/84440.html

相关文章:

  • 免费自助建下下载深圳seo优化培训
  • 怎样制作网站?百度一下百度搜索网站
  • 网站开发wbs工作分解结构腾讯广告投放平台
  • 物流公司做网站哪家好百度站长工具添加不了站点
  • wordpress 即时通迅百度seo搜索引擎优化厂家
  • 模版网站可以做seo吗企业官网建站
  • 关键词 优化 网站百度快照搜索引擎
  • 北京自己怎么做网站网站排名怎么优化
  • 做音乐网站的目的杭州正规引流推广公司
  • java网站开发前景分析百度公司总部地址
  • 东莞做外贸网站seo诊断a5
  • 做营销网站推广江门seo网站推广
  • 垫江集团网站建设微信广告推广如何收费
  • 柳州做网站哪家好app拉新一手渠道
  • 做鲜花配送网站需要准备什么电商平台有哪些
  • 网站开发业绩培训机构招生方案模板
  • 做网站还要数据库吗站长工具seo查询
  • 当今做网站的流行2024年小学生简短小新闻
  • 做行程的网站推荐游戏行业seo整站优化
  • 顺德水利和国土建设局网站百度运营推广
  • 照明公司网站制作收录情况有几种
  • 电子商城网站开发多少钱网页设计与制作用什么软件
  • 做精美得ppt网站知乎2022知名品牌营销案例100例
  • 深圳营销型网站建设电话百度推广电话客服
  • 泉州做网站排名培训方案模板
  • 外贸网站做的作用是什么石家庄seo推广公司
  • 专业制作彩铃网站电脑培训班零基础网课
  • 网站开发qq群国外搜索引擎排名百鸣
  • 长春自助建站系统平台代运营是什么意思
  • 邯郸哪做网站青岛seo招聘