<?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 Dehni on Medium]]></title>
        <description><![CDATA[Stories by Dehni on Medium]]></description>
        <link>https://medium.com/@dehni?source=rss-7156bb79b093------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gM-8qKxKJ-qmCqzoKjVOiw.jpeg</url>
            <title>Stories by Dehni on Medium</title>
            <link>https://medium.com/@dehni?source=rss-7156bb79b093------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 07:28:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dehni/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[HTB Crocodile Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-crocodile-walkthrough-88e4e70be8fc?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/88e4e70be8fc</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[ftp]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 13:12:47 GMT</pubDate>
            <atom:updated>2025-06-13T13:12:47.668Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Crocodile Walkthrough</p><p><strong>Tags: </strong>Custom Applications, Protocols, Apache, FTP, Reconnaissance, Web Site Structure Discovery, Clear Text Credentials, Anonymous/Guest Access</p><p><strong>Difficulty: </strong>Very Easy</p><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir crocodile</p><p>Change directory → cd crocodile</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*nDUGe8_qygph_MkUsb5faw.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*-YA0kiBAtAtH60VN4tCi2Q.png" /></figure><p>What Nmap scanning switch employs the use of default scripts during a scan?</p><blockquote>-sC</blockquote><p>What service version is found to be running on port 21?</p><blockquote>vsftpd 3.0.3</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*1s-COyPQqZDy-i7jgPTNug.png" /></figure><p>What FTP code is returned to us for the “Anonymous FTP login allowed” message?</p><blockquote>230</blockquote><p>After connecting to the FTP server using the ftp client, what username do we provide when prompted to log in anonymously?</p><blockquote>anonymous</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*hTiDBIOd9TxyvxeCVdGaWA.png" /></figure><p>After connecting to the FTP server anonymously, what command can we use to download the files we find on the FTP server?</p><blockquote>get</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*yyAwmr7r8yf_cuXBFO_4zw.png" /></figure><p>What is one of the higher-privilege sounding usernames in ‘allowed.userlist’ that we download from the FTP server?</p><blockquote>admin</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*kpjQzXAGfNK9d-tg76ZS3w.png" /></figure><p>What version of Apache HTTP Server is running on the target host?</p><blockquote>Apache httpd 2.4.41</blockquote><p>What switch can we use with Gobuster to specify we are looking for specific filetypes?</p><blockquote>-x</blockquote><p>Which PHP file can we identify with directory brute force that will provide the opportunity to authenticate to the web service?</p><p>login.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*34rHKeJGEfMQDeYzDWtByQ.png" /></figure><p><strong>Submit root flag</strong></p><p>We find the login.php directory via gobuster scan.</p><p>In previous steps we find allowed.userlist and allowed.userlist.passwd files via ftp connection.</p><p>Let’s use these files and login with admin account to the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*K3EHy4FlmeuYxwa2tP92ZA.png" /></figure><p>Login and there is the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VWKMw_sHYZEKeX3YaHiRjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*WXQu5hTQznikLmV2M2uyIw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88e4e70be8fc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-crocodile-walkthrough-88e4e70be8fc">HTB Crocodile Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eWPTXv3 Notes Part5]]></title>
            <link>https://medium.com/dehnis-notes/ewptxv3-notes-part5-d660b1daab2e?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/d660b1daab2e</guid>
            <category><![CDATA[obfuscation]]></category>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[ewptxv3]]></category>
            <category><![CDATA[ewptx]]></category>
            <category><![CDATA[waf-bypass]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 12:30:32 GMT</pubDate>
            <atom:updated>2025-06-13T12:30:32.806Z</atom:updated>
            <content:encoded><![CDATA[<p>I take notes while I study for the eWPTXv3. I separated all the notes according to INE’s six main topics.</p><h3>Filter Evasion &amp; WAF Bypass Techniques</h3><h3>Data Encoding</h3><p><strong>Data encoding</strong> refers to the process of converting information into a specific format that enables it to be efficiently transmitted, stored, and interpreted by both machines and humans.</p><p>This transformation ensures that diverse forms of data (such as text, images, multimedia, or files) can be accurately rendered and communicated across various platforms and technologies used on the internet.</p><p>Encoding typically involves translating raw data into standardized formats, such as Base64, URL encoding, or HTML entities, to maintain data integrity and compatibility with digital systems.</p><p>Encoding takes on an additional and critical role in penetration testing. Testers often explore how a web application processes and handles encoded input to identify potential weaknesses. For example, encoding is frequently used to craft payloads that include special characters or binary sequences, helping security professionals test the robustness of input validation mechanisms.</p><p>Manipulating data through encoding can also help in bypassing security filters, discovering hidden application behavior, or exploiting vulnerabilities. For instance, attackers may encode malicious inputs to evade detection mechanisms, making it easier to carry out attacks such as <strong>SQL Injection</strong>, <strong>Cross-Site Scripting (XSS)</strong>, or other <strong>injection-based attacks</strong>.</p><p>Understanding how a web application interprets encoded data provides valuable insights into its internal logic and security posture. By systematically submitting various encoded payloads and analyzing the application’s response, penetration testers can uncover subtle flaws that might otherwise go unnoticed thereby strengthening the overall security of the system.</p><h4>Character Sets (charsets)</h4><p>A “charset,” short for character set, is a collection of characters, symbols, and glyphs that are associated with unique numeric codes or code points.</p><p>Character sets define how textual data is mapped to binary values in computing systems.</p><p>They play a fundamental role in encoding and decoding text, allowing computers to store, process, and display human-readable characters from different writing systems.</p><h4>ASCII</h4><blockquote><a href="https://www.ascii-code.com/">ASCII</a> → American Standard Code for Information Interchange.</blockquote><p>It’s a widely used character encoding standard containing 128 characters to represent text and control characters in computers and communication equipment.</p><p>ASCII defines a set of codes to represent letters, numbers, punctuation, and control characters used in the English language and basic communication.</p><p>ASCII includes a total of 128 characters, each represented by a unique 7-bit binary code. These characters include uppercase and lowercase letters, digits, punctuation marks, and some control characters.</p><p>Limitations → ASCII is primarily designed for English text and doesn’t support characters from other languages or special symbols.</p><p>ASCII is a subset of many other character encodings, including more comprehensive standards like Unicode. The first 128 characters of the Unicode standard correspond to the ASCII characters.</p><h4>Unicode</h4><blockquote>Recommended site → <a href="https://www.charset.org/">https://www.charset.org</a></blockquote><p>Unicode is a character set standard that aims to encompass characters from all writing systems and languages used worldwide.</p><p>It enables computers to handle text and characters from diverse languages and scripts, making it essential for internationalization and multilingual communication.</p><p>“UTF” stands for “Unicode Transformation Format.” It refers to different character encoding schemes within the Unicode standard that are used to represent Unicode characters as binary data.</p><p>Character encoding is the representation in bytes of the symbols of a charset.</p><p>Unicode has three main character encoding schemes: UTF-8, UTF-16 and UTF-32.</p><h4>UTF-8</h4><p><a href="https://www.utf8-chartable.de/">UTF-8</a> is a variable-length character encoding scheme.</p><p>It uses 8-bit units (bytes) to represent characters.</p><p>ASCII characters are represented using a single byte. Non-ASCII characters are represented using multiple bytes, with the number of bytes varying based on the character’s code point.</p><p>UTF-8 is widely used on the web and in many applications due to its efficiency and compatibility with ASCII.</p><h4>UTF-16</h4><p>UTF-16 is a variable-length character encoding scheme.</p><p>It uses 16-bit units (two bytes) to represent characters.</p><p>Characters with code points below 65536 (BMP — Basic Multilingual Plane) are represented using two bytes.</p><p>Characters with higher code points (outside the BMP) are represented using four bytes (surrogate pairs).</p><p>UTF-16 is commonly used in programming languages like Java and Windows systems.</p><h4>Why Encoding Is Important</h4><p>Encoding important in website because if you dont specify the encoding type in the code and you use a different language than English (for example Greek, Arabic etc.) then your browser will <strong>not display</strong> the text correctly in clients browser.</p><p>You should <strong>specify encoding type in your code’s head tag with meta tag.</strong></p><pre>&lt;meta charset=”utf-8&quot;&gt; </pre><h4>HTML Encoding</h4><p><strong>HTML encoding</strong>, also referred to as <strong>HTML entity encoding</strong>, is the process of converting special characters and reserved symbols into a specific format known as <strong>HTML entities</strong>. This ensures that these characters are displayed correctly in web browsers and are not mistakenly interpreted as part of the HTML code itself.</p><p>HTML Encoding is essential for preserving the integrity of web content and plays a vital role in securing web applications particularly in mitigating threats like Cross-Site Scripting (XSS) attacks. By encoding potentially dangerous characters (such as &lt;, &gt;, or &amp;), developers can prevent user-supplied input from being executed as malicious code in the browser.</p><p><a href="https://www.freeformatter.com/html-entities.html">HTML entities</a> are predefined sequences that represent specific characters or symbols within HTML. They begin with an ampersand (&amp;) and conclude with a semicolon (;). For example, the less-than symbol (&lt;) is represented as &amp;lt; and the ampersand (&amp;) as &amp;amp;.</p><p>When a browser encounters one of these entities in the HTML source, it interprets and renders the corresponding symbol visually, rather than treating it as part of the page’s structure or logic. This allows developers to safely include reserved characters in their content without disrupting the layout or behavior of the webpage.</p><blockquote>For example &amp;lt; is &lt;</blockquote><h4>URL Encoding</h4><p><strong>URL encoding</strong>, also known as <strong>percent-encoding</strong>, is a method used to convert special, reserved, or non-ASCII characters into a standardized format that is safe for inclusion in URLs (Uniform Resource Locators) and URIs (Uniform Resource Identifiers).</p><p>Since URLs are used to locate and access resources on the internet, and some characters have specific meanings within a URL structure, encoding helps eliminate ambiguity and ensures proper interpretation by web browsers and servers.</p><p>This encoding technique replaces characters that are not safe for URLs with a percent sign (%) followed by two hexadecimal digits representing the ASCII code of the character. For example, a space character is encoded as %20. This conversion enables reliable data transmission across the web, as only a limited subset of characters is allowed within URLs.</p><p>URLs must consist only of characters from the US-ASCII character set. If a URL contains characters outside this allowed range — such as spaces, symbols, or non-English characters — they must be encoded to maintain compatibility and prevent parsing errors.</p><p>There are two main character categories relevant to URL encoding:</p><ul><li><strong>Unreserved characters</strong>, which do not require encoding and include:<br> [a–z], [A–Z], [0–9], -, ., _, and ~.</li><li><strong>Reserved characters</strong>, which have special roles in URLs and may require encoding depending on context. These include:<br> :, /, ?, #, [, ], @, !, $, &amp;, &#39;, (, ), *, +, ,, ;, and =.</li></ul><p>When you interact with a website your browser automatically applies URL encoding to any characters that need it. On the receiving end, the server typically decodes these characters to reconstruct the original input.</p><p><strong>URL encoding is not a security mechanism</strong>. While it affects how data is represented and transmitted, it does not inherently protect against attacks. However, it can influence the <strong>attack surface</strong> by altering how payloads are interpreted, potentially helping or hindering certain exploits.</p><blockquote>Recommended resource → <a href="https://www.w3schools.com/tags/ref_urlencode.ASP">https://www.w3schools.com/tags/ref_urlencode.ASP</a></blockquote><p><strong>URL encoding is only used in transmission of information within the URL. It has nothing to do with protecting the web application against injection attacks.</strong></p><p>URL encoding is not sanitizing input, it’s just ensures the data reach to destination in the correct format.</p><h4>Base64 Encoding</h4><p><strong>Base64 encoding</strong> is a technique used to convert binary data — such as images, audio files, or other non-text formats — into a textual representation that can be safely handled in environments that only support text. This is especially useful in scenarios like embedding data in email messages, transmitting files via web forms, or including binary content within URLs or JSON objects.</p><p>The core idea behind Base64 encoding is to transform binary data into a sequence of <strong>ASCII characters</strong>, ensuring compatibility with text-based systems that may not support raw binary input.</p><p>Base64 encoding uses a set of 64 different characters. These characters consist of letters (uppercase and lowercase), digits, and two additional characters (often + and /).</p><p>The encoding process works by taking <strong>three bytes</strong> (24 bits) of binary data at a time and dividing them into <strong>four 6-bit segments</strong>. Each of these segments is then mapped to a corresponding character from the Base64 character set. This is often referred to as <strong>3-to-4 mapping</strong>, because three bytes of binary input produce four characters of Base64 output.</p><p>However, binary data isn’t always a perfect multiple of three bytes. To ensure the encoded output remains properly structured, <strong>padding</strong> is added when necessary. The padding character, usually the equals sign (=), is appended to the end of the encoded string to make the final output a multiple of four characters in length.</p><h3>Filtering</h3><p>Filtering in web application security refers to the practice of <strong>inspecting and controlling data input and output in a web application to prevent security vulnerabilities and protect against various types of attacks.</strong></p><p>Filtering is a critical aspect of security because it helps ensure that data entering and leaving the application is safe, valid, and free from malicious content or potential exploits.</p><h4>Input Filtering</h4><p>This involves <strong>validating and sanitizing data </strong>received by the web application from users or external sources.</p><h4>Input Filtering Techniques</h4><p>Some common techniques for input filtering include <strong>data validation, input validation, and input sanitization.</strong></p><p><strong>Data validation</strong> checks whether the incoming data conforms to expected formats and constraints. Invalid or unexpected data should be rejected or sanitized.</p><p><strong>Input validation</strong> goes a step further by not only checking data formats but also assessing data for potential security threats. It detects and rejects input that could be used for attacks, such as SQL injection payloads or malicious scripts.</p><p><strong>Input sanitization</strong> involves cleaning or escaping input data to remove or neutralize potentially dangerous characters or content. For example, converting special characters to their HTML entities can prevent XSS attacks by rendering malicious scripts harmless.</p><p><strong>Content Security Policy (CSP)</strong> is a security feature that controls which sources of content are allowed to be loaded by a web page. It helps prevent XSS attacks by specifying which domains are permitted sources for scripts, styles, images, and other resources.</p><p><strong>Cross-Site Request Forgery (CSRF) Protection:</strong> Filtering mechanisms can be used to implement CSRF protection, ensuring that incoming requests have valid anti-CSRF tokens to prevent attackers from tricking users into performing actions they didn’t intend.</p><p><strong>WAF</strong>s are security appliances or services that filter incoming HTTP requests to a web application. They use predefined rules and heuristics to detect and block malicious traffic.</p><p><strong>Regular Expression Filtering:</strong> <a href="https://regex101.com/">Regular expressions</a> (<strong>regex</strong>) can be used to filter and validate data against complex patterns. However, improper regex usage can introduce security vulnerabilities, so careful crafting and testing of regex patterns are necessary.</p><blockquote>Recommended site for regex filters to test against payloads→ <a href="https://regex101.com/">https://regex101.com</a></blockquote><p>How to approach a black-box perspective and automate the process of bypassing→ Use burp intruder with SecLists Fuzzing payloads. Attack type sniper with the payloads and make sure payload encoding is enabled. In settings choose follow redirects and start the attack. In the results we’re looking for difference in Length to identify.</p><blockquote>searchsploit important tool for common exploits about common services.</blockquote><h3>Web Application Security and Defense Mechanisms</h3><p>Web application security mechanisms are safeguards and measures put in place to protect web applications from a wide range of security threats and vulnerabilities.</p><p>These mechanisms are essential for ensuring the confidentiality, integrity, and availability of web applications and their associated data.</p><p>These mechanisms: Authentication, Authorization, Input Validation/Filtering, Session Management, CSRF Protection, Security Headers, Rate Limiting</p><p>Web application defense mechanisms are proactive tools and techniques designed to protect and defend web applications against various security threats and vulnerabilities.</p><p>These mechanisms: WAFs, IDS, IPS, Proxies</p><h3>Evasion</h3><p>Evasion in web application security testing refers to the practice of using various techniques and methods to bypass or circumvent security mechanisms and controls put in place to protect a web application.</p><p>The primary goal of evasion techniques is to deceive or trick security measures in order to deliver malicious payloads or exploit vulnerabilities within the target application.</p><h4>Evasion Techniques</h4><p>Bypassing WAFs/Proxy Rules: Evasion techniques may involve encoding, obfuscation, or fragmentation of malicious payloads to bypass the WAF’s detection rules.</p><p>Evading Intrusion Detection Systems (IDS): Evasion techniques can be used to hide or modify the payload of an attack so that it goes undetected by the IDS.</p><p>Circumventing Input Validation Filters: Evasion may involve crafting input that seems legitimate but can still exploit vulnerabilities in the application.</p><p>Avoiding Rate Limiting and Authentication Controls: Attackers may use evasion techniques to avoid triggering rate-limiting mechanisms or to bypass authentication and authorization controls.</p><h4>Squid Proxy</h4><p>Squid is a widely used open-source proxy server and web cache daemon.</p><p>It primarily operates as a proxy server, which means it acts as an intermediary between client devices (such as computers or smartphones) and web servers, facilitating requests and responses between them.</p><h3>Obfuscation</h3><blockquote>Main resource of obfuscation notes are from → <a href="https://github.com/0xInfection/Awesome-WAF?tab=readme-ov-file#evasion-techniques">https://github.com/0xInfection/Awesome-WAF?tab=readme-ov-file#evasion-techniques</a> highly recommended resource</blockquote><blockquote>Recommended resource → <a href="https://portswigger.net/web-security/essential-skills/obfuscating-attacks-using-encodings">https://portswigger.net/web-security/essential-skills/obfuscating-attacks-using-encodings</a></blockquote><p><strong>Obfuscation</strong> refers to the deliberate act of making code, payloads, scripts, binaries, or network traffic <strong>difficult to understand or analyze</strong>, with the goal of evading detection, delaying analysis, or bypassing defensive mechanisms.</p><p><strong>Method:</strong></p><p>Encoding payload to different encodings.</p><p>You can encode whole payload, or some parts of it and test recursively.</p><p><strong>Techniques:</strong></p><h4><strong>Case Toggling</strong></h4><p>Some poorly developed WAFs filter selectively specific case WAFs.</p><p>We can combine upper and lower case characters for developing efficient payloads.</p><p><strong>Example:</strong> &lt;ScRipT&gt;alert()&lt;/sCRipT&gt;</p><h4><strong>URL Encoding</strong></h4><p>Encode normal payloads with % encoding/URL encoding.</p><p><strong>Example:</strong> %3CsvG%2Fx%3D%22%3E%22%2FoNloaD%3Dconfirm%28%29%2F%2F</p><h4><strong>Unicode Normalization</strong></h4><p>ASCII characters in unicode encoding provide great variants for bypassing.</p><p>You can encode entire/part of the payload for obtaining results.</p><p><strong>Example:</strong> &lt;marquee onstart=\\u0070r\\u06f\\u006dpt()&gt;</p><h4><strong>HTML Representation</strong></h4><p>Often web apps encode special characters into HTML encoding and render them accordingly.</p><p>This leads us to basic bypass cases with HTML encoding (numeric/generic).</p><p><strong>Example:</strong> &amp;quot;&amp;gt;&amp;lt;img src=x onerror=confirm&amp;lpar;&amp;rpar;&amp;gt; (General form)</p><p><strong>Example:</strong> &amp;#34;&amp;#62;&amp;#60;img src=x onerror=confirm&amp;#40;&amp;#41;&amp;#62; (Numeric reference)</p><h4><strong>Mixed Encoding</strong></h4><p>Sometimes, WAF rules often tend to filter out a specific type of encoding.</p><p>This type of filters can be bypassed by mixed encoding payloads.</p><p><strong>Example</strong>:</p><pre>&lt;A HREF=&quot;h<br>tt  p://6   6.000146.0x7.147/&quot;&gt;XSS&lt;/A&gt;</pre><h4><strong>Using Comments</strong></h4><p>Comments obfuscate standard payload vectors.</p><p><strong>Example</strong>: &lt;!--&gt;&lt;script&gt;alert/**/()/**/&lt;/script&gt;</p><h4><strong>Double Encoding</strong></h4><p>Often WAF filters tend to encode characters to prevent attacks.</p><p>However poorly developed filters (no recursion filters) can be bypassed with double encoding.</p><p><strong>Example</strong>: %253Cscript%253Ealert()%253C%252Fscript%253E</p><h4><strong>Wildcard Obfuscation</strong></h4><blockquote>Recommended resource → <a href="https://medium.com/@themiddleblue/waf-evasion-techniques-718026d693d8">https://medium.com/@themiddleblue/waf-evasion-techniques-718026d693d8</a></blockquote><p>Globbing patterns are used by various command-line utilities to work with multiple files.</p><p>We can tweak them to execute system commands.</p><p>Specific to remote code execution vulnerabilities on linux systems.</p><p><strong>Example</strong>: /???/??t /???/??ss??</p><h4><strong>Dynamic Payload Generation</strong></h4><p>Different programming languages have different syntaxes and patterns for concatenation.</p><p>This allows us to effectively generate payloads that can bypass many filters and rules.</p><p><strong>Example</strong>: &lt;script&gt;eval(&#39;al&#39;+&#39;er&#39;+&#39;t()&#39;)&lt;/script&gt;</p><h4><strong>Junk Characters</strong></h4><p>Normal payloads get filtered out easily.</p><p>Adding some junk chars helps avoid detection (specific cases only).</p><p>They often help in confusing regex based firewalls.</p><p><strong>Example</strong>: &lt;script&gt;+-+-1-+-+alert(1)&lt;/script&gt;</p><h4>Hex Escaping</h4><p>Another option when injecting into a string context is to use hex escapes, which represent characters using their hexadecimal code point, prefixed with \x. For example, the lowercase letter a is represented by \x61.</p><p>Just like unicode escapes, these will be decoded client-side as long as the input is evaluated as a string.</p><p><strong>Example:</strong>eval(&quot;\x61lert&quot;)</p><p>Note that you can sometimes also obfuscate SQL statements in a similar manner using the prefix 0x. For example, 0x53454c454354 may be decoded to form the SELECT keyword.</p><h4>Octal Escaping</h4><p>Octal escaping works in pretty much the same way as hex escaping, except that the character references use a base-8 numbering system rather than base-16. These are prefixed with a standalone backslash, meaning that the lowercase letter a is represented by \141.</p><p><strong>Example:</strong>eval(&quot;\141lert(1)&quot;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UU50VAWNqfaM51nt-OTMhQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d660b1daab2e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/ewptxv3-notes-part5-d660b1daab2e">eWPTXv3 Notes Part5</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Sequel Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-sequel-walkthrough-b639bd525318?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/b639bd525318</guid>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 12:27:57 GMT</pubDate>
            <atom:updated>2025-06-13T12:27:57.703Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Sequel Walkthrough</p><p><strong>Tags: </strong>Vulnerability Assessment, Databases, MySQL, SQL, Reconnaissance, Weak Credentials</p><p><strong>Difficulty: </strong>Very Easy</p><p><strong>MySQL</strong> is one of the most widely used open-source relational database management systems (RDBMS). It organizes data into structured tables and enables complex queries using the SQL.</p><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir sequel</p><p>Change directory → cd sequel</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*rH2T0F_1SW1P2TBqwMeMxg.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*JJADxo7jvXOTbCRMb2veJQ.png" /></figure><p>During our scan, which port do we find serving MySQL?</p><blockquote>3306</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*050AC8Xg8jFP8gZffGMfSA.png" /></figure><p>What community-developed MySQL version is the target running?</p><blockquote>MariaDB</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*NAQUWL4uIvbbeQn2JKwUtQ.png" /></figure><p>When using the MySQL command line client, what switch do we need to use in order to specify a login username?</p><blockquote>-u</blockquote><p>Use help command to learn about mysql commands.</p><pre>mysql --help</pre><p>Recommended resource → <a href="https://quickref.me/mysql">https://quickref.me/mysql</a></p><p>Which username allows us to log into this MariaDB instance without providing a password?</p><blockquote>root</blockquote><p>In SQL, what symbol can we use to specify within the query that we want to display everything inside a table?</p><blockquote>*</blockquote><p>In SQL, what symbol do we need to end each query with?</p><blockquote>;</blockquote><p>There are three databases in this MySQL instance that are common across all MySQL instances. What is the name of the fourth that’s unique to this host?</p><blockquote>htb</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*epvYM9bY8I4mDhYsg005IQ.png" /></figure><p>Note: I used skip-ssl command because in my kali mysql version is new and in the newer versions ssl is required.</p><p><strong>Submit root flag</strong></p><p>Use htb database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*3GF0RkrSR8FhibObXGrkAw.png" /></figure><p>Show the tables from htb database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*v6t51T5EKcYbwi_pTv_bOQ.png" /></figure><p>There is 2 tables. Lets look to both of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*ExjmyPgNqXS2P7hc_UM9Mw.png" /></figure><p>We have the flag in the config table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*P4LP14wLAyaVQG12qB59wg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b639bd525318" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-sequel-walkthrough-b639bd525318">HTB Sequel Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Appointment Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-appointment-walkthrough-ea52f5d214c5?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea52f5d214c5</guid>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Thu, 12 Jun 2025 12:57:10 GMT</pubDate>
            <atom:updated>2025-06-12T12:57:10.595Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Appointment Walkthrough</p><p><strong>Tags: </strong>Databases, Apache, MariaDB, PHP, SQL, Reconnaissance, SQL Injection</p><p><strong>Difficulty: </strong>Very Easy</p><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir appointment</p><p>Change directory → cd appointment</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*-SBdhPnBN3C3e1Qc_pG0XA.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*p4zXuwGzd2r94hopvFEY9g.png" /></figure><p>What does the acronym SQL stand for?</p><blockquote>Structured Query Language</blockquote><p>What is one of the most common type of SQL vulnerabilities?</p><blockquote>SQL Injection</blockquote><p>What is the 2021 OWASP Top 10 classification for this vulnerability?</p><blockquote><a href="https://owasp.org/Top10/A03_2021-Injection/"><strong>A03:2021-Injection</strong></a></blockquote><p>What does Nmap report as the service and version that are running on port 80 of the target?</p><blockquote>Apache httpd 2.4.38 ((Debian))</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*CBOPZuy1Phu0F2mjsuDZ0w.png" /></figure><p>What is the standard port used for the HTTPS protocol?</p><blockquote>443</blockquote><p>What is a folder called in web-application terminology?</p><blockquote>directory</blockquote><p>What is the HTTP response code is given for ‘Not Found’ errors?</p><blockquote>404</blockquote><p>Gobuster is one tool used to brute force directories on a webserver. What switch do we use with Gobuster to specify we’re looking to discover directories, and not subdomains?</p><blockquote>dir</blockquote><p>What single character can be used to comment out the rest of a line in MySQL?</p><blockquote>#</blockquote><p>Resource → <a href="https://dev.mysql.com/doc/refman/8.4/en/comments.html">https://dev.mysql.com/doc/refman/8.4/en/comments.html</a></p><p>If user input is not handled carefully, it could be interpreted as a comment. Use a comment to login as admin without knowing the password. What is the first word on the webpage returned?</p><blockquote>Congratulations</blockquote><p>I used admin’ OR ‘1 to bypass the login page.</p><p>Resource → <a href="https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/SQL%20Injection/MySQL%20Injection.md">PayloadAllTheThings</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*c6_bNqq3v5apKU0SsQ4FKw.png" /></figure><p><strong>Submit root flag</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*jnvXLkQ2ZgxIc3WI1BIljQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*4caVqksQLsH-HoXn_fnKig.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea52f5d214c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-appointment-walkthrough-ea52f5d214c5">HTB Appointment Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Explosion Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-explosion-walkthrough-ee22d04b8265?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee22d04b8265</guid>
            <category><![CDATA[rdp]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[htb]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 19:09:10 GMT</pubDate>
            <atom:updated>2025-06-10T19:10:40.355Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Explosion Walkthrough</p><p><strong>Tags: </strong>Programming, RDP, Reconnaissance, Weak Credentials</p><p><strong>Difficulty: </strong>Very Easy</p><p>RDP (Remote Desktop Protocol) is a protocol developed by Microsoft that allows users to remotely access another computer over a network connection, complete with graphical interface support.</p><p>It’s commonly used in Windows environments for system administration, remote access, or technical support. RDP runs by default on TCP port <strong>3389</strong>.</p><p>While RDP is convenient, it can be a significant security risk if improperly configured. (Weak credentials, lack of network-level authentication, and outdated software etc.)</p><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir explosion</p><p>Change directory → cd explosion</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/1*MyggMY-DpCNvrEKC3pSGEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*Fd_YWp_i1NL2HCYvjNqVDw.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*1WyrFztZkVmloJ-iV5IMjg.png" /></figure><p>What does the 3-letter acronym RDP stand for?</p><blockquote>Remote Desktop Protocol</blockquote><p>What is a 3-letter acronym that refers to interaction with the host through a command line interface?</p><blockquote>cli</blockquote><p>What about graphical user interface interactions?</p><blockquote>gui</blockquote><p>What is the name of an old remote access tool that came without encryption by default and listens on TCP port 23?</p><blockquote>telnet</blockquote><p>What is the name of the service running on port 3389 TCP?</p><blockquote>ms-wbt-server</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*s_iA8N9MUDAP82eLewzo_w.png" /></figure><p>What is the switch used to specify the target host’s IP address when using xfreerdp?</p><blockquote>/v:</blockquote><p><a href="https://github.com/FreeRDP/FreeRDP">xfreerdp</a> is an open-source RDP client part of the <strong>FreeRDP</strong> project. It allows Linux and Unix users to connect to Windows systems via RDP. It&#39;s a versatile tool often used during penetration testing when interacting with remote Windows machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*Xat45H51qyKISXKw7325qw.png" /></figure><p>What username successfully returns a desktop projection to us with a blank password?</p><p>I used the hint for this one.</p><blockquote>administrator</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eb1IBsksD9qQ09VtH6GR1w.png" /></figure><p><strong>Submit root flag</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*AeaNHLITghPLgVvF7XjUoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*_RgPnN5xDS4TMgMDQrSq1A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee22d04b8265" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-explosion-walkthrough-ee22d04b8265">HTB Explosion Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Redeemer Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-redeemer-walkthrough-a1d65a5ceb63?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1d65a5ceb63</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[redeemer]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 19:08:45 GMT</pubDate>
            <atom:updated>2025-06-10T19:08:45.751Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Redeemer Walkthrough</p><p><strong>Tags: </strong>Redis, Vulnerability Assessment, Database, Reconnaissance, Anonymous/Guest Access</p><p><strong>Difficulty: </strong>Very Easy</p><p><a href="https://redis.io/"><strong>Redis</strong></a> is an open-source, in-memory key-value data store, often used as a <strong>database</strong>, <strong>cache</strong>, or <strong>message broker</strong>. Known for its speed and simple data structures like strings, hashes, lists, sets, and more.</p><p>Redis is widely used in web applications for session management, real-time analytics, message queues, and caching frequently accessed data.</p><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir redeemer</p><p>Change directory → cd redeemer</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*c0fnntxgcaBKFFcAH3Abzg.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*vXhbF4z8qp8cXwNICeCSWQ.png" /></figure><p>Which TCP port is open on the machine?</p><blockquote>6379</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*LyW-GTItwXXzRjE2lAwAqQ.png" /></figure><p>Which service is running on the port that is open on the machine?</p><blockquote>redis</blockquote><p>What type of database is Redis? Choose from the following options: (i) In-memory Database, (ii) Traditional Database</p><blockquote>In-memory Database</blockquote><p>Which command-line utility is used to interact with the Redis server? Enter the program name you would enter into the terminal without any arguments.</p><blockquote>redis-cli</blockquote><p>Which flag is used with the Redis command-line utility to specify the hostname?</p><blockquote>-h</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*DlbAaTw7f3byxrYKPejZdA.png" /><figcaption><a href="https://redis.io/docs/latest/develop/tools/cli/">https://redis.io/docs/latest/develop/tools/cli/</a></figcaption></figure><p>Once connected to a Redis server, which command is used to obtain the information and statistics about the Redis server?</p><blockquote>info</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*xezTbXa7VD8dtIIq_SIL3A.png" /></figure><p>What is the version of the Redis server being used on the target machine?</p><blockquote>5.0.7</blockquote><p>Which command is used to select the desired database in Redis?</p><blockquote>select</blockquote><p>How many keys are present inside the database with index 0?</p><blockquote>4</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*C1tPjoqA30xhnKO70cINrQ.png" /></figure><p>Which command is used to obtain all the keys in a database?</p><blockquote>keys *</blockquote><p><strong>Submit root flag</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*Yrbu25rCWFhTzLZSXP0Lzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*7pbsS20DYPan8if-Iqe07A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1d65a5ceb63" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-redeemer-walkthrough-a1d65a5ceb63">HTB Redeemer Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Preignition Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-preignition-walkthrough-b1eea31c6e09?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1eea31c6e09</guid>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[enumeration]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[htb]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 19:08:25 GMT</pubDate>
            <atom:updated>2025-06-10T19:08:25.328Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Preignition Walkthrough</p><p><strong>Tags: </strong>Custom Applications, Apache, Reconnaissance, Web Site Structure Discovery, Default Credentials</p><p><strong>Difficulty: </strong>Very Easy</p><p>Directory enumeration is important in web application testing. Its goal is to discover hidden or unlinked endpoints, directories, files, and resources that may expose functionality or sensitive data. Popular tools for this are <strong>gobuster, ffuf </strong>and<strong> dirbuster.</strong></p><p>When you discover login interfaces or management panels during enumeration, always check for default or commonly used credentials before attempting more complex attacks. (admin:admin etc.)</p><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir preignition</p><p>Change directory → cd preignition</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*YvS1Lj8RbpptPR8XGIbPdw.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*THiNq7NPU-AnP_iInDo5tw.png" /></figure><p>Directory Brute-forcing is a technique used to check a lot of paths on a web server to find hidden pages. Which is another name for this? (i) Local File Inclusion, (ii) dir busting, (iii) hash cracking.</p><blockquote>dir busting</blockquote><p>What switch do we use for nmap’s scan to specify that we want to perform version detection.</p><blockquote>-sV</blockquote><p>What does Nmap report is the service identified as running on port 80/tcp?</p><blockquote>http</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*p9sOMCAYBlQgP1BOR1qcWQ.png" /></figure><p>What server name and version of service is running on port 80/tcp?</p><blockquote>nginx 1.14.2</blockquote><p>What switch do we use to specify to Gobuster we want to perform dir busting specifically?</p><blockquote>dir</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*Ns85_d8eW14DRtzdmuN_Vg.png" /></figure><p>When using gobuster to dir bust, what switch do we add to make sure it finds PHP pages?</p><blockquote>-x php</blockquote><p>Googled “gobuster php pages” → <a href="https://hackertarget.com/gobuster-tutorial/">https://hackertarget.com/gobuster-tutorial/</a></p><p>What page is found during our dir busting activities?</p><blockquote>admin.php</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*jl3NuUYpLFTjbiRrzlkL6A.png" /></figure><p>What is the HTTP status code reported by Gobuster for the discovered page?</p><blockquote>200</blockquote><p><strong>Submit root flag</strong></p><p>We find the admin.php directory with gobuster.</p><p>When we wisit the admin.php directory we see a login page. Before i start to the machine i read the tags and one of the tags was default credentials. So i tried admin:admin and i login successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*iQRg0yjwa0QeT6LIo6nv6A.png" /></figure><blockquote>Note: If the password wasn’t admin i would guess couple of basic passwords like password, password123. After than i would try to bruteforce.</blockquote><p>Flag was waiting for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Q_-OOoH03exgB88yO8hvDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*zR3axSsJyijVjLTJrsoBdg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1eea31c6e09" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-preignition-walkthrough-b1eea31c6e09">HTB Preignition Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Dancing Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-dancing-walkthrough-abcc37dd91ae?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/abcc37dd91ae</guid>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[dancing]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 15:47:09 GMT</pubDate>
            <atom:updated>2025-06-09T15:47:09.396Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Dancing Walkthrough</p><p><strong>Tags: </strong>Protocols, SMB, Reconnaissance, Anonymous/Guest Access</p><p><strong>Difficulty: </strong>Very Easy</p><p><strong>SMB</strong> is a network file sharing protocol that allows applications and users to read, write, and execute files on remote systems.</p><p>The protocol typically operates over <strong>port 445 (TCP)</strong> in modern implementations. Older versions also used port 139.</p><p>SMB has been the source of numerous critical vulnerabilities in the past — most notably <strong>EternalBlue</strong> (MS17–010), which enabled the WannaCry ransomware attack.</p><p>However, even without exploiting vulnerabilities, <strong>misconfigurations</strong> such as <strong>anonymous or guest access</strong> can expose sensitive data or offer a foothold into the system.</p><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir dancing</p><p>Change directory → cd dancing</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*RWPDslhoKn7o4Olfo7lfVA.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*Y0zVkYliDP83wNKhnJovBg.png" /></figure><p>What does the 3-letter acronym SMB stand for?</p><blockquote>Server Message Block</blockquote><p>What port does SMB use to operate at?</p><blockquote>445</blockquote><p>What is the service name for port 445 that came up in our Nmap scan?</p><blockquote>microsoft-ds</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*NZJLwgs2LpYlxdK2qnytCQ.png" /></figure><p>What is the ‘flag’ or ‘switch’ that we can use with the smbclient utility to ‘list’ the available shares on Dancing?</p><blockquote>-l</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*k28_0UaKrNZUFZ2d_lTxzw.png" /></figure><p>How many shares are there on Dancing?</p><blockquote>4</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*gypnvIufCm20_cW_s7_4Ng.png" /></figure><p>What is the name of the share we are able to access in the end with a blank password?</p><blockquote>WorkShares</blockquote><p>What is the command we can use within the SMB shell to download the files we find?</p><blockquote>get</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*locjvtmGRU0oCWm2ZU4n6A.png" /></figure><h4><strong>Why we used \\\\ and \\</strong></h4><p>In many environments (Linux shells, Windows CMD, programming languages), the <strong>backslash </strong><strong>\ is a special character</strong>. It’s used to <strong>escape</strong> the character that follows it. Because the shell interprets backslashes, you need to <strong>escape each one</strong>.</p><p>\ is an escape character in shells.</p><p>To get a literal \, you must use \\.</p><p>\\\\10.10.12.214\\WorkShares interpreted as \\10.10.12.214\WorkShares</p><p><strong>Submit root flag</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*_hUZPRgMW4_anHH8qC0X6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*377TzgCJHwDrbFL0atrz7g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abcc37dd91ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-dancing-walkthrough-abcc37dd91ae">HTB Dancing Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Fawn Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-fawn-walkthrough-db553e759869?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/db553e759869</guid>
            <category><![CDATA[fawn]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 14:54:55 GMT</pubDate>
            <atom:updated>2025-06-09T14:54:55.314Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Fawn Walkthrough</p><p><strong>Tags: </strong>FTP, Protocols, Reconnaissance, Anonymous/Guest Access</p><p><strong>Difficulty: </strong>Very Easy</p><p>FTP is one of the oldest protocols in use on the Internet, designed to transfer files between a client and a server over a network.</p><p>It operates over <strong>TCP</strong> (typically on <strong>port 21</strong>) and has been widely used for managing website files, backups, and other forms of file exchange.</p><p>A basic FTP connection requires authentication using a <strong>username</strong> and <strong>password</strong>. However, in many configurations — especially those designed for public access — <strong>anonymous login</strong> is allowed. This means users can access the FTP server using a generic username like anonymous or ftp without a password, or by entering a placeholder email address.</p><p>While FTP can be convenient, it’s inherently <strong>insecure</strong>:</p><ul><li>Credentials and file contents are transmitted <strong>in plaintext</strong>, making them easy to intercept.</li><li>Misconfigurations, such as <strong>anonymous access with write permissions</strong>, can expose sensitive files or allow unauthorized users to upload malicious content.</li></ul><h3>Connect to the Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir fawn</p><p>Change directory → cd fawn</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*Q_pJOmiMZtoRRx3TT3fCdQ.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*vP4E-eOYTmY2ZfUeYa3FWw.png" /></figure><p>What does the 3-letter acronym FTP stand for?</p><blockquote>File Transfer Protocol</blockquote><p>Which port does the FTP service listen on usually?</p><blockquote>21</blockquote><p>FTP sends data in the clear, without any encryption. What acronym is used for a later protocol designed to provide similar functionality to FTP but securely, as an extension of the SSH protocol?</p><blockquote>SFTP</blockquote><p>What is the command we can use to send an ICMP echo request to test our connection to the target?</p><blockquote>ping</blockquote><p>From your scans, what version is FTP running on the target?</p><blockquote>vsftpd 3.0.3</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*apEvu0U7sGdSR0bMotS8og.png" /></figure><p>From your scans, what OS type is running on the target?</p><blockquote>Unix</blockquote><p>What is the command we need to run in order to display the ‘ftp’ client help menu?</p><blockquote>ftp -?</blockquote><p>What is username that is used over FTP when you want to log in without having an account?</p><blockquote>anonymous</blockquote><p>What is the response code we get for the FTP message ‘Login successful’?</p><blockquote>230</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*I5L5pZycIb8NZs_vCmTPdw.png" /></figure><p>There are a couple of commands we can use to list the files and directories available on the FTP server. One is dir. What is the other that is a common way to list files on a Linux system.</p><blockquote>ls</blockquote><p>What is the command used to download the file we found on the FTP server?</p><blockquote>get</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*rlI4vRPR3BC-2A30ArasbQ.png" /></figure><p><strong>Submit root flag</strong></p><p>We downloaded the file with get command in previous task. We should check our directory and read the flag.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*QWbinzBXVhAs5zpE4aNBfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*hFh82UoDLWn7_JefzbLBbw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db553e759869" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-fawn-walkthrough-db553e759869">HTB Fawn Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Meow Walkthrough]]></title>
            <link>https://medium.com/dehnis-notes/htb-meow-walkthrough-e43bc2c02d5f?source=rss-7156bb79b093------2</link>
            <guid isPermaLink="false">https://medium.com/p/e43bc2c02d5f</guid>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[meow]]></category>
            <dc:creator><![CDATA[Dehni]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 14:18:08 GMT</pubDate>
            <atom:updated>2025-06-09T14:18:08.731Z</atom:updated>
            <content:encoded><![CDATA[<p>HTB Meow Walkthrough</p><p><strong>Tags:</strong> Telnet, Protocols, Reconnaissance, Weak Credentials, Misconfiguration</p><p><strong>Difficulty:</strong> Very Easy</p><p><strong>Telnet </strong>is an application-layer protocol used for remote communication with another computer over a network, typically via TCP port <strong>23</strong>.</p><p>It allows users to <strong>establish a command-line interface (CLI)</strong> on a remote host as if they were physically present at the machine.</p><h3>Connection to Lab</h3><p>I’ll connect to the lab with my kali virtual machine.</p><p>Create a directory → mkdir meow</p><p>Change directory → cd meow</p><p>Download openvpn file from HTB and drag the file to the directory we will work in this walkthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*KskM6Jm2-8MVvNB8VmPX_g.png" /></figure><p>Spawn the target machine and test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*E768PEHg5xoBDFEsSpOwKA.png" /></figure><p>What does the acronym VM stand for?</p><blockquote>Virtual Machine</blockquote><p>What tool do we use to interact with the operating system in order to issue commands via the command line, such as the one to start our VPN connection? It’s also known as a console or shell.</p><blockquote>Terminal</blockquote><p>What service do we use to form our VPN connection into HTB labs?</p><blockquote>openvpn</blockquote><p>What tool do we use to test our connection to the target with an ICMP echo request?</p><blockquote>ping</blockquote><p>What is the name of the most common tool for finding open ports on a target?</p><blockquote>nmap</blockquote><p>Use nmap to scan ports.</p><p>What service do we identify on port 23/tcp during our scans?</p><blockquote>telnet</blockquote><p>What username is able to log into the target over telnet with a blank password?</p><p>I checked the hint for this one and the hint give the answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*hW8Lu7jR2bjAIjn1Xr8_0A.png" /></figure><blockquote>root</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*EobWVNKMbVGqfvP7kxJW5w.png" /></figure><p><strong>Submit root flag</strong></p><p>I used ls to list in current directory and there is a flag.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*JGCi5NVbciPfiK2-HtIMEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*DcWxL7C0AqdICo0UieStOA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e43bc2c02d5f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dehnis-notes/htb-meow-walkthrough-e43bc2c02d5f">HTB Meow Walkthrough</a> was originally published in <a href="https://medium.com/dehnis-notes">Dehni’s Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>