{"id":379,"date":"2026-01-19T19:37:14","date_gmt":"2026-01-19T11:37:14","guid":{"rendered":"https:\/\/www.hurkin.top\/?p=379"},"modified":"2026-01-19T19:47:43","modified_gmt":"2026-01-19T11:47:43","slug":"solar%e7%ac%ac%e4%ba%8c%e5%b1%8a%e5%ba%94%e6%80%a5%e5%93%8d%e5%ba%94%e6%9d%af-dmz%e5%ba%94%e6%80%a5%e5%93%8d%e5%ba%94-dmz_ubuntud1-writeup","status":"publish","type":"post","link":"https:\/\/www.hurkin.top\/index.php\/2026\/solar%e7%ac%ac%e4%ba%8c%e5%b1%8a%e5%ba%94%e6%80%a5%e5%93%8d%e5%ba%94%e6%9d%af-dmz%e5%ba%94%e6%80%a5%e5%93%8d%e5%ba%94-dmz_ubuntud1-writeup\/","title":{"rendered":"Solar\u7b2c\u4e8c\u5c4a\u5e94\u6025\u54cd\u5e94\u676f-DMZ\u5e94\u6025\u54cd\u5e94-DMZ_Ubuntud1 WriteUp"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/xj.edisec.net\/challenges\/380\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/xj.edisec.net\/challenges\/380<\/a><\/p>\n\n\n<pre><code>\u4eff\u771fDMZ\u73af\u5883\u5e94\u6025\u54cd\u5e94\n\u63cf\u8ff0\uff1a\n\u672c\u6b21\u73af\u5883\u53d6\u81ea\u4e8e\u5b9e\u9645\u5e94\u7528\u4e2ddmz\u9694\u79bb\uff0c\u4eff\u771f\u6a21\u62df\u4e86(\u751f\u4ea7\u8f66\u95f4\/\u6d4b\u8bd5\u8f66\u95f4)\u73af\u5883\uff0c\u5176\u4e2dWindows server 2019\u7cfb\u7edf\u4e3a\u4e3b\u8981\u7a81\u7834\u70b9\uff0c\u6b64\u673a\u5668\u642d\u5efa\u4e86\u4e00\u4e2a\u5bf9\u5916\u5f00\u653e\u7684\u8bba\u575b\uff0c\u4ee5\u4fbf\u4e8e\u8ba9\u5458\u5de5\u3001\u5ba2\u6237\u7b49\u80fd\u591f\u53ca\u65f6\u770b\u5230\u4f01\u4e1a\u52a8\u6001\n\u7531\u4e8e\u4f01\u4e1a\u5bf9\u4e8e\u7f51\u7edc\u5b89\u5168\u758f\u5ffd\uff0c\u672a\u5bf9\u751f\u4ea7\u8f66\u95f4\u53ca\u5176\u5b83\u533a\u57df\u670d\u52a1\u5668\u505a\u7269\u7406\u9694\u79bb\uff0c\u5bfc\u81f4\u653b\u51fb\u8005\u4ee5Windows server 2019\u7cfb\u7edf(DMZ1)\u4e3a\u7a81\u7834\u6263\u653b\u51fb\u6210\u529f\uff0c\u83b7\u53d6\u7ec8\u7aef\u6743\u9650\u540e\uff0c\u653b\u51fb\u8005\u672a\u6536\u624b\uff0c\u800c\u662f\u8fdb\u884c\u5185\u7f51\u6f0f\u6d1e\u626b\u63cf\uff0c\u62ff\u4e0b\u53e6\u4e00\u53f0Ubuntu(DMZ2)\u7684\u673a\u5668\uff0c\u5e76\u505a\u4e86\u6743\u9650\u7ef4\u6301\u64cd\u4f5c\uff0c\u8bf7\u6839\u636e\u9898\u76ee\u63cf\u8ff0\u4f9d\u6b21\u6392\u67e5\u8fdb\u884c\u5b66\u4e60\n\u6ce8\u610f\uff1a\u8fd9\u4e9b\u653b\u51fb\u90fd\u662f\u5728\u65e0\u5b89\u5168\u8bbe\u5907\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u7684\uff0c\u6240\u4ee5\u5728\u5b9e\u6218\u4e2d\u9047\u5230\u9700\u6839\u636e\u65e5\u5fd7\u53ca\u53ef\u80fd\u5b58\u5728\u7684\u6f0f\u6d1e\u53bb\u5224\u65ad\u3001\u6d4b\u8bd5\u3001\u590d\u76d8\u7b49\u6761\u4ef6\u603b\u7ed3\n\u6ce8\u610f\uff1aweb\u65e5\u5fd7\u4e0e\u7cfb\u7edf\u65e5\u5fd7\u6709\u65f6\u533a\u5dee\u522b\uff0c\u8fd9\u4e5f\u4eff\u771f\u4e86\u5728\u5b9e\u6218\u4e2d\u4e00\u4e9b\u5f00\u653e\u914d\u7f6e\u4e0d\u5f53\u5bfc\u81f4\u7684\u6eaf\u6e90\u96be\u5ea6\u52a0\u5927\u95ee\u9898\n\u673a\u56682\uff1aUbuntu(\u5355\u7f51\u5361)\uff0c\u8d26\u53f7\u5bc6\u7801\uff1aroot\/Solarsec521<\/code><\/pre>\n<h2>1.\u5f00\u59cb\u6392\u67e5Ubuntu(DMZ2)\u73af\u5883\uff0c\u901a\u8fc7\u524d\u9762\u6392\u67e5\u7684\u5185\u7f51\u626b\u63cf\u7ed3\u679c\u4ee5\u53ca\u653b\u51fb\u8005\u4e0a\u4f20\u7684\u5de5\u5177\uff0c\u653b\u51fb\u8005\u5bf9\u4e8e\u5185\u7f51\u673a\u5668Ubuntu(DMZ2)\u8fdb\u884c\u4e86\u6f0f\u6d1e\u5229\u7528\uff0c\u6839\u636e\u76f8\u5173\u7ebf\u7d22\u672c\u5730\u8bbf\u95ee\u76f8\u5173\u7aef\u53e3\uff0c\u653b\u51fb\u8005\u4e3a\u4e86\u6743\u9650\u7ef4\u6301\uff0c\u540e\u671f\u8fdb\u884c\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\uff0c\u63d0\u4ea4\u653b\u51fb\u8005\u5728web\u7aef\u65b0\u589e\u7684\u8d26\u53f7\uff0c\u63d0\u4ea4\u793a\u4f8b\uff1aflag{user} flag{system}<\/h2>\n<p>\u7528fscan\u626b\u52308848\u7aef\u53e3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hurkinimages.oss-cn-hangzhou.aliyuncs.com\/images\/20260119193141897.png\" alt=\"image-20260119184757177\" \/><\/p>\n<p>\u626b\u52308848\u7aef\u53e3<\/p>\n<p>8848\u7aef\u53e3\u5927\u6982\u7387\u662fAlibaba Nacos \u9ed8\u8ba4\u7aef\u53e3\uff0c\u4e14fscan\u5339\u914d\u4e86Nacos\u7684\u6307\u7eb9<\/p>\n<p>\u5c1d\u8bd5\u5f31\u53e3\u4ee4nacos\/nacos\u767b\u5165<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hurkinimages.oss-cn-hangzhou.aliyuncs.com\/images\/20260119193145603.png\" alt=\"image-20260119185311112\" \/><\/p>\n<p>\u7528\u6237\u7ba1\u7406\u627e\u5230<strong>system<\/strong><\/p>\n<p><strong>flag{system}<\/strong><\/p>\n<h2>2.\u653b\u51fb\u8005\u5728web\u7aef\u83b7\u53d6\u5230\u4e86\u654f\u611f\u4fe1\u606f\u540e\u83b7\u53d6\u5230\u4e86\u7ec8\u7aef\u6743\u9650\uff0c\u5199\u5165\u4e86\u9690\u85cf\u7528\u6237\uff0c\u63d0\u4ea4\u5176\u7528\u6237\u540d\uff0c\u63d0\u4ea4\u793a\u4f8b\uff1aflag{user}<\/h2>\n<p>\u4e24\u4e2a\u4fe1\u606f\uff0c\u7ec8\u7aef\u6743\u9650\u548c\u9690\u85cf\u7528\u6237<\/p>\n<pre><code>root@solar:~# cat \/etc\/passwd\nroot:x:0:0:root:\/root:\/bin\/bash\ndaemon:x:1:1:daemon:\/usr\/sbin:\/usr\/sbin\/nologin\nbin:x:2:2:bin:\/bin:\/usr\/sbin\/nologin\nsys:x:3:3:sys:\/dev:\/usr\/sbin\/nologin\nsync:x:4:65534:sync:\/bin:\/bin\/sync\ngames:x:5:60:games:\/usr\/games:\/usr\/sbin\/nologin\nman:x:6:12:man:\/var\/cache\/man:\/usr\/sbin\/nologin\nlp:x:7:7:lp:\/var\/spool\/lpd:\/usr\/sbin\/nologin\nmail:x:8:8:mail:\/var\/mail:\/usr\/sbin\/nologin\nnews:x:9:9:news:\/var\/spool\/news:\/usr\/sbin\/nologin\nuucp:x:10:10:uucp:\/var\/spool\/uucp:\/usr\/sbin\/nologin\nproxy:x:13:13:proxy:\/bin:\/usr\/sbin\/nologin\nwww-data:x:33:33:www-data:\/var\/www:\/usr\/sbin\/nologin\nbackup:x:34:34:backup:\/var\/backups:\/usr\/sbin\/nologin\nsys-update:x:0:0::\/var\/tmp\/.sys:\/bin\/bash\nlist:x:38:38:Mailing List Manager:\/var\/list:\/usr\/sbin\/nologin\nirc:x:39:39:ircd:\/run\/ircd:\/usr\/sbin\/nologin\ngnats:x:41:41:Gnats Bug-Reporting System (admin):\/var\/lib\/gnats:\/usr\/sbin\/nologin\nnobody:x:65534:65534:nobody:\/nonexistent:\/usr\/sbin\/nologin\n_apt:x:100:65534::\/nonexistent:\/usr\/sbin\/nologin\nsystemd-network:x:101:102:systemd Network Management,,,:\/run\/systemd:\/usr\/sbin\/nologin\nsystemd-resolve:x:102:103:systemd Resolver,,,:\/run\/systemd:\/usr\/sbin\/nologin\nmessagebus:x:103:104::\/nonexistent:\/usr\/sbin\/nologin\nsystemd-timesync:x:104:105:systemd Time Synchronization,,,:\/run\/systemd:\/usr\/sbin\/nologin\npollinate:x:105:1::\/var\/cache\/pollinate:\/bin\/false\nsyslog:x:106:113::\/home\/syslog:\/usr\/sbin\/nologin\nuuidd:x:107:114::\/run\/uuidd:\/usr\/sbin\/nologin\ntcpdump:x:108:115::\/nonexistent:\/usr\/sbin\/nologin\ntss:x:109:116:TPM software stack,,,:\/var\/lib\/tpm:\/bin\/false\nlandscape:x:110:117::\/var\/lib\/landscape:\/usr\/sbin\/nologin\nfwupd-refresh:x:111:118:fwupd-refresh user,,,:\/run\/systemd:\/usr\/sbin\/nologin\nusbmux:x:112:46:usbmux daemon,,,:\/var\/lib\/usbmux:\/usr\/sbin\/nologin\nsshd:x:113:65534::\/run\/sshd:\/usr\/sbin\/nologin\nsolar:x:1000:1000:Solarsec:\/home\/solar:\/bin\/bash\nlxd:x:999:100::\/var\/snap\/lxd\/common\/lxd:\/bin\/false<\/code><\/pre>\n<p>\u5176\u4e2d\u6ce8\u610f\/bin\/bash\u548c\u9690\u85cf\u6587\u4ef6<\/p>\n<pre><code>sys-update:x:0:0::\/var\/tmp\/.sys:\/bin\/bash<\/code><\/pre>\n<p>\/var\/tmp\/.sys\u4e3a\u9690\u85cf\u6587\u4ef6\uff0c\u7b26\u5408\u540e\u95e8\u7528\u6237\u7684\u884c\u4e3a<\/p>\n<p><strong>flag{sys-update}<\/strong><\/p>\n<h2>3.\u6e05\u9664\u653b\u51fb\u8005\u5728web\u7aef\u65b0\u589e\u7684\u7528\u6237\u540d\u540e\uff0c\u524d\u5f80\/var\/flag\/1\u6587\u4ef6\u4e2d\u8bfb\u53d6flag\u5e76\u63d0\u4ea4<\/h2>\n<p>\u5728web\u7aef\u5220\u9664system\u7528\u6237<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hurkinimages.oss-cn-hangzhou.aliyuncs.com\/images\/20260119193149858.png\" alt=\"image-20260119185653952\" \/><\/p>\n<p>flag{ad31ea22e324ee6effd454decf7477c9}<\/p>\n<h2>4.\u6e05\u9664\u653b\u51fb\u8005\u5728\u670d\u52a1\u5668\u65b0\u589e\u7684\u7528\u6237\u540d\u6240\u6709\u4fe1\u606f\uff0c\u524d\u5f80\/var\/flag\/2\u6587\u4ef6\u4e2d\u8bfb\u53d6flag\u5e76\u63d0\u4ea4<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/hurkinimages.oss-cn-hangzhou.aliyuncs.com\/images\/20260119193208666.png\" alt=\"image-20260119190014017\" \/><\/p>\n<p>\u7528userdel\u65f6\u53d1\u73b0<code>sys-update<\/code> \u7684 shell \u6b63\u5728\u88ab PID 1 \u4f7f\u7528<\/p>\n<p>\u5148\u5c06etc\/passwd\u4e2d<\/p>\n<pre><code>x\u00a0sys-update:x:0:0::\/var\/tmp\/.sys:\/bin\/bash<\/code><\/pre>\n<p>\u8fd9\u4e00\u884c\u5220\u6389<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hurkinimages.oss-cn-hangzhou.aliyuncs.com\/images\/20260119193210656.png\" alt=\"image-20260119191240251\" \/><\/p>\n<p>\u7136\u540e\u5220\u9664\/var\/tmp\/.sys\u3002flag\u5c31\u51fa\u6765\u4e86<\/p>\n<p><strong>flag{85fdb55f08925b3ae7149e869124f2c4}<\/strong><\/p>\n<h2>5.\u5f53\u524dweb\u7aef\u5b58\u5728\u6f0f\u6d1e\uff0c\u5148\u505c\u6b62\u6b64web\u670d\u52a1\u8fdb\u7a0b\u540e\uff0c\u524d\u5f80\/var\/flag\/3\u6587\u4ef6\u4e2d\u8bfb\u53d6flag\u5e76\u63d0\u4ea4<\/h2>\n<p>\u56e0\u4e3a\u786e\u8ba4\u662fnacos\uff0c\u6b63\u5e38\u505c\u6b62\u5373\u53ef<\/p>\n<pre><code>systemctl stop nacos<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/hurkinimages.oss-cn-hangzhou.aliyuncs.com\/images\/20260119193214103.png\" alt=\"image-20260119191443060\" \/><\/p>\n<p><strong>flag{163e32607debcc6091e993929afe8064}<\/strong><\/p>\n<h2>6.\u653b\u51fb\u8005\u901a\u8fc7web\u6f0f\u6d1e\u62ff\u5230\u4e86root\u8d26\u53f7\u5bc6\u7801\uff0c\u8bf7\u4fee\u6539\u5bc6\u7801\u540e\uff0c\u524d\u5f80\/var\/flag\/4\u6587\u4ef6\u4e2d\u8bfb\u53d6flag\u5e76\u63d0\u4ea4<\/h2>\n<p>\u7528<strong>passwd root<\/strong>\u91cd\u7f6e\u5bc6\u7801\u5373\u53ef<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/hurkinimages.oss-cn-hangzhou.aliyuncs.com\/images\/20260119193217956.png\" alt=\"image-20260119191751862\" \/><\/p>\n<p><strong>flag{2d1848c8560becac27d30a5d4daf6da3}<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>https:\/\/xj.edisec.net\/challenges\/380 \u4eff\u771fDMZ\u73af\u5883\u5e94\u6025\u54cd\u5e94 \u63cf\u8ff0\uff1a \u672c\u6b21\u73af\u5883\u53d6\u81ea\u4e8e\u5b9e\u9645\u5e94\u7528\u4e2d &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-379","post","type-post","status-publish","format-standard","hentry","category-some-competition"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/posts\/379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":1,"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/posts\/379\/revisions\/380"}],"wp:attachment":[{"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hurkin.top\/index.php\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}