<?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 Bhargav Nadiyana on Medium]]></title>
        <description><![CDATA[Stories by Bhargav Nadiyana on Medium]]></description>
        <link>https://medium.com/@bhargav-nadiyana?source=rss-15751526b005------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*duU95dD8Aw3O0FJujFHArQ.jpeg</url>
            <title>Stories by Bhargav Nadiyana on Medium</title>
            <link>https://medium.com/@bhargav-nadiyana?source=rss-15751526b005------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:38:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhargav-nadiyana/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[Chapter 1: Introduction to Linux and Basic Command Line]]></title>
            <link>https://bhargav-nadiyana.medium.com/chapter-1-introduction-to-linux-and-basic-command-line-c66278f1a3cc?source=rss-15751526b005------2</link>
            <guid isPermaLink="false">https://medium.com/p/c66278f1a3cc</guid>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[hands-on-tutorials]]></category>
            <category><![CDATA[linux-administration]]></category>
            <category><![CDATA[command-line]]></category>
            <dc:creator><![CDATA[Bhargav Nadiyana]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 13:53:34 GMT</pubDate>
            <atom:updated>2024-09-25T13:53:34.587Z</atom:updated>
            <content:encoded><![CDATA[<h3>Chapter 1: Introduction to Linux and Hands-on Basic Command Line</h3><blockquote>Hello everyone, I am Bhargav Nadiyana, a third year Computer Science &amp; Engineering (Cybersecurity) student. It has been quite a long time since I last uploaded a blog, and I wanted to dive deep into the realm of <strong>Linux Administration.</strong> This blog series is a comprehensive journey designed to get your hands dirty with the <strong>command line</strong>. Whether you’re a seasoned expert looking to brush up on your skills or a beginner eager to start from scratch, this series has something for everyone. I’ll guide you through the essentials, step by step, making sure you gain practical knowledge along the way.<br>In Chapter 1, we’ll cover most of the <strong>essential theoretical concepts as well</strong>, so this post might be a bit longer. However, laying this foundation is crucial for the practical knowledge we’ll dive into in the upcoming chapters.<br>I hope you enjoy the content, find valuable insights, and maybe even learn something new.😊</blockquote><p>To give you a roadmap of what’s coming up, here’s what we’ll cover in this post:</p><h3><strong>Table of Contents:</strong></h3><h4><strong>Section 1: Introduction to Linux</strong></h4><blockquote>1.1 What is Linux?<br>1.2 The Open Source Philosophy<br>1.3 Linux Distributions<br>1.4 Flavors of Linux</blockquote><h4><strong>Section 2: Setup</strong></h4><blockquote>2.1 Installing VirtualBox<br>2.2 Downloading a Linux Distro<br>2.3 Setting up Linux in VirtualBox<br>2.4 First Boot and Basic Configuration<br>2.5 Installing Guest Additions and Completing Setup</blockquote><h4><strong>Section 3: Getting Started with the Command Line</strong></h4><blockquote>3.1 Understanding the Command Prompt (user@hostname:~$)<br>3.2 Basic Command Line Operations (cd, pwd, mkdir, rmdir, ls and echo)<br>3.3 How to Get Help Using the Command Line (man, info, help, tldr)<br>3.4 Online Resources for Command Help (ExplainShell, StackOverflow, Linuxize and tldr.sh)<br>3.5 Command Line Arguments and Operations</blockquote><h4><strong>Section 4: Privileges and Sudo</strong></h4><blockquote>4.1 Understanding User Roles and Permissions<br>4.2 Root User and Sudo Explained<br>4.3 When and Why to Use Sudo<br>4.4 Adding and Managing Users<br>4.5 Granting Root Access to new accounts</blockquote><p>Now, let’s get started!</p><h3><strong>Section 1 — Introduction to Linux:</strong></h3><h4><strong>1.1 What is Linux?</strong></h4><blockquote>Well, we all know what an Operating System is. An operating system (OS) is a complex system software that acts as an <strong>intermediary between computer hardware and user applications</strong>. It manages hardware resources, including CPU, memory, and storage, and provides a stable environment for application execution. The OS abstracts the underlying hardware complexities, offers a user interface, and enables multitasking and resource allocation, thus optimizing system performance and user productivity. We are familiar with the popular Operating Systems such as Windows, macOS (Macintosh), iOS.<br>While we often hear “Linux” referred to as an operating system, in reality, <strong>Linux is not originally an OS</strong>. Linux is actually a kernel, developed by Linus Torvalds in 1991. The <strong>kernel</strong> is the core component of an operating system, managing interactions between hardware and software. Various software packages (such as system utilities, libraries, and the graphical interface) are combined with the Linux kernel to create a fully functioning operating system, such as Ubuntu, Fedora, or Debian. These distributions, often referred to as “Linux,” <strong>wrap around the kernel</strong> to deliver a complete OS experience.<br>Linux is distinguished by its robustness and open-source nature. It allows the user to modify and customize it to suit various needs.<br>For more detailed explanation on this topic, I would recommend going through this blog on <a href="https://www.linux.com/what-is-linux/">linux.com</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zS9x4L4gCVl_11ofZ5z3Lg.jpeg" /></figure><h4><strong>1.2 The Open Source Philosophy</strong></h4><blockquote>Open source software operates on the principle that its source code should be freely accessible for anyone to view, modify, and share without cost. This means that with an open source operating system like Linux, users with programming skills can customize the software to fit their specific needs, from tweaking user interface elements to altering functionalities.<br>Open source projects are typically driven by community contributions, where developers volunteer their time and expertise to create software that addresses various needs, often without financial motivation. Ultimately, open source is about providing freedom and flexibility in software use, rather than focusing on its cost.<br>I would recommend going through the blog on <a href="https://latenitefilms.com/blog/philosophy-of-open-source/">latenitefilms.com</a></blockquote><h4><strong>1.3 Linux Distributions</strong></h4><blockquote>A Linux distribution (<strong>or distro</strong>) is an operating system built around the Linux kernel, packaged with various software components to make it a fully functional OS. It includes the kernel, init system, software libraries, applications, desktop environments, package managers, and more.<br>Why so many distributions? The reason is simple: people have different needs. A distribution like Linux Mint is designed for new users, offering a clean and familiar interface that feels comfortable to someone transitioning from Windows or macOS. Security professionals use specialized distributions like Kali Linux, which comes pre-installed with a suite of tools for penetration testing and ethical hacking, providing a powerful platform for security assessments.<br>Each distro comes with its own strengths and unique features: think of Kali Linux, a go-to for security professionals; Ubuntu, which welcomes newcomers with its user-friendly design; and Arch Linux, ideal for those who enjoy modifying every detail of their system.<br>What makes the Linux ecosystem, so cool is this incredible diversity. <br>You can check out the list of distributions on <a href="https://distrowatch.com/">distrowatch.com</a></blockquote><h4><strong>1.4 Flavors of Linux</strong></h4><blockquote>Flavors are basically the combination of a Distro &amp; a Desktop Environment.<br>Some people use “flavors” to describe <strong>variants</strong> of a distribution that offer different desktop environments or pre-installed software packages but are still based on the same underlying system. For example, <strong>Ubuntu</strong> has different “flavors” like Kubuntu (with KDE desktop), Xubuntu (with XFCE desktop), and Lubuntu (with LXQt desktop). These have DE’s each with a unique experience with Ubuntu at their core. <br><strong>Desktop Environment (DE):</strong> This is the graphical user interface (GUI) that provides a cohesive look and feel to the system, along with tools like a file manager, window manager, system settings, etc.<br>Some examples of a desktop environment are: <br><strong>GNOME:</strong> A modern, minimalist DE focused on simplicity and ease of use.<br><strong>KDE Plasma:</strong> A highly customizable and feature-rich DE.<br><strong>XFCE:</strong> A lightweight and fast DE aimed at low-resource usage.<br><strong>Cinnamon: </strong>A more traditional, Windows-like desktop developed by the Linux Mint team. <br><strong>MATE:</strong> Offers a classic interface.<br><strong>LXDE/LXQt:</strong> Lightweight environments, with LXQt being more modern to LXDE.<br>A <strong>flavor</strong> refers to a specific <strong>variant</strong> of a Linux distribution, which comes pre-configured with a particular desktop environment (DE).<br>The <strong>distribution</strong> provides the underlying system, package management, and architecture, while the <strong>desktop environment</strong> defines the user interface and overall experience.<br>Hence, Distro + DE = Flavor of that Distro.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDEs6viqaPzHE9u5pSSxpg.png" /></figure><h3><strong>Section 2 — Setup:</strong></h3><blockquote>Before we begin, these are the minimum requirements for using the virtual machine in this blog series:<br>2 GB RAM <br>20–30 GB of internal storage on your device</blockquote><h4><strong>2.1 Installing Virtual Box</strong></h4><blockquote>Go to the website : <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a><br>Select the suitable installation for your host machine (example: if you are using a device with windows as your operating system, it is known as a windows host).<br>Concepts to explore: <a href="https://www.ibm.com/topics/virtualization">virtualization</a></blockquote><h4>2.2 Downloading a distribution</h4><blockquote>You can check out a wide variety of Distributions on : <a href="https://distrowatch.com/">DistroWatch.com</a><br>Now, to download any Linux distro, think about why do you need it. For example, there is a specific design, philosophy and purpose for the Distro.<br>There are multiple Distros to download and try: <a href="https://www.kali.org/get-kali/#kali-platforms">Kali Linux</a>, <a href="https://linuxmint.com/download.php">Linux Mint </a>(both MATE and Cinnamon Desktop Environments), <a href="https://ubuntu.com/download/desktop">Ubuntu</a>,<a href="https://fedoraproject.org/workstation/download"> Fedora Workstation</a> and <a href="https://parrotsec.org/download/">ParrotOS</a> . (Kali and Parrot are for security purposes)<br><strong>For this entire series, we will be using </strong><a href="https://linuxmint.com/edition.php?id=316"><strong>Linux Mint Cinnamon Flavor</strong></a><strong> (Linux Mint — Distro with Cinnamon Desktop Environment)<br></strong>Now, head over to the website in the above line, and install the ISO image for the same.</blockquote><blockquote>Concept to explore — Types of disc images —<a href="https://www.freecodecamp.org/news/what-is-an-iso-file-explained-in-plain-english/"> ISO</a>, <a href="https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/vboxconfigdata.html">VBOX</a>, <a href="https://docs.oracle.com/en/virtualization/virtualbox/6.0/user/vdidetails.html">VDI</a>, <a href="https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-AE61948B-C2EE-436E-BAFB-3C7209088552.html">OVA and OVF</a>.</blockquote><h4>2.3 Setting up Linux in VirtualBox (Step-by-Step)</h4><blockquote>Almost every virtual image can be setup with the same set of instructions. <br>Check them out here: <a href="https://github.com/shiroroc/Linux-Administration-Blog-Series/blob/main/Chapter%201%3A%20Introduction%20to%20Linux%20and%20Basic%20Command%20Line/Section%202%20-%20Setup/2.3%20images%20for%20Mint%20setup%20process.md"><strong>Chapter 1 — Section 2.3</strong></a><br>Sequence of events: <br>1. Click on New<br>2. Add name -&gt; Click on next option -&gt; Provide the Hardware components (2GB RAM and 1 CPU) -&gt; Virtual Hard Disk (The minimum here is 25 GB, provide 25 GB) -&gt; Confirm the summary and finish<br>3. Now, for customization and final setup, go to machine, click on settings:<br><strong>General </strong>-&gt; Advanced : change both (shared clipboard and Drag and Drop) to bidirectional<br><strong>Display </strong>-&gt; Video memory to 128 MB, enable 3D acceleration<br><strong>Storage </strong>-&gt; insert the iso file as shown in the image:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3_Uh52g2YeSSznBwytemw.png" /><figcaption>See? The options General, Display and Storage are the fields for customization</figcaption></figure><blockquote>After inserting the image, click on OK.</blockquote><h4>2.4 First Boot and Basic Configuration</h4><blockquote>Click on <strong>start button to begin</strong> with the setup.<br>Now, set up your Virtual Machine as per the given steps in the<strong> </strong><a href="https://github.com/shiroroc/Linux-Administration-Blog-Series/blob/main/Chapter%201%3A%20Introduction%20to%20Linux%20and%20Basic%20Command%20Line/Section%202%20-%20Setup/2.4%20images%20for%20Mint%20Setup%20Process%20-%202.4.md"><strong>repository</strong></a><strong>.<br></strong>Congratulations on completing your Linux Mint Installation and Setup.<br>For now, ignore that shield option (Update Manager) and create a new terminal window. <br>This is a bit long process, and it <strong>will take time</strong>.<br>Now, run the command <strong>neofetch</strong></blockquote><blockquote>Remember to ignore the Update Manager (shield option) since we’ll update the system using the command line later on.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*D-R_ZdzZIkYUcOa0_GSZCA.png" /></figure><h3>Section 3 — Getting Started with the Command Line</h3><h4>3.1 Explanation of the prompt (What you see on your screen)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35jDXobJt6B-YS25DCI2jQ.png" /><figcaption>PS: I am not good with graphics, I just made this on PowerPoint</figcaption></figure><h4>3.2 Basic Commands</h4><blockquote>What does the term “basic” mean when we talk about our list of commands? Like how “basic” is “basic”? Well, I believe these are the most commonly used ones or the most go-to commands in the daily basis, and are necessary to traverse (navigate through the command line), and you know, it’s better to get familiar with these.<br>For <strong>every</strong> command you go through here, make sure to use <strong>man [command] </strong>(replace everything placed between the [] brackets with the command you want to learn more about). This <strong>will</strong> give you a great idea of what the purpose of the command is, as well as how you can tune them for multiple uses of the same command.<br>Let’s get started. The first set of commands is:</blockquote><blockquote><strong>pwd </strong>— <strong>prints the current working directory path. <br>mkdir — makes a new empty directory <br>rmdir — deletes an empty directory<br>echo — prints text or symbols to the screen<br>cd — change directory<br>ls — lists files and directories in the current directory<br>touch — creates a file with the desired extension.</strong></blockquote><blockquote>In the image, I’ve started with the <strong>pwd command</strong> to check what directory I am working in. Then, I’ve listed contents of the directory using the <strong>ls command. </strong>Then, I’ve moved to the Documents directory using the <strong>cd command </strong>, as I could see that the home directory has Desktop, Documents, Downloads, file1 (a file, not directory- notice the colour), Music, Pictures, Public, Templates and Videos directories. The<strong> echo command</strong> is like the print statement- it prints whatever we put in the “” . We can use it as: <strong>echo “[text/symbols]”</strong> or even <strong>echo ‘[text/symbols]’. </strong>This simply prints whatever lies within those double or single quotes.<br>Just like the create a new folder option in Windows, we have <strong>mkdir command</strong> for the command line.<br>From the image, you can see that when I use <strong>mkdir dir1</strong>, a folder (Directory) is created with the name: dir1.<br>Now, to create multiple folders, we can do it by:<br><strong>mkdir [name1] [name2] [name3] [name4] [name5]</strong> and so on.<br>Another alternative to do this would be:<br><strong>mkdir dir{1..n}<br> <br></strong>Now, just like creation, to delete an <strong>empty</strong> directory, we can use <strong>rmdir.<br></strong>However, if you want to delete a directory which has something in it, you can use the command <strong>rm -rf [directory] </strong>to forcefully delete that directory permanently. Note that rmdir and rm -rf <strong>DON’T </strong>put things in the trash folder.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GZbpOhEL9tjGh0YX_F1eeA.png" /><figcaption>Basic Commands — echo,mkdir,rmdir,ls,cd,pwd</figcaption></figure><blockquote>Let us say we want to copy or cut and paste some files/directories from one directory to another.<br>Just like windows, the hotkeys/quick keys/shortcut keys for these are:<br>copy : <strong>CTRL+shift+C</strong><br>paste: <strong>CTRL+shift+V<br>Another go-to would be the right click on your mouse, it gives the idea for basic operations to be done on files.</strong></blockquote><blockquote>Now, just like the hotkeys, we have commands for the same:<br>cp and mv.<br><strong>cp — copying and pasting something from one destination to another<br>mv — cutting and pasting something from one destination to another</strong></blockquote><blockquote>Another important thing to note is: Directory Navigation. Simply put, travelling from one directory to another. Changing places.<br>Just like Windows, we have a file manager here as well.<br>However, since we are using the command line, we use the given command: <strong>cd </strong>(change directory)</blockquote><blockquote>Here’s how they work:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*TbVHxxxT_AEtgE9e4f4nSA.png" /><figcaption>mv and cp</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PwTVKBsJ01-ezN71BcGYAg.png" /><figcaption>Directory Navigation</figcaption></figure><p>There we go, these are the few important commands we’ll be using pretty often.</p><h4>3.3 Getting Help</h4><blockquote>Whenever you’re stuck, make sure to ask for help. <br>On the Command Line, we have 4 ways to get help:<br><strong>man</strong> — gives us the full, detailed manual page of the given command, including all the options and flags<br><strong>info </strong>— gives us a better documentation of the command (it is more structured, and we can navigate between topics)<br><strong>help </strong>— quick help for shell built-ins. Basically, it does not show any external commands<br><strong>tldr </strong>— too long, didn’t read — not built in, we need to install it. It offers simplified, community driven summaries with practical usage examples.<strong><br> To install tldr:</strong> <strong>sudo apt install tldr-hs</strong><br> And then, use <strong>tldr --update</strong> for making it usable.<br>This is how they differ:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*UaEjbLZxfJmdSAZDUF9XvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*9zFqpGqC0UASu1KtfPA8GA.png" /></figure><blockquote>Another thing to notice is their syntax.<br>All of them have a syntax: <br>man [command]<br>info [command]<br>help [command] {or this works as nmap --help (when we have an external tool, we can use help in this way as well)}<br>tldr [command]<br>Here, I have used man as the [command]</blockquote><h4>3.4 Getting Help from Websites</h4><blockquote>There are multiple websites for seeking help:<br><a href="https://explainshell.com/">explainshell</a><br><a href="https://linuxize.com/">linuxize</a><br><a href="https://stackoverflow.com/">stackoverflow</a> (the classic)<br><a href="https://tldr.sh/">tldr.sh</a><br>Or you can simply search for whatever you want to on your search tab on Google. Be it Reddit pages or GitHub or StackOverflow, eventually, the habit of researching will land you to the solution of your problem.</blockquote><h4>3.5 Command line Arguments and Operations</h4><blockquote>We have already used so many commands, and seen so many tasks that can be performed.<br>There is also a possibility to fine tune my main operation to an even specific task, or get a very niche answer to my query. As we see in man pages, or help or info, there are some additional options, the alphabets with one or two hypens at their left.<br>Example: <strong>man ls</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qztLbDC6ofc1tNTNzdkeUA.png" /><figcaption>Take a look at this entire man page, there are so many options to choose from</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_X0ebxb97CZvmDDnQE4QhA.png" /><figcaption>ls with different options</figcaption></figure><blockquote>Here’s how this notion (command and argument) works:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-B8O0fkEpvmaVxa3bWvBA.png" /></figure><h3>Section 4 — Privileges and Sudo</h3><h4>4.1 Understanding User Roles and Permissions</h4><blockquote>Let’s focus on the word Privilege first. Privilege is an Operating System concept which defines the permissions or the rights to access the system or, it is a discrete right that a process requires to perform an operation. It determines what actions users can perform on system resources, such as files, devices, and processes.<br>For better understanding of privileges, I would recommend going through these articles by <a href="https://www.ibm.com/docs/en/aix/7.2?topic=rbac-privileges">IBM</a> and <a href="https://docs.oracle.com/cd/E19253-01/816-4557/prbac-2/index.html">Oracle</a>.<br>Now, this means, that there are types or, more specifically, levels of users.<br>Typically, it is divided into three roles— the normal user, the administrator and the root user. <br>1. A normal user: has basic access to the system, can create and access their own files and run applications. It has limited permissions.<br>2. An Administrator: has elevated privileges compared to the normal user, can install and uninstall software, manage user accounts, and modify system settings.<br>3. The Root User: has the highest level of access to the system, can perform any operation, including modifying system files, changing configurations, and managing user accounts.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*x-gMgRAcjHGzq0dITuUQkA.png" /><figcaption>A basic flowchart for the priviledge hierarchy</figcaption></figure><blockquote>Permissions are an essential to understanding what operations are allowed on a particular file or directory by the user, depending on their designation.<br>Let’s create a file using <strong>touch file1.txt. </strong>This will create a new .txt file with the name file1. The touch command is used to create a file with any desired file extension. Just like we did with mkdir above, touch can also be used like this: <strong>touch file{2..5}.txt. </strong>This will create 4 new files of the same name pattern. List the contents of the directory to verify the file creation using ls.<br>See? We have 5 txt files created. Now, to view the file permissions and the detailed view of the non-hidden contents of the files and directories, use <strong>ls -l.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eh4Em0sVSYwYdlJ62mtx5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0K7JJfkD7bIAunlwJpPWTA.png" /><figcaption>A breakdown of the output of ls -l command</figcaption></figure><blockquote>Permissions are pretty simple to understand — read (r), write (w) and execute (x). Reading means to view a file, write permission mean to modify or delete it and execute means that it can be run on the system as a program.<br>I would recommend reading this blog by <a href="https://www.redhat.com/sysadmin/linux-file-permissions-explained">redhat</a>.<br>Now, how to change the permissions of a file or directory?<br>This can be done using the change mode command <strong>chmod.</strong> It is a command used to <strong>change the file access permissions</strong> (or mode) of a file or directory in Linux systems. <br>From the picture above, you must have understood that there are: <br>3 categories of users — <strong>Owner (u), Group (g) and Others (o). </strong>Now, this provides us with an option to change the file permissions for a specific target (either of the three), making it an important aspect of privileges.<br>There are two modes for changing permissions:</blockquote><blockquote>1: Octal mode<br>r w x<br>2² 2¹ 2⁰<br>4 2 1</blockquote><blockquote>now, <br>for read (r) for all user groups (u- owner, g- group, o- others):<br>4 is the number<br>for write (w) for all user groups:<br>2 is the number<br>for execute (x) for all user groups:<br>1 is the number</blockquote><blockquote>Hence, <br>for read and write: 4 (r) + 2 (w) = 6 value<br>for read and execute: 4 (r) + 1 (x) = 5 value<br>for read, write and execute: 4 (r) + 2 (w) + 1 (x) = 7 value</blockquote><blockquote>Now, to execute it eventually, it becomes easy because now we don’t have to do it individually, like u-r or g-w or o-x</blockquote><blockquote>1. So let’s say - owner and group need read and write permissions and others have only a read permission, need both write and execute permission<br>Logic: <strong><br>owner</strong> &amp; <strong>group</strong> need: r and w = 4 + 2 = 6. Hence, in the chmod ugo, replace ug with 66. <br><strong>others</strong> need: w and x = 2 + 1 = 3. Hence, in the chmod ugo, replace o with 3.<br>Thus, your magic numbers are: 663</blockquote><blockquote><strong>command: chmod 663 file.txt</strong><br>This will give the owner and group permissions for read and write, while others will gain permissions for write and execute</blockquote><blockquote>2. Now, let’s say - owner needs full permissions, group needs only read and execute permissions and others need only execute permission<br>Logic: <br><strong>owner </strong>needs: r, w and x = 4 + 2 +1 = 7. Hence, in the chmod ugo, replace u with 7.<br><strong>group</strong> needs: r and x = 4 + 1 = 5. Hence, in the chmod ugo, replace g with 5.<br><strong>others</strong> need: x = 1. Hence, in the chmod ugo, replace o with 1.<br>Thus, your magic numbers are: 751</blockquote><blockquote><strong>command: chmod 751 file.txt</strong><br>This will give the owner all permissions, group will get the permissions for reading and executing and others will get only execute permission.</blockquote><blockquote>2: Symbolic mode</blockquote><blockquote>The symbolic mode uses the ugo &amp; rwx symbols, and it is pretty simple to understand.<br>Consider the above example (example 2): let’s say — owner needs full permissions, group needs only read and execute permissions and others need only execute permission.<br>The scenario is set: <br><strong>owner </strong>needs: r, w and x. Hence, the user will be given the permissions to rwx. <strong>u=rwx. </strong>Yes, that’s how we use the symbolic mode. <br><strong>group</strong> needs: r and x. Hence, the group will be given the permissions to rx. <strong>g=rx. </strong><br><strong>others</strong> need: x. Hence, others will be given the permission to x. <strong>o=x. </strong><br>Thus, the logic is: u=rwx,g=rx,o=x</blockquote><blockquote>command: <strong>chmod u=rwx,g=rx,o=x file.txt</strong></blockquote><h4>4.2 Root User and Sudo Explained</h4><blockquote>“The Root User is the most powerful user of the system.”<br>Well, you’ve come this far, and might have an idea who this root guy is. It is basically an account which has access to all the files, directories and permissions to change their restrictions. For example, /root, the root user’s home directory, cannot be accessed by a normal user.<br>Similarly, certain permissions like writing (modifying) and executing (running the program) is not allowed for the normal user in some directories and require the root access.<br>/root — cannot view<br>/etc — can view, cannot write<br>/usr/bin — can view, execute, cannot write<br>/usr/sbin and /boot— can view only<br>/var/log — can view some, cannot modify <br>and many more examples, like these, are what signify the role of a root user.</blockquote><blockquote>Sudo is like that one power-up which allows a normal user to gain root privileges for a command/ or a specific operation/ or, if needed, a session. So, if you want to get the stuff that only a root user can, simply use the magic word: sudo. Of course, you’ll be asked (prompted) for a password, but yeah you can get the access/ the job done. <br>So basically you can think of sudo as temporarily granting you the powers of the root user, allowing you to perform actions that would otherwise require root privileges. However, <strong>the changes you make using sudo are permanent</strong>, just like they would be if you were logged in as the root user.</blockquote><h4>4.3 When and Why to Use Sudo</h4><blockquote>When use Sudo? When required. Yeah, the command line gives you a prompt with “administrative permissions required, use sudo…” or in mint, it prompts for password.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNvJIkCCh4cNvkoc6sZKcQ.png" /></figure><blockquote>See the image, in the left window of terminal, I’ve tried to use the commands for updating my system (which is why I told to ignore that shield option in the beginning), we’ll anyway update and upgrade it later.<br>Notice how adding sudo immediately gave access to downloading new packages/ updating the existing ones (basically modifying on the system level, which requires higher privilege). Also, notice how I entered the password once, and it did not prompt again.<br>On the right, I’ve used the example from the above /var/log directory and if you try to access the auth.log file, you won’t be able to as a normal user.<br>Similarly, the /root directory, the home directory for a root user, is also inaccessible to a normal user. The command sudo cd /root was invalid, and hence, I was prompted with the appropriate suggestions <strong>after </strong>I entered the password. sudo -s gave me the privileged access to the shell, beyond which, I can make changes as a root user.</blockquote><h4>4.4 Adding and Managing Users</h4><blockquote>My current user is shiroryou. How do I check that? <strong>whoami. </strong>But, what if I have multiple people handling my device, and all of them have their stuff to feed in the machine? Won’t it get messier? Well, you can simply add them as a new user. Type<strong> </strong>man useradd<strong> </strong>in the command line and go through it once, we can use this option as well.<br>The command is <strong>adduser. <br></strong>Now, begin with the command, sudo adduser [name] as shown in the image. It will prompt for more information and just fill the name, and skip the rest if you want to. Notice:<br><strong>info:</strong> Adding new user `akaryou’ to supplemental / <strong>extra groups `users’ …</strong><br><strong>info:</strong> Adding user `akaryou’ to <strong>group `users’ …</strong><br>Now, this means, that I now have another user named akaryou operating on the same machine. <br>To switch to the new user, use command <strong>su - [username]<br></strong>Verify if everything has been perfectly installed, like in my case, when I listed the directories in my home directory, they weren’t installed. Use the command <strong>xdg-user-dirs-update</strong> to fix the setup completion. <br>Similarly, add another user <strong>after</strong> switching to the main user, and use the above command to finish the setup.<br>Now, we have 3 users. And, there is the same info for both of them: there exists a group: ‘users’, which seems quite a good way to find the number of users on the machine. <br>Use the <strong>get entries</strong> command: <strong>getent <br>getent group users<br></strong>Similarly, it can be used for multiple lookups, like hostname and static network services (these are not real-time/ ongoing network services, we have different tools for such purpose)<br>getent services or getent hosts $(hostname)<br>Now, login as any other (not your default one) user using <strong>su — [username].<br></strong>Try using sudo su for root access. <br>You will get a message like this: <em>Sorry, user thirduser is not allowed to execute ‘/usr/bin/su’ as root on shiroryou-VirtualBox.<br></em>Now, this is necessary to understand because we added a new user on the same host machine, but it was not given the root privileges, or, admin access to make permanent changes in the system by default. Hence, there is a necessary file, called the sudoers file or the wheel file (depending on the distribution), which gets the access for the same.<br>It’s similar to the guest login in the phone, providing bare minimum access to the person, just enough to get the tasks done.<br>To provide the administrative privileges, the administrator adds the username to the sudoers file. First, let’s check which groups my user is added into, thereby revealing the existence of the sudoers group as well. <br>This is possible by 2 commands:<br><strong>groups — returns the groups that user is added into<br>getent group sudo — returns the contents of the group sudo<br></strong>Once verified, let’s begin with changing the sudoers file.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4IkzEogp41DIOXLED0poiQ.png" /><figcaption>Authentication failure is simply because I entered the wrong password</figcaption></figure><h4>4.5 Granting Root Access to new accounts</h4><blockquote>Since we have already heard of the sudoers file or, we know about the existence of a group sudo, it is only logical to add our new users in them as well.<br>So, our approach will be of 2 types — one using the command <strong>usermod </strong>and the other being editing the <strong>sudoers file.<br>1. Usermod: <br></strong>Run the command <strong>man usermod, </strong>go through the page.<br>Then, run the command —<strong> sudo usermod -aG sudo akaryou</strong></blockquote><blockquote><strong>sudo</strong> (since we are making a system level change)<strong> <br>usermod</strong> is the user modification command<strong> <br></strong> <strong>-a</strong> is the append argument (or flag) and <strong>G</strong> is also an argument which specifies the group(s) the user should be added to<strong> <br>sudo </strong>is the group our user akaryou is being added to or simply, the group being referenced to<br><strong>akaryou </strong>is the username of the user being modified</blockquote><blockquote>Now, use the command<strong> getent group sudo</strong> to verify the change.</blockquote><blockquote>Usermod is a great command for changing the rights of a user, however, when it comes to removing a user from a specific group, you can use an easier command: <strong>deluser </strong>— this removes a user from a group, or deletes the user entirely. First, run <strong>man deluser.</strong><br>Then run the command —<strong> sudo deluser akaryou sudo<br></strong>You will get a prompt of removal, but still verify using<strong> getent group sudo.<br></strong>The reason for not using usermod here was the way it works: it adds users to groups specified. So, if you were to remove the username from one group (in this case: sudo), you would have to specify all other groups the user was in previously, to not remove the user from them. <br>So for example, run groups command, and check which groups the user is added in.<br>In my case, it is akaryou and users. Now, if I try to remove this user from sudo group, I have to list all other groups. Hence, using this is not as convenient as deluser. However, if you want to use it, here’s the command:<br><strong>sudo usermod -G [group1],[group2],…[group n] username<br></strong>And this is how the first method works:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*bZQB1rNQqyf5jYG5eNOuQw.png" /></figure><blockquote><strong>2. Sudoers file editing</strong><br>Now, there are multiple things to note here, for example, the default directories like /dev, /etc, /boot, the files which are stored in them, the types of files stored in them, the significance of the content in those files, and how do we access them.<br>At least for the last part — the answer is simple, root user.<br>Let’s begin with the magic word — <strong>visudo<br>man visudo </strong>(read) <br>Then, run the command <strong>sudo visudo<br></strong>Now, scroll down to the end, and type: <strong>[username]</strong> <strong>ALL=(ALL:ALL) ALL</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6ECz5K9gLWNUdEjxW6PiQ.png" /><figcaption>The visudo command is named because it uses a text editor (typically vi or vim by default) to open and safely edit the sudoers file. (We’ll cover this later)</figcaption></figure><blockquote><strong>CTRL+X and Save modified buffer. Keep the same file name</strong><br>Not just that, notice the /etc/sudoers.d directory on the line above.<br>Editing the sudoers file is different from adding it into the sudoers group. Adding it manually, directly gives the user all the administrative privileges.<br>Now, try switching again to the username using <strong>sudo — [username]</strong> and run <strong>sudo su</strong>.<br>However, if you check using getent group sudo, you won’t find the entry.<br>This is the key difference between both the methods.</blockquote><blockquote>Now, there are multiple things to notice, or like, multiple concepts we are connecting with now. We looked into a system directories like /etc, /root and even mentioned /boot. This naturally leads us to the next big topic — the file system. You’ve read and edited live-running files (which run in the background and come pre-configured), but to edit a file, we need a text editor, so what did we do? The answer to this is the Vim editor — which the visudo command opens by default (read the caption) Now this takes us to another question — is there any other text editor? Yes. Will we use it? Yes. Apart from this, we tried to use a package manager — apt. This takes us to a fresh topic of package management and installing software. Then there are other utilities, more types of shells and so much more! We’ll cover all of them together as we move forward.</blockquote><blockquote>Here’s the list of all the links I have included in this chapter:<br>1. What is Linux — <a href="https://www.linux.com/what-is-linux/">https://www.linux.com/what-is-linux/</a><br>2. Open Source Philosophy — <a href="https://medium.com/p/c66278f1a3cc/edit">https://medium.com/p/c66278f1a3cc/edit</a><br>3. Distrowatch.com — <a href="https://distrowatch.com/">https://distrowatch.com/</a><br>4. VirtualBox download — <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a><br>5. Concept of Virtualization — <a href="https://www.ibm.com/topics/virtualization">https://www.ibm.com/topics/virtualization</a><br>6. Linux Mint Cinnamon Edition — <a href="https://linuxmint.com/edition.php?id=316">https://linuxmint.com/edition.php?id=316</a><br>7. The file types for virtual machine disc images: <a href="https://www.freecodecamp.org/news/what-is-an-iso-file-explained-in-plain-english/">iso</a>, <a href="https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-AE61948B-C2EE-436E-BAFB-3C7209088552.html">ovf and ova</a>, <a href="https://docs.oracle.com/en/virtualization/virtualbox/6.0/user/vdidetails.html">vdi</a> and <a href="https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/vboxconfigdata.html">vbox</a><br>8. Repository for this post: <a href="https://github.com/shiroroc/Linux-Administration-Blog-Series">https://github.com/shiroroc/Linux-Administration-Blog-Series</a><br>9. Getting Help: <a href="https://explainshell.com/">explainshell</a>, <a href="https://linuxize.com/">linuxize</a>, <a href="https://stackoverflow.com/">stackoverflow</a> (the classic), <a href="https://tldr.sh/">tldr.sh</a><br>10. Privileges by: <a href="https://www.ibm.com/docs/en/aix/7.2?topic=rbac-privileges">IBM</a> and <a href="https://docs.oracle.com/cd/E19253-01/816-4557/prbac-2/index.html">Oracle</a><br>11. Permissions: <a href="https://www.redhat.com/sysadmin/linux-file-permissions-explained">redhat</a></blockquote><h4>Conclusion</h4><blockquote><strong>Congratulations!</strong> You’ve reached the end of this chapter and have successfully begun your journey into the world of Linux Administration. <br>To recap, you have started navigating through the command line and explored Mint OS. Understood the concepts of OS and privileges, edited a live running file in real-time, discovered a crucial directory, realized just how vast and powerful the system is <br>You’ve also learned a bunch of new commands, and hopefully explored even more on your own. (I hope you did 😅) Keep up the great work, stay curious, and keep learning! See you in the next chapter!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c66278f1a3cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[c4ptur3-th3-fl4g Walkthrough — TryHackMe]]></title>
            <link>https://bhargav-nadiyana.medium.com/c4ptur3-th3-fl4g-walkthrough-tryhackme-1183dfda5483?source=rss-15751526b005------2</link>
            <guid isPermaLink="false">https://medium.com/p/1183dfda5483</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Bhargav Nadiyana]]></dc:creator>
            <pubDate>Fri, 26 Apr 2024 14:44:04 GMT</pubDate>
            <atom:updated>2024-04-26T16:30:42.461Z</atom:updated>
            <content:encoded><![CDATA[<h3>c4ptur3-th3-fl4g Walkthrough — TryHackMe</h3><p><em>Hello, I am Bhargav Nadiyana, a student pursuing CS&amp;E (cybersecurity) as my Bachelor’s degree. It has been quite a few days since I started my journey on TryHackMe and I attempted c4ptur3-the3-fl4g as my first CTF practice room on the platform. <br>This is a detailed walkthrough which covers what I learnt, what I explored and how I solved it. Hope you find valuable insights and gain some extra knowledge :)</em></p><p>You can find the room here: <a href="https://tryhackme.com/r/room/c4ptur3th3fl4g">https://tryhackme.com/r/room/c4ptur3th3fl4g</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*uNbCyIUKKim9XAYu7TV0NA.png" /></figure><p>Difficulty: Easy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qS3QI-ANnLu1dToUBGkHww.png" /></figure><p>For this task, we’ll be using <a href="https://gchq.github.io/CyberChef/">Cyberchef</a></p><p><strong>Question: </strong>c4n y0u c4p7u23 7h3 f149?</p><p><strong>Solution:</strong> <strong>can you capture the flag?</strong></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question: </strong>01101100 01100101 01110100 01110011 00100000 01110100 01110010 01111001 00100000 01110011 01101111 01101101 01100101 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100000 01101111 01110101 01110100 00100001</p><p><strong>How to proceed? </strong>On Cyberchef, search binary, drag the <em>from binary </em>option to Recipe, and add the question in the input section.</p><p><strong>Solution:</strong> lets try some binary out!</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question: </strong>MJQXGZJTGIQGS4ZAON2XAZLSEBRW63LNN5XCA2LOEBBVIRRHOM======</p><p><strong>How to proceed? </strong>On Cyberchef, search Base32, drag the <em>from Base32</em> option to Recipe, and add the question in the input section.</p><p><strong>Solution:</strong> base32 is super common in CTF’s</p><p>Base32 has a character set that only has uppercase letters and digits, making it differentiable than Base64 by the naked eye</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question: </strong>RWFjaCBCYXNlNjQgZGlnaXQgcmVwcmVzZW50cyBleGFjdGx5IDYgYml0cyBvZiBkYXRhLg==</p><p><strong>How to proceed? </strong>On Cyberchef, search Base64, drag the <em>from Base64</em> option to Recipe, and add the question in the input section.</p><p><strong>Solution:</strong> Each Base64 digit represents exactly 6 bits of data.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question: </strong>68 65 78 61 64 65 63 69 6d 61 6c 20 6f 72 20 62 61 73 65 31 36 3f</p><p><strong>How to proceed? </strong>On Cyberchef, search hex, drag the <em>from hex </em>option to Recipe, and add the question in the input section.</p><p><strong>Solution: </strong>hexadecimal or base16?</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question: </strong>Ebgngr zr 13 cynprf!</p><p><strong>How to proceed? </strong>On Cyberchef, search ROT 13, drag the <em>ROT 13 </em>option to Recipe, and add the question in the input section.</p><p><strong>Solution: </strong>Rotate me 13 places!</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question: </strong>*@F DA:? &gt;6 C:89E C@F?5 323J C:89E C@F?5 Wcf E:&gt;6DX</p><p><strong>How to proceed? </strong>On Cyberchef, search ROT 47, drag the <em>ROT 47 </em>option to Recipe, and add the question in the input section.</p><p><strong>Solution: </strong>You spin me right round baby right round (47 times)</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question: </strong>— . .-.. . -.-. — — — — ..- -. .. -.-. .- — .. — — -.</p><p>. -. -.-. — — -.. .. -. — .</p><p><strong>How to proceed? </strong>On Cyberchef, search Morse Code, drag the<em> from morse code</em> option to Recipe, and add the question in the input section.</p><p><strong>Solution: </strong>TELECOMMUNICATION ENCODING</p><p>We all have heard of the morse code once, haven’t we?</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question:</strong> 85 110 112 97 99 107 32 116 104 105 115 32 66 67 68</p><p><strong>How to proceed? </strong>On Cyberchef, search BCD, drag the<em> from BCD</em> option to Recipe, and add the question in the input section.</p><p><strong>Solution: </strong>Unpack this BCD</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><strong>Question:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9kVogdX92k7MJdJ26rGWA.png" /><figcaption>This is quite a shorter version, for scrolling ease</figcaption></figure><p><strong>How to proceed?</strong></p><p>On Cyberchef, search , drag the<em> from Base64</em>, then <em>from</em> <em>Morse Code</em>, then <em>from Binary</em>, then <em>from ROT 47</em>, then <em>from Decimal</em></p><p>This is how your recipe would look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*qn19jjO2Lnv6A1SYuSzyQA.png" /></figure><p><strong>Congratulations, YOU. HAVE. COOKED!</strong></p><p><strong>Solution: Let’s make this a bit trickier…</strong></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AefVXOghw1lSM_nfGOh71w.png" /><figcaption>Download the task file and spoiler for the hint: It says to use a tool called Audacity</figcaption></figure><p>So, we’ll use Audacity.<br>I am using Kali Linux and on the terminal, run:</p><p><strong>cd Downloads</strong></p><p><strong>audacity secretaudio_1559007588454.wav</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1AbDIkJDaaBVgMB1gsRsQ.png" /><figcaption>See the waveform? Now select the Spectrogram option</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2sHzVMdyQN6wB354vgGmw.png" /><figcaption>Congratulations! You have your flag!</figcaption></figure><p><strong>Solution:</strong> <strong>Super Secret Message</strong></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HGYaGKvhFKoIUC1ezTOeSQ.png" /></figure><p><strong>How to proceed?</strong></p><p>Download the file</p><p><strong>cd Downloads</strong></p><p><strong>steghide extract -sf stegosteg_1559008553457.jpg</strong></p><p>It will ask for a passphrase, <strong>hit enter</strong></p><p>This will give you a .txt file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjuFWOI65NZQrpIssQ0qOQ.png" /><figcaption>We now have a .txt file, which can be read by cat &lt;filename&gt;</figcaption></figure><p>To read the file:<br><strong>cat steganopayload2248.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtwzyt2ObOIxC3nzFXYmUA.png" /><figcaption>There you go!</figcaption></figure><p><strong>Solution: SpaghettiSteg</strong></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o89ZTkTsFwtlAlPZLdRD8A.png" /><figcaption>The hint here was: Obscure Steg</figcaption></figure><p>So let’s proceed with Obscure Steg:</p><p>Download the file, it’s an image with the name and extension: meme_1559010886025.jpg<br>Well, this is not our flag. The quest was to basically get ‘inside’ the file.</p><p>I tried <strong>hexdump -C meme_1559010886025.jpg </strong>but it was not THAT clear</p><p>So, I simply went along with<strong> strings</strong> <strong>meme_1559010886025.jpg</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSLlgS0aWFEX0fYxW6AJtA.png" /></figure><p>Even <strong>cat meme_1559010886025.jpg</strong> works</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WPr2-LV0tYeNkRpX2eSHg.png" /></figure><p><strong>Solution: hackerchat.png</strong></p><p><strong>AHH_YOU_FOUND_ME</strong></p><p>Thank you for reading the walkthrough!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1183dfda5483" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>