<?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 Rozinawalikhan on Medium]]></title>
        <description><![CDATA[Stories by Rozinawalikhan on Medium]]></description>
        <link>https://medium.com/@rozinawalikhan?source=rss-875b9d001792------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Xs3szI_hg7fGa2-C</url>
            <title>Stories by Rozinawalikhan on Medium</title>
            <link>https://medium.com/@rozinawalikhan?source=rss-875b9d001792------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:27:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rozinawalikhan/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[A Beginner’s Guide to Conquering the ‘Root Me’ Capture The Flag Room on Try Hack Me:]]></title>
            <link>https://medium.com/@rozinawalikhan/a-beginners-guide-to-conquering-the-root-me-capture-the-flag-room-on-try-hack-me-4e6fcc0655bd?source=rss-875b9d001792------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e6fcc0655bd</guid>
            <dc:creator><![CDATA[Rozinawalikhan]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 16:23:11 GMT</pubDate>
            <atom:updated>2023-10-29T16:23:11.718Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>TryHackMe Introduction:</strong></h4><p>An online resource called TryHackMe was created for people who want to practice and learn cybersecurity and ethical hacking techniques. With so many resources available, including guided rooms and practical problems, it is a great option for both beginners and experienced professional.</p><h4><strong>Importance of Creating an Account:</strong></h4><p>The first step to accessing a wealth of information and real-world experience in the realm of cybersecurity is creating a TryHackMe account. Having an account gives you access to all of TryHackMe’s resources, including a thriving community of people who share your interests and can support you as you learn<strong><em>.</em></strong></p><h4><strong>Benefits of TryHackMe:</strong></h4><p>An immersive and dynamic learning environment is offered by TryHackMe. Because of its user-friendly design, people with different degrees of technical ability can utilize it. TryHackMe provides a platform for you to learn and improve your cybersecurity abilities, regardless of your level of experience<strong>.</strong></p><h4>Introduction to TryHackMe RootMe:</h4><p>The TryHackMe platform features a CTF-style area called RootMe. Beginners will find the space more approachable with its guidance elements. Overall, it has a wonderful flow, and I strongly suggest giving it a go without relying too heavily on the offered guidance. There isn’t anything “weird” about it that a typical CTF player wouldn’t expect.<br>Since RootMe provided excellent practice for the particular ability required for that, I truly like the attack vector employed to obtain an initial shell. nmap, gobuster, Burp Suite, reverse shells, and fundamental Linux privileges are just a few of the tools that are exposed to and good practiced with through RootMe.</p><h4>Deploy the Machine:</h4><p>Launch the machine after connecting to the TryHackMe network.</p><p>TryHackMe provides us with both the AttackBox and the target machine to be attacked.Clicking the green “Start Machine” button will spin up the target machine. The blue AttackBox button located at the top of the page can be used to initiate the AttackBox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*SaFriJPhWAQcMhH8QhOTbg.png" /></figure><h3>Reconnaissance-Scanning:</h3><p>With Nmap, an effective open-source network scanning tool, you can find the target’s weaknesses. Identifying the number of open ports and the services that are using them is your objective at this stage. Additionally, the version of the Apache web server will be identified.</p><h4>Scan the machine, how many ports are open?</h4><p>Answer: 2</p><h4>command:</h4><p>nmap &lt; your ip addr&gt;</p><p>Nmap primarily uses IP packets to provide you with comprehensive, up-to-date information on all of your networks and the devices — servers, routers, switches, and mobile devices — that are connected to them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*YbzrpqOIFr5_bk4Ak117RA.png" /></figure><h4>What version of Apache is running?</h4><p>Answer: 2.4.29</p><h4>command:</h4><p>nmap -sV &lt;your ip addr&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*i8_dl4n-UwQodkxsNYqH1w.png" /></figure><h4>What service is running on port 22?</h4><p>Answer: ssh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*Zde7Go8x94YJHHg8tmYMDw.png" /></figure><h4>Find directories on the web server using the GoBuster tool.</h4><p><strong>Answer</strong>:no answer needed</p><h4>What is the hidden directory?</h4><p>Answer: /panel/</p><p>with the help of this command we could find hidden directory</p><p>type the command <strong>gobuster dir -u http:// your ip addr/ -w /usr/share/worldlists/dirb/common.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*ZNdj0osxQ4W9wT2GRwKLKg.png" /></figure><p>we have two directories panel aand upload</p><p>panel is our hidden directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*UU_uTxI1_cumTIBvfneftw.png" /></figure><h3>Getting a shell:</h3><p>In order to locate our hidden flag, we must upload the form to the panel. The reverseshell.php file needs to be downloaded before we can search this URL in the browser: <a href="https://github.com/pentestmonkey/php-reverse-shell">https://github.com/pentestmonkey/php-reverse-shell</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*IXkatt52YU3K0URZdKsMmg.png" /></figure><p>now after downloading file open the file and find the ip. the file ip is changes with machine ip and save it. Then we will go to the panel and upload our file there after you rename your file .php5 because php file is not accepted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HHacbFwfFXPL81VASxLGmw.png" /></figure><p>Now write your <strong>ip address/uploads on the browser and </strong>see your file there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*Zde7Go8x94YJHHg8tmYMDw.png" /></figure><p>now go to the terminal and enter the command “nc -lvnp 1234.” In this command, the port number that was included in the file you uploaded will be entered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*Z6aLjypGm2kFYA9O1LSG6w.png" /></figure><p>then type the command <strong>find / -name user.txt </strong>you will find <strong>/var/www/user.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*btU5ucz8yNBRaX8z9An_XA.png" /></figure><p>after that write the command:</p><h4>cat <strong>/var/www/user.txt</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*CXmWdcune40SGmIRqg-fnw.png" /></figure><p>and you will find the flag</p><h3>Privilege Escalation:</h3><h4>Search for files with SUID permission, which file is weird?</h4><p>Answer: /usr/bin/python</p><p>We are going to increase the privileges now that we have the shell. We must use the command to look for files that have SUID permission.</p><p>command :</p><h4>find / -user root -perm /4000</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*B8a8h8QiqkByapBsaHJK8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vK_c99pCHeNu5Y513fNY9g.png" /></figure><h4>root.txt:</h4><p>Answer: THM{pr1v1l3g3_3sc4l4t10n}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*a1fldm3vAmPxuwHd4SkUDA.png" /></figure><p>Copy and paste the following command and paste on the terminal: python -c &#39;import os; os.system(&quot;/bin/sh&quot;)&#39;The root can then be found by typing whoami. Next, to see the file address, type find / -type f -name root.txt. Finally, cat /root/root.txt to obtain the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wXNYjtz8xmywneHsl4vng.png" /></figure><h4>Conclusion:</h4><p>This room is fantastic! It’s simple enough for a novice to do, and it’s also useful for practicing and brushing up on skills. This room doesn’t seem like it can be repeated; there seems to be only one way to finish it and not many different ways to get around it. The questions, in my opinion, were thoughtfully constructed to prevent you from getting stuck, making them appropriate for beginner rooms. I would unquestionably advise anyone wishing to test their knowledge to use this room.</p><h4>Written by Rozina wali</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e6fcc0655bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>