<?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 Demax on Medium]]></title>
        <description><![CDATA[Stories by Demax on Medium]]></description>
        <link>https://medium.com/@denomax517?source=rss-db3d6f0ad768------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Bruyps8LX0xrfVKM</url>
            <title>Stories by Demax on Medium</title>
            <link>https://medium.com/@denomax517?source=rss-db3d6f0ad768------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:07:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@denomax517/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[UOFT CTF: Reverse Wordle]]></title>
            <link>https://medium.com/@denomax517/uoft-ctf-reverse-wordle-4ba98257bc92?source=rss-db3d6f0ad768------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ba98257bc92</guid>
            <dc:creator><![CDATA[Demax]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 15:29:17 GMT</pubDate>
            <atom:updated>2026-01-17T15:42:58.635Z</atom:updated>
            <content:encoded><![CDATA[<p>Challenge:</p><p>My friend said they always use the same starting word, can you help me find out what it is?</p><p>Submit the sha256 hash of the ALL CAPS word wrapped in the flag format uoftctf{…}</p><p>Author: janky</p><p>Solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*JONb6FQQfp3z77PrT_bi9w.png" /></figure><p>From the text file, the numerical figures above the mazes point to which wordle challenge number the wordle belongs to.</p><p>for instance</p><pre>Wordle challenge #1 = REBUT, wordle challenge #67 = CRASS and wordle challenge #1336 = DITTY</pre><p>The wordle challenge answers are found in forums like <a href="https://www.techradar.com/news/past-wordle-answers#section-past-wordle-answers-alphabetical-list">Techradar words.</a></p><p>2. Analyzing the letters</p><p>I tried the word letters against each answer by analyzing the feedback pattern (color of the boxes). Black means the answer letters cannot be fit in the positions. Yellow means any letter from the answer can fit except the letter in the same position as the box. Green means the answer letters can fit in their respective positions on the boxes.</p><p>Game 1 answer = REBUT, the letter required were from 3rd and 5th position because they were yellow. The letters needed are:</p><pre>3rd letter: R,E,U OR T (cannot be B, as B is at position 3 in REBUT)<br>5th letter: R,E,B OR u (cannot be T)</pre><p>Game 2 answer = CRASS, the letter required is in the 1st position. The rest are black, therefore they do not fit.</p><pre>1st letter: can be R,A, OR S (cannot be C, C is the first letter in CRASS) </pre><p>Game 3 answer = DITTY, the position to be filled by the letters from the answer is position 4. The rest are blacked hence cannot be filled.</p><pre>4th letter: can be D,I, OR Y (cannot be T, because T is in the 4th position)</pre><p>3. Deducing the word</p><p>I deduced the word letter by letter as follows:</p><p>Letter 1: From game 1, the letter cannot be R as R is the first letter in REBUT, form game 2 the letter might be R, A, S. From game 3 it cannot be D, I, T,Y. The potential letter that might be letter 1 are: <strong>A OR S</strong></p><p>Letter 3: From game 1, the letter might be R,E,U OR T. From game 2 it cannot be A. From game 3, it cannot be D,I,T OR Y: The potential letters are: <strong>E OR U</strong></p><p>Letter 4: From game 1, the letter cannot be R,E,B,U,T. From game 2 it cannot be C,R,A,S. From game 3 it can be D,I OR Y : Potential candidates are: <strong>D,I OR Y</strong></p><p>Letter 5: From game 1, the letter can be R, E, B, U. From game 2, it cannot be C,R,A OR S. From game 3 it cannot be D,I OR Y. Potential candidates are: <strong>E, B OR U</strong></p><p>Letter 2: This letter is blacked in all 3 games, hence it cannot be letters from the 3 answers i.e., R,E,B,U,T OR C,R,A,S OR D,I,Y.</p><p>From the letter, I deduced the word <strong>SQUIB</strong>, Q formed a word with the picked letter as opposed to other letters in the alphabet.</p><p>I used a python script to generate a sha256 hash sum of the word <strong>SQUIB</strong></p><pre> sha256 hash: uoftctf{64b28ded00856c89688f8376f58af02dc941535cbb0b94ad758d2a77b2468646}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ba98257bc92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Juicy Details]]></title>
            <link>https://medium.com/@denomax517/juicy-details-8c1a3a3fd3e9?source=rss-db3d6f0ad768------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c1a3a3fd3e9</guid>
            <dc:creator><![CDATA[Demax]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 04:39:51 GMT</pubDate>
            <atom:updated>2025-09-23T04:39:51.482Z</atom:updated>
            <content:encoded><![CDATA[<p>A guide to completing the <a href="https://tryhackme.com/room/juicydetails">Juicy room </a>on TryHackMe. It combines knowledge from intro into Log module and basic attack mechanisms such as: <em>Brute force, tools used during attacks and data exfiltration techniques.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oasd-xuPWjVTkC2DJ94zGw.png" /></figure><p><strong>Task A</strong></p><p><em>There are three logs that need to be downloaded and unzipped for analysis. This logs are access.log, auth.log and vsftpd.log</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*fzV8PDpNf9T2pkPNGPa27Q.png" /></figure><p><strong>Task B — Reconnaissance</strong></p><p>The aim of this task is to understand the attack surface by figuring out the attacker’s methodology and techniques:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DkwrQPbbsHxI6Mts4AnkSg.png" /></figure><p>The tasks are as follows:</p><ul><li>Figure out which techniques and tools were used during the attack</li><li>which endpoints were compromised</li><li>what sensitive data was accessed from the environment</li></ul><ol><li><strong>What tools did the attacker use? (Order by the occurrence in the log)</strong></li></ol><p>From the log analysis lab, command-line tools are the go to for analyzing logs. To analyse this logs I used awk, sort and uniq</p><pre>awk -F\&quot; &#39;{print $1, $6}&#39; access.log | sort -n | uniq -c</pre><blockquote>awk: -F\” ‘ tells awk to use double quotes “ as the field separator.<br> Double quotes in apache and nginx logs encloses:<br> The request (“GET /index.html HTTP/1.1”)<br> The referrer (“-”)<br> The User-Agent string.<br> — Splitting by double quotes makes it easier to extract the timestamps and user strings.</blockquote><blockquote>(print $1 $6):<br> $1 → the first field (before the first “), which contains IP, and the timestamp.<br> $6 → the sixth field (after splitting), which usually contains the User-Agent.</blockquote><blockquote>| sort -n: sorts the output numerically(ascending manner)<br> |unique -c: collapses duplicate lines and prefixes the each unique line with count of how many time it appears.</blockquote><p>By checking the timestamp, I found the tools used by scoping out the user strings which logged the tools information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7f-eLUHx7YCYGPoRzhlxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*YQ9qKsooRu1RPamsR9c9Sg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*Ri9kY2tlPzHg261U9x2bbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*IpJldOnuAd6I-3ZBq-1guA.png" /></figure><p>In the order of timestamps, the tools used were: <a href="https://nmap.org/"><em>nmap</em></a><em>, </em><a href="https://hackviser.com/tactics/tools/hydra"><em>hydra</em></a><em>, </em><a href="https://sqlmap.org/"><em>sqlmap</em></a><em>, </em><a href="https://developer.ibm.com/articles/what-is-curl-command/"><em>curl</em></a><em> and </em><a href="https://www.geeksforgeeks.org/linux-unix/feroxbuster-recursive-content-discovery-tool-in-kali-linux/"><em>feroxbuster</em></a>.</p><p><strong>2. What endpoint was vulnerable to a brute-force attack?</strong></p><p>From question 1, I spotted a tool used for brute force attacks — <a href="https://hackviser.com/tactics/tools/hydra">Hydra</a>. Using the information and command line tool <em>grep</em>, I filtered the logs associated with hydra.</p><pre>cat access.log | grep &quot;Hydra&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOqG5wfwqgT1x7u1W8DsuA.png" /></figure><p>On the HTTP method(GET), the associated path provided the endpoint compromised by hydra which is <em>/rest/user/login</em></p><p><strong>3. What endpoint was vulnerable to SQL injection?</strong></p><p>Using <em>cat access.log | grep “sqlmap”</em> to filter the logs that show instance of <a href="https://sqlmap.org/">sqlmap</a> in the user agent string, the logs pointed out which endpoint was attacked by the tool — <em>/rest/products/search</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJjYoefcRswDbCQEgRGyZA.png" /></figure><p><strong>4. What parameter was used for the SQL injection?</strong></p><p>I used the below command to filter the specific parameter that was used for sql injection. This helped to understand why and how the parameter was used.</p><pre>awk -F\&quot; &#39;{print $2}&#39; access.log | cut -d&#39; &#39; -f2</pre><blockquote>awk -F\” ‘{print $2}’ access.log This part graps the quoted request token (“GET /… HTTP/1.1”)<br>cut -d ‘ ‘ -f2 prints the url part.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*WH-jfOfl4LOp8dI1LYLBjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-U0_ILtcb-GX89p4l7ocw.png" /></figure><p>From the output, the <em>q</em> parameter is followed by suspicious command queries. This shows that q parameter values can be edited to fit in sql injection commands search as SELECT, UNION, FROM INFORMATION_SCHEMA.TABLES, qualifying it as the parameter for SQL injection.</p><blockquote>To search for q parameter value, the following command can be used: <strong>grep -oP ‘q=[^ &amp;]+’ access.log | sort | uniq -c | sort -rn</strong><br><strong>grep -oP ‘q=[^ &amp;]+’ :</strong> grep search for q pattern matching expresssion and its value.<br> <strong>q=[^ &amp;]+ :</strong> The expression to involve characters and non-characters up to the next space or &amp;</blockquote><p><strong>5. What endpoint did the attacker try to use to retrieve files? (Include the /)</strong></p><p>Endpoint or tool that an attacker can transfer file in a network is the <em>File Transfer Protocol(ftp)</em>. ftp is communication protocol used for the transfer of computer files from a server to a client on a computer network.</p><p>Using grep command, I filtered the ftp tool used to retrieve file.</p><pre>grep -i &#39;/ftp&#39; access.log</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfNRVoksFYpmfYryYyfg1A.png" /></figure><p>The fact that <a href="https://hackviser.com/tactics/tools/hydra"><em>feroxbuster</em></a> is used shows the attacker was trying to exfiltrate files from the ftp protocol using it.</p><p>Answer: <em>/ftp</em></p><p><strong>Task C — Stolen data</strong></p><p>The aim of this task is to understand the steps taken by the attacker to exploit the website and it’s application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PfekNnSrf6hithSCOkigwg.png" /></figure><p><strong>6. What section of the website did the attacker use to scrape user email addresses?</strong></p><blockquote>Hint: Where can customers comment on a shopping website?</blockquote><p>Using awk and cat command, I extract the url part captured from the logs. Manual scrolling, I found the section which customers comment on a shopping website — <em>/rest/products/reviews.</em> The attacker scrapped user email addresses from this section.</p><pre>awk -F\&quot; &#39;{print $2}&#39; access.log | cut -d&#39; &#39; -f2 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vpLCBoQQty6H5U0R6Y2Lw.png" /></figure><p><strong>7. Was their brute-force attack successful? If so, what is the timestamp of the successful login? (Yay/Nay, 11/Apr/2021:09:xx:xx +000)</strong></p><p><em>Post method</em> is a HTTP method that shows data has been sent to an endpoint<br><em>Status 200</em> means that the request initiated was successfully.<br>The <em>Post method </em>and a <em>200 status code</em> can verify a successful login, using this I filtered the logs to get the exact timestamp for the login.</p><pre>grep -i &#39;POST&#39; access.log | grep &#39;200&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*52Ca5V4VP8opYRHuk8b7zA.png" /></figure><p>The presence of hydra on the log, shows the brute-force was successful.</p><p>Time: 11/Apr/2021:09:16:31 +0000</p><p><strong>8. What user information was the attacker able to retrieve from the endpoint vulnerable to SQL injection?</strong></p><p>From the information from the previous task, I know that <em>/rest/products/search</em> was vulnerable to SQL injection. using this and <em>status 200</em> I filtered out the specific sql query that retrieved the user information. Checking on the sql q parameter-value, the user information retrieved is visible</p><pre>grep &#39;GET&#39; access.log | grep &#39; 200 &#39; | grep -i &#39;rest/products/search&#39;</pre><p>GET is used because its an http method that retrieves files over the http protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M47HxSh2PLhPb5iAPsc6NQ.png" /></figure><p>Answer: Email, Password</p><p><strong>9. What files did they try to download from the vulnerable endpoint? (endpoint from the previous task, question #5)</strong></p><p>from task 5, the vulnerable endpoint was a FTP protocol. I filtered the /ftp using grep to check which files were downloaded.</p><blockquote>GET method points out that which ftp files were being retrieved/downloaded from a server.</blockquote><blockquote>.bak signifies a backup file created by a program, which is an older, saved version of the file being worked on, like a snapshot to prevent data loss.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfNRVoksFYpmfYryYyfg1A.png" /></figure><p>Answer: www-data.bak, coupons_2012.md.bak</p><p><strong>10. What service and account name were used to retrieve files from the previous question? (service, username)</strong></p><p>Investigating the vsftpd.log (ftp log file), I used <em>cat vsftp.log </em>to correlate the <em>timestamp </em>and <em>ip address </em>from question 10 to find the username that retrieved the log from the ftp service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axJPYBocCyhMqB0sc7DOKA.png" /></figure><blockquote><em>anon</em> indicates this was an <strong>anonymous login</strong> (i.e., the client logged in as the anonymous/ftp account rather than a named user).</blockquote><p><strong>11. What service and username were used to gain shell access to the server? (service, username)</strong></p><p>Investigating the <em>auth.log </em>using the less command line tool — <em>less auth.log,</em> I correlated the IP address, the service and username the attacker used to access to the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*0QfZV7GYgk8W4mGXE_BDsQ.png" /></figure><p>Answer: www-data.</p><p>This room provided insights:</p><ul><li>The power of command line tools.</li><li>Knowledge on attack vectors and tools.</li></ul><p>Till next time 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c1a3a3fd3e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box | Sherlock | Brutus]]></title>
            <link>https://medium.com/@denomax517/hack-the-box-sherlock-brutus-66a85a36dcf1?source=rss-db3d6f0ad768------2</link>
            <guid isPermaLink="false">https://medium.com/p/66a85a36dcf1</guid>
            <dc:creator><![CDATA[Demax]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 13:32:59 GMT</pubDate>
            <atom:updated>2025-09-09T15:34:15.639Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*tnWdxE6NV0uLPyYNo_3XEg.png" /></figure><p>This is a writeup on a Hack The Box Sherlock machine named “Brutus”. It involves a deep analysis on unix.log while utilizing key artifacts such as auth.log and wtmp.log.</p><p>Main objectives is to understand the following attack techniques:<br> 1. Privilege escalation.<br> 2. Persistence.<br> 3. Command execution.</p><p>Some key skills learnt are:</p><ol><li>Forensic Analysis</li><li>Brute force attempt</li><li>Log correlation</li></ol><p><strong>Sherlock Scenario:</strong></p><blockquote>In this very easy Sherlock, you will familiarize yourself with Unix auth.log and wtmp logs. We’ll explore a scenario where a Confluence server was brute-forced via its SSH service. After gaining access to the server, the attacker performed additional activities, which we can track using auth.log. Although auth.log is primarily used for brute-force analysis, we will delve into the full potential of this artifact in our investigation, including aspects of privilege escalation, persistence, and even some visibility into command execution.</blockquote><p>For analysis, I used Kat tool on Linux system.</p><blockquote>unix auth.log is system authorization log on unix-like operating systems which records security-related events such as user logins, authentication attempts, and the use of privileged commands like sudo.<br>Logs are primarily stored in <strong>/var/log/auth.log</strong>.<br>file captures info from various authentication mechanisms like Pluggable Authentication MOdule (PAM) system, SSH remote logins, and sudo command usage.<br>Logs are generated by the <strong>local Syslog server</strong>, which routes messages from the AUTH and AUTHPRIV facilities to this log file.</blockquote><p><strong>Task 1</strong></p><p>Analyze the auth.log. What is the IP address used by the attacker to carry out a brute force attack?</p><p><strong><em>Hint:</em></strong></p><blockquote>To find the IP address, search for keywords associated with brute-force attacks for example “failed password,” “authentication failure,” “invalid login,” “login attempt failed,” and “access denied”.</blockquote><p>Using <strong><em>“failed password” </em></strong>keyword, I searched the auth.log using KAT search feature to find the attackers IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*hCqkQw1007NrN5PGoKFhAg.png" /></figure><p><strong>Task 2</strong></p><p>The bruteforce attempts were successful and attacker gained access to an account on the server. What is the username of the account?</p><p><strong><em>Hint:</em></strong></p><blockquote>Look for keywords indicating successful login attempts to identify the compromised account.</blockquote><p>The<strong><em> Accepted keyword</em></strong> narrows down the search to 3 potential hints as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Ke5iUqk72NVQE2aXmyR5g.png" /></figure><p>The timeline shows which account was first to be compromised. it must be guided by the attacker’s IP.</p><p><strong>Task 3</strong></p><p>Identify the UTC timestamp when the attacker logged in manually to the server and established a terminal session to carry out their objectives. The login time will be different than the authentication time, and can be found in the wtmp artifact.</p><p><strong><em>Hint:</em></strong></p><blockquote>It’s important to note that the first successful login by the attacker was the result of an automated brute force attempt, and the session was closed within the same second. After obtaining the working credentials, the attacker manually logged in and established a terminal session, and we need to identify that login. Use the wtmp artifact and the provided utmp.py script to view the login time of the working session and correlate that with auth.log. Remember that the timestamp in wtmp will be displayed in your local system time which may not be UTC.</blockquote><p>Obtain the Process ID and the timestamp when the attacker manually logged into the account for the second time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ooJwwtilJ4QCn874fqSYBA.png" /></figure><p>Using the timestamp of ssh session established by the attacker’s connection, manually check the timestamps of the created terminal session on wtmp.log. The process with the same hour and minute as the ssh session is the terminal session because the attacker initiated a terminal session shortly after manually login into the system. Compare the timestamp with auth logs to get the exact time(UTC time) the session was opened.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RRz5M3SR_fYMfYYzhOTn-Q.png" /></figure><blockquote>wmtp log is binary log located at <strong>/var/log/wtmp </strong>on linux system that records a complete history of all user logins and logouts, reboots and shutdowns.<br>File is maintained by system process like login, init and getty.<br><strong>Last</strong> command is used to read the wtmp file.</blockquote><p><strong>Task 4</strong><br>SSH login sessions are tracked and assigned a session number upon login. What is the session number assigned to the attacker’s session for the user account from Question 2?</p><blockquote><strong><em>Hint:</em></strong><br>A session number is assigned immediately after the password is accepted.</blockquote><p>check the compromised account(root) using Kat tool. The process log that followed shows the session number.</p><blockquote>Take the second attempt the attacker tried and successfully gained access into the system.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*GbppFDF3fQ8Eo6cgDDO5Ow.png" /></figure><p><strong>Task 5</strong></p><p>The attacker added a new user as part of their persistence strategy on the server and gave this user account higher privileges. What is the name of this account?</p><blockquote><strong><em>Hint:</em></strong><br>Auth.log also tracks changes related to users and groups on the server. Look for keywords indicating user additions or privilege assignments.</blockquote><p>using the keyword “<em>Accepted password”,</em> it points out an account whose new password has been set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdrRW-wgUUJ3fkE0CfmAJg.png" /></figure><p><strong>Task 6</strong><br>What is the MITRE ATT&amp;CK sub-technique ID used for persistence by creating a new account?</p><blockquote><strong><em>Hint:</em></strong><br>If you have found the answer to Question 5, consult the MITRE ATT&amp;CK enterprise matrix to determine the sub-technique ID under the persistence tactic.</blockquote><p>The attacker created a local account on the server to maintain access. This is persistent tactic under ID T1136, the sub-tactic is 001 since a local account was created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39o0XRYmBW17LWwXU0svSQ.png" /></figure><p><strong>Task 7</strong><br>What time did the attacker’s first SSH session end according to auth.log?</p><p><strong><em>No hint:</em></strong><br>The first ssh session the attacker established a terminal session . The attacker ended the terminal session before logging out. Using this, a baseline, a timestamp is established.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*3cc3O-y7Vk5y3wv8DyQwpQ.png" /></figure><p><strong>Task 8</strong><br>The attacker logged into their backdoor account and utilized their higher privileges to download a script. What is the full command executed using sudo?</p><blockquote><strong>Hint:</strong><br>Although auth.log is not typically used to track command executions like auditd, commands executed with sudo are logged in auth.log since the system needs to authenticate the account’s privileges to grant root level permissions for that command. Search for the keyword “COMMAND” to find commands executed using sudo.</blockquote><p>using the <strong><em>COMMAND</em></strong> keyword, we are able to filter the attacker command and find the exact command using the HTB answer format as a baseline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQxwOLH9FKM8azCuZajbDQ.png" /></figure><p>Thank you all for reading this writeup. A good detective knows it’s all about the details.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66a85a36dcf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s a chilly morning, time for the daily coffee.]]></title>
            <link>https://medium.com/@denomax517/its-a-chilly-morning-time-for-the-daily-coffee-37b43f4fa54f?source=rss-db3d6f0ad768------2</link>
            <guid isPermaLink="false">https://medium.com/p/37b43f4fa54f</guid>
            <category><![CDATA[dig-dug]]></category>
            <dc:creator><![CDATA[Demax]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 08:59:04 GMT</pubDate>
            <atom:updated>2025-07-07T09:03:24.944Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s a chilly morning, time for the daily coffee.</p><p>Here’s another tryhackme lab, Dig Dug.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVJKTP6T4XPI22Bf0UMLNA.png" /></figure><p>We are tasked to find a flag on the DNS server using DNS enumeration techniques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yKhjIdU9gOUldoUxqNpDNg.png" /></figure><p>For DNS enumeration, we use various commands — nslookup, dig.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fyGKaxodHXD3ElUeUJ7DPQ.png" /></figure><ol><li>Dig</li></ol><p>Domain information Gropper(dig) is a command-line tool used for querying the Domain Name System (DNS). Also, it is used for DNS lookups and troubleshooting,</p><p>Using dig command, we can obtain the all records associated with the givemetheflag.com domain name.</p><pre>dig @10.10.137.219 givemetheflag.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*Nl7W8No9tMR-ZBBYMYSCiA.png" /></figure><p>command explanation:</p><p>dig queries the DNS server to verify for various records, IP address and domain names associated with it.</p><p>@10.10.137.219 is the DNS server — performs hostname to IP address mapping.</p><p>givemetheflag.com — is the domain name that we want to enumerate to find the flag.</p><p>This commands returns the TXT record associated with the givemetheflag.com that is captured by the DNS server(specified by tryhackme)</p><p>The TXT record is the flag.</p><p>2. nslookup</p><p>Using nslookup command to query the A record of the hostname(givemetheflag.com)</p><pre>nslookup givemetheflag.com 10.10.137.219</pre><p>This command queries all the records of the domain name givemetheflag.com and its values via the DNS server 10.10.137.219.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*fa0Lj6-rD5k7MgZezHyPvQ.png" /></figure><p>The output is a TXT record, which shows the domain name with it’s associated value ,i.e text.</p><p>A TXT record is a record that holds text-based data associated with the DNS. For ourcase, it contains the flag.</p><p>That’s it, Now we are set for the day. Until next time, bye.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37b43f4fa54f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CTF vol 1]]></title>
            <link>https://medium.com/@denomax517/ctf-vol-1-c49f79beadc4?source=rss-db3d6f0ad768------2</link>
            <guid isPermaLink="false">https://medium.com/p/c49f79beadc4</guid>
            <category><![CDATA[ctf-write-ups]]></category>
            <dc:creator><![CDATA[Demax]]></dc:creator>
            <pubDate>Sat, 21 Jun 2025 16:01:22 GMT</pubDate>
            <atom:updated>2025-06-21T16:02:45.476Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>CTF vol 1</strong></p><p>Task 11<br>I accidentally messed up with this PNG file. Can you help me fix it? Thanks, ^^<br>Answer the questions below</p><p>What is the content?</p><p>context: The file is a png file which means it should load as an image but it does not — meaning it has been corrupted.</p><ol><li>check the png header</li></ol><pre>xxd spoil_1577979329740.png | head</pre><p>xxd spoil_1577979329740.png — hex dumper shows the hexadecimal or ASCII representation of a binary file.<br>| head — limits the hex content to the first ten lines.<br>The command show the hexadecimal of the png file header which shows whether the file is corrupted or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*k9HdoKtr0yN_yPYkCgdFPw.png" /></figure><p>The file is corrupted. It doesn’t have the 8950 4e47 hexadecimal header that makes it a png file.</p><p>2. Add the 8950 4e47 hexadecimal.</p><pre>printf &#39;\x89\x50\x4E\x47&#39; | dd of=spoil_1577979329740.png bs=4 conv=notrunc</pre><p>printf ‘\x89\x50\x4E\x47’ — prints the first 4 bytes of .png binary file.<br> | dd of=spoil_1577979329740.png bs=4 conv=notrunc — adds the 4 bytes to the file(spoil_1577979329740.png)</p><p>of=spoil_1577979329740.png — show the files that is being patched.<br> dd — injects the bytes at the beginning of the file.<br> bs=4 — only a block size 4 needs to be changed.<br> conv=notrunc — overwrites the start, preserve the rest of binary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*-lnL29us9tDOBB5GdFSC4w.png" /></figure><p>verify that the bytes have been patched.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*Mv9UYfwO2BMyb1fAjQWm1w.png" /></figure><p>3. Open the image.</p><pre>xdg-open spoil_1577979329740.png</pre><p>After the inserting the png hexadecimal header bytes, the file loads as an image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*WGrs5dng39vdd2iZdME9Dg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c49f79beadc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>