<?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 Bhavesh Bhagat on Medium]]></title>
        <description><![CDATA[Stories by Bhavesh Bhagat on Medium]]></description>
        <link>https://medium.com/@bughuntr0?source=rss-859291b6293e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Bhavesh Bhagat on Medium</title>
            <link>https://medium.com/@bughuntr0?source=rss-859291b6293e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:10:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bughuntr0/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[pwn.college CTF Writeup: Linux Luminarium — Comprehending Commands (Part 2)]]></title>
            <link>https://medium.com/@bughuntr0/pwn-college-ctf-writeup-linux-luminarium-comprehending-commands-part-2-e1f9f5a2d884?source=rss-859291b6293e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1f9f5a2d884</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[pwncollege]]></category>
            <dc:creator><![CDATA[Bhavesh Bhagat]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 06:31:01 GMT</pubDate>
            <atom:updated>2026-11-02T06:31:01.809Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Compare, list, create, delete, move, and copy — the everyday file operations that make the shell feel like home.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16IVDHdMMUFFDpbVH-bFFg.png" /></figure><p>In Part 1 we learned to read and search files. Now comes the operational core of working with a filesystem: comparing, listing, creating, removing, moving, and copying. These are the commands you’ll type hundreds of times in any real Linux environment — and pwn.college’s Comprehending Commands module drills each one. No flags below, just the steps and the “why.”</p><h3>Challenge 1: Comparing Files</h3><p>Eyeballing two similar files for differences is slow and error-prone. diff does it line by line and shows only what changed:</p><pre>diff file1 file2</pre><p>The output uses a compact notation:</p><ul><li>2c2 — line 2 changed</li><li>&lt; — the line from the first file</li><li>&gt; — the line from the second file</li><li>1a2 — after line 1 of file1, file2 adds line 2</li></ul><p>The challenge gives you two files in /challenge: decoys_only.txt (100 fake flags) and decoys_and_real.txt (the same 100 plus the real one). Rather than reading both, diff them:</p><pre>cd /challenge<br>diff decoys_and_real.txt decoys_only.txt</pre><p>The single extra line diff prints (20d19 &lt; pwn.college{...}) is your real flag.</p><p><strong>What you learn</strong>: diff isolates changes — perfect for spotting the odd one out.</p><h3>Challenge 2: Listing Files</h3><p>You won’t always know the filenames. ls lists directory contents — the current directory if no argument, or every directory you pass:</p><pre>ls /challenge<br>ls</pre><p>This level renames the challenge program to a random name. List /challenge to discover it, then invoke it by absolute (or relative) path:</p><pre>cd /challenge<br>ls<br>./3149-renamed-run-12421</pre><p><strong>What you learn</strong>: ls reveals what&#39;s actually there — your first move in any unfamiliar directory.</p><h3>Challenge 3: Touching Files</h3><p>Create empty files with touch:</p><pre>cd /tmp<br>touch pwn<br>touch college<br>/challenge/run</pre><p>The check program verifies both files exist and hands over the flag.</p><p><strong>What you learn</strong>: touch creates a blank file (or updates an existing file&#39;s timestamp).</p><h3>Challenge 4: Removing Files</h3><p>Clean up with rm:</p><pre>touch PWN<br>rm PWN</pre><p>This challenge drops a delete_me file in your home directory. Remove it, then run the check:</p><pre>ls<br>rm delete_me<br>/challenge/check</pre><p><strong>What you learn</strong>: rm deletes files. ⚠️ There&#39;s no trash can and no undo — be careful with wildcards and paths.</p><h3>Challenge 5: Moving Files</h3><p>mv SOURCE DEST relocates (or renames) a file — the original is gone afterward:</p><pre>mv my-file your-file   # rename<br>mv /flag /tmp/hack-the-planet   # move to a new location</pre><p>This level wants /flag moved to /tmp/hack-the-planet using mv specifically:</p><pre>mv /flag /tmp/hack-the-planet<br>/challenge/check</pre><p><strong>What you learn</strong>: mv is move <em>and</em> rename — same operation, different destination.</p><h3>Challenge 6: Copying Files</h3><p>cp SOURCE DEST works like mv but keeps the original:</p><pre>cp /flag /tmp/hack-the-planet<br>/challenge/check</pre><p><strong>⚠️ Important gotcha</strong>: if the destination is an existing directory, cp places the copy <em>inside</em> it using the source filename. Here, /tmp/hack-the-planet must be the copied file itself, so make sure it isn&#39;t a pre-existing directory.</p><p><strong>What you learn</strong>: cp duplicates; mv relocates. Destination semantics (file vs. directory) matter.</p><h3>Takeaways</h3><ul><li>diff shows only what changed — great for spotting the anomaly.</li><li>ls is your reconnaissance tool; always look before you act.</li><li>touch creates empty files; rm deletes them (no undo!).</li><li>mv moves/renames; cp copies — the source survives.</li><li>Destination type matters for cp/mv: a file path vs. a directory changes behavior.</li></ul><p>With Part 1 (reading/searching) and Part 2 (manipulating) under your belt, you can now handle the bulk of everyday filesystem work in Linux. Next up in Comprehending Commands: more utilities that build on this foundation.</p><p><strong>Happy hacking! 🐧</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1f9f5a2d884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[pwn.college CTF Writeup: Linux Luminarium — Comprehending Commands (Part 1)]]></title>
            <link>https://medium.com/@bughuntr0/pwn-college-ctf-writeup-linux-luminarium-comprehending-commands-part-1-ddf02a3debde?source=rss-859291b6293e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddf02a3debde</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[pwncollege]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[grep]]></category>
            <dc:creator><![CDATA[Bhavesh Bhagat]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 06:17:50 GMT</pubDate>
            <atom:updated>2026-10-30T06:17:50.507Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Learn to read files and search through them — </em>cat<em> and </em>grep<em> are two of the most-used tools in your Linux toolkit.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQ8KjPLJY-G_fU8NqxOJGQ.png" /></figure><p>Once you can navigate paths, the next essential skill is reading what’s inside files. In pwn.college’s Linux Luminarium, the Comprehending Commands module starts with two workhorses: cat and grep. This writeup covers the first four challenges — no flags here, just the commands and reasoning you need to solve them yourself.</p><h3>The Star: cat</h3><p>cat (short for concatenate) is most often used to print a file&#39;s contents to your terminal:</p><pre>cat /path/to/file</pre><p>It can also take multiple arguments and concatenate them in order:</p><pre>cat myfile yourfile</pre><p>And with no arguments at all, cat reads from your terminal input — a behavior we&#39;ll revisit in later challenges.</p><h3>Challenge 1: Cat — Not the Pet, But the Command</h3><p>The flag is copied into a file called flag in your home directory (where your shell starts). Since your cwd is already home, read it directly:</p><pre>cat flag</pre><p>Flag captured.</p><p><strong>What you learn:</strong> reading a file by its relative path from your home directory.</p><h3>Challenge 2: Catting Absolute Paths</h3><p>Here the flag isn’t copied to your home directory — but it’s readable at its absolute path. This level reveals a fun fact: /flag is where the flag always lives in pwn.college, though you usually can&#39;t read it directly.</p><pre>cat /flag</pre><p><strong>What you learn:</strong> cat accepts absolute paths just as easily as relative ones.</p><h3>Challenge 3: More Catting Practice</h3><p>This one is trickier. The flag is hidden in an unusual directory, and cd is disabled — you must retrieve it using an absolute path. When you start the challenge, it tells you exactly where the flag lives, e.g.:</p><pre>/lib/python3.12/email/flag</pre><p>So instead of navigating there, pass that full path straight to cat:</p><pre>cat /lib/python3.12/email/flag</pre><p>⚠️ Watch out: guessing paths like /a/flag won&#39;t work — the flag directory is fixed by the challenge, and cd will just error out. Read the path the challenge prints and use it verbatim.</p><p><strong>What you learn:</strong> absolute paths let you reach any file without ever changing directories.</p><h3>Challenge 4: Grepping for a Needle in a Haystack</h3><p>Sometimes a file is too big to cat — in this case, /challenge/data.txt has 100,000 lines. Scrolling through that is hopeless. Enter grep, which searches a file for lines containing a string and prints only matches:</p><pre>grep SEARCH_STRING /path/to/file</pre><p>The hint tells us the flag always starts with pwn.college, so search for that:</p><pre>grep pwn.college /challenge/data.txt</pre><p>Out of 100,000 lines, only the flag line prints. Done.</p><p><strong>What you learn:</strong> grep filters huge files down to the lines you care about — far better than eyeballing raw output.</p><h3>Takeaways</h3><ul><li>cat reads files — one, many, or from stdin. Absolute or relative paths both work.</li><li>Absolute paths are your escape hatch when you can’t (or won’t) cd.</li><li>/flag is pwn.college&#39;s home for flags — usually locked down, but worth knowing.</li><li>grep is essential for large files. Search for a known substring (like pwn.college) to cut through the noise.</li></ul><p>With cat and grep in your belt, you can now read anything on the filesystem and find a needle in any haystack. Next up in Comprehending Commands: more tools that build on these foundations.</p><p><strong>Happy hacking! 🐧</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddf02a3debde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[pwn.college CTF Writeup: Linux Luminarium — Pondering Paths]]></title>
            <link>https://medium.com/@bughuntr0/pwn-college-ctf-writeup-linux-luminarium-pondering-paths-052a5397cade?source=rss-859291b6293e------2</link>
            <guid isPermaLink="false">https://medium.com/p/052a5397cade</guid>
            <category><![CDATA[filesystem]]></category>
            <category><![CDATA[linux-file-system]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[linux-commands]]></category>
            <dc:creator><![CDATA[Bhavesh Bhagat]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 06:58:50 GMT</pubDate>
            <atom:updated>2026-10-28T06:58:50.537Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Master absolute paths, relative paths, and the home directory — the foundation of everything on Linux.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wA3TVWnK99fUj3kHU6G_YQ.png" /></figure><p>After “Hello Hackers,” the next stop in pwn.college’s Linux Luminarium is Pondering Paths. This module teaches you how Linux organizes files and how to reference them. By the end, you’ll navigate the filesystem like a pro. No flags here — just the commands and concepts you need to solve every challenge yourself.</p><h3>The Big Idea: The Filesystem is a Tree</h3><p>Everything on Linux lives under a single root directory, written as /. Directories can contain files and other directories, forming a tree. You refer to anything by its path — the sequence of directories you descend through to reach it, separated by /.</p><ul><li>An absolute path starts at / (e.g., /challenge/run).</li><li>A relative path does not start with / — it&#39;s interpreted from your current working directory (cwd).</li><li>Your prompt shows your cwd. That ~ you&#39;ve seen? It&#39;s shorthand for your home directory.</li></ul><h3>Challenge 1: The Root</h3><p>A program called pwn sits right in /. Invoke it using its absolute path:</p><pre>/pwn</pre><p>That’s it — the flag prints.</p><h3>Challenge 2: Program and Absolute Paths</h3><p>The challenge program run lives in /challenge. Invoke it by its absolute path:</p><pre>/challenge/run</pre><h3>Challenge 3: Position Thy Self</h3><p>Use cd to change directory. This challenge tells you which directory to run from — say /tmp. Do:</p><pre>cd /tmp<br><br>/challenge/run</pre><p>Running /challenge/run from the wrong directory fails; cd fixes it.</p><h3>Challenge 4: Position Elsewhere</h3><p>Same game, but five rounds. Each time, /challenge/run tells you the next directory. The loop is:</p><pre>/challenge/run          # tells you where to go<br>cd &lt;that directory&gt;     # e.g., /usr/include<br>/challenge/run          # verify, get next target</pre><p>Directories it may ask for include /usr/include, /usr/share/doc, /usr/bin, /etc/apt/sources.list.d, and /etc. Just cd to each and re-run /challenge/run until the flag appears.</p><h3>Challenge 5: Implicit Relative Paths, From /</h3><p>A relative path is resolved from your cwd. If your cwd is /, then the relative path to /challenge/run is simply challenge/run. First change to root, then invoke:</p><pre>cd /<br>challenge/run</pre><p>Notice there’s no leading / — that&#39;s what makes it relative.</p><h3>Challenge 6: Explicit Relative Paths, From /</h3><p>Directories have two special entries: . (this directory) and .. (parent directory). So ./challenge/run is equivalent to challenge/run. From root, run:</p><pre>cd /<br>./challenge/run</pre><p>The ./ explicitly says &quot;start from the current directory.&quot;</p><h3>Challenge 7: Implicit Relative Path</h3><p>Linux deliberately does not search your cwd for “naked” commands. Inside /challenge, typing run fails with command not found — a safety measure. To run a program in the current directory, be explicit:</p><pre>cd /challenge<br>./run</pre><h3>Challenge 8: Home Sweet Home</h3><p>~ expands to your home directory (/home/hacker), and cd with no argument takes you home. This challenge writes the flag to a file you specify, with three constraints:</p><ol><li>The argument must be an absolute path.</li><li>It must be inside your home directory.</li><li>Before expansion, the argument must be 3 characters or less.</li></ol><p>Using ~/a satisfies all three — ~ counts as one character, and it expands to an absolute path inside your home directory:</p><pre>/challenge/run ~/a</pre><p>The program writes the flag to /home/hacker/a and reads it back to you.</p><h3>Takeaways</h3><ul><li>/ is the root; absolute paths start there, relative paths start from your cwd.</li><li>cd moves you around; your prompt always shows where you are.</li><li>. and .. mean &quot;here&quot; and &quot;parent.&quot;</li><li>Naked commands don’t search your cwd — use ./program to run something local.</li><li>~ expands to your home directory, and cd alone takes you there.</li></ul><p>These eight challenges build the muscle memory you’ll use in every pwn.college module after this. Paths, directories, and the shell’s rules are the bedrock of Linux — and now you’ve got them down.</p><p><strong>Happy hacking! 🐧</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=052a5397cade" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[pwn.college CTF Writeup: Linux Luminarium — Hello Hackers]]></title>
            <link>https://medium.com/@bughuntr0/pwn-college-ctf-writeup-linux-luminarium-hello-hackers-312836741d86?source=rss-859291b6293e------2</link>
            <guid isPermaLink="false">https://medium.com/p/312836741d86</guid>
            <category><![CDATA[pwn]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[basic-linux-commands]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[Bhavesh Bhagat]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 06:48:47 GMT</pubDate>
            <atom:updated>2026-10-27T06:48:47.517Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Your first steps into the command line, one challenge at a time.</em></p><h3>The Setup: Meet the Shell</h3><p>When you open a terminal, you’re greeted by a prompt:</p><blockquote>hacker@dojo:~$</blockquote><p>Here’s what each part means:</p><blockquote>hacker — the current username</blockquote><blockquote>dojo — the machine&#39;s hostname (in pwn.college, it&#39;s derived from the challenge name)</blockquote><blockquote>~ — your current directory (more on this in later modules)</blockquote><blockquote>$ — signifies you&#39;re a non-administrative user. If you ever see #, you&#39;ve escalated to root!</blockquote><p>The shell waits for you to type a command and press Enter. The command runs, prints its output, and the prompt returns. That’s the entire loop.</p><h3>Challenge 1: Intro to Commands</h3><p>The first challenge is delightfully simple: invoke your first command.</p><p>The example given is whoami, which prints the current username:</p><blockquote>hacker@dojo:~$ whoami<br><em>hacker</em></blockquote><p>In this level, your job is to run the hello command:</p><blockquote>hacker@dojo:~$ hello</blockquote><p>Boom — the flag prints to your terminal. Note: Linux commands are case-sensitive. hello is not HELLO.</p><p><strong><em>What you learn</em></strong>: how to execute a command and read its output.</p><h3>Challenge 2: Intro to Arguments</h3><p>Commands don’t exist in a vacuum — you can pass them extra data called arguments. The shell splits your input: the first word is the command, the rest are arguments.</p><p>Take echo:</p><blockquote>hacker@dojo:~$ echo Hello<br><em>Hello</em></blockquote><p>echo just prints its arguments back to you. With multiple arguments:</p><blockquote>hacker@dojo:~$ echo Hello Hackers!<br><em>Hello Hackers!</em></blockquote><p>Same idea — Hello and Hackers! are two separate arguments.</p><p>This challenge wants you to run the hello command (not echo!) with a single argument: hackers</p><blockquote>hacker@dojo:~$ hello hackers</blockquote><p>Flag acquired.</p><p><strong><em>What you learn</em></strong>: the difference between a command and its arguments, and how the shell parses your input.</p><h3>Challenge 3: Command History</h3><p>Here’s a quality-of-life feature you’ll rely on constantly: the shell saves a history of every command you run.</p><p>You can browse through that history using the up and down arrow keys. Press up once and you’ll see the last command you ran — hit Enter to re-run it, or press up again to go further back.</p><p>In this challenge, the flag is injected into your history. So the solution is exactly what it sounds like:</p><blockquote>hacker@dojo:~$ [press the UP arrow key]</blockquote><p>The previous command (containing the flag) appears on your prompt line. Read it — done.</p><p><strong><em>What you learn:</em></strong> arrow-key history navigation, which will save you countless keystrokes later when you need to tweak and re-run long commands.</p><h3>Key Takeaways</h3><ul><li>Intro to Commands — Skill learned is to run a command — Command to run <strong>hello</strong></li><li>Intro to Arguments — Skill learned is to pass argument — Command to run <strong>hello hackers!</strong></li><li>Command History — Skill learned is to navigate through history — Press Up arrow to see the previous commands.</li></ul><h3>Wrapping Up</h3><p>These three challenges are tiny, but they establish the mental model everything else builds on:</p><ol><li>The shell runs commands — type, press Enter, read output.</li><li>Commands take arguments — the first word is the command, the rest is data.</li><li>History is your friend — the up arrow is your most-used key.</li></ol><p>If you’re following along on pwn.college, you’ve now got your first flags under your belt. Keep going through the Linux Luminarium — the foundation you build here (paths, permissions, redirection, pipes) will pay off in every pwn challenge ahead.</p><p><strong>Happy hacking! 🐧</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=312836741d86" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>