2026-02-09 2026-02-09 做题日记 ctfshow题解1.0 ctfshow-web512345678910111213141516171819202122232425262728293031323334353637383940where is flag?<?phperror_reporting(0); ?><html lang="zh-CN"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0" /> <title>ctf.show_web5</title></head><body> <center> <h2>ctf.show_web5</h2> <hr> <h3> </center> <?php $flag=""; $v1=$_GET['v1']; $v2=$_GET['v2']; if(isset($v1) && isset($v2)){ if(!ctype_alpha($v1)){ die("v1 error"); } if(!is_numeric($v2)){ die("v2 error"); } if(md5($v1)==md5($v2)){ echo $flag; } }else{ echo "where is flag?"; } ?></body></html> 审计一下,很简单md5加密➡ v1只能是字母,v2只能是数字或者数字+字母,并且二者MD5加密之后要相等 一搜就行,最终payload为?v1=QNKCDZO&&v2=240610708 得到flag Prev Hello World Next web学习笔记之XSS攻击喵
Leave a comment