From Directory Listing to Root Shell

In this blog, I will demonstrate how a simple directory listing vulnerability led to full system compromise during a penetration test. Prologue “The best exploits are the ones that never feel like exploits at all.” — Mr. Robot I discovered that a web server was exposing its directory contents. Several configuration and compressed files were visible, indicating possible sensitive information leakage. Source Code Analysis After downloading and analyzing the exposed files, I found a PHP configuration file containing PostgreSQL database credentials. ...

February 7, 2026 · 2 min

Cracking Linux Hashes and Expanding Access

Initial Entry Point During a routine exploration of vulnerable servers on the internet, I successfully gained root access to several machines. While the specific method used to achieve root access is beyond the scope of this blog, I’ll focus on how I expanded my access to other servers within the same organization. Extracting Linux User Hashes Once inside the compromised machine, I noticed multiple user accounts. With root privileges, I accessed the /etc/shadow file, which stores password hashes for all users on the system. I copied the contents of the shadow file to my local machine and extracted the hashes using the following command: ...

March 21, 2025 · 4 min

Exploiting Unencrypted Private Keys and Misconfigured SSH Settings to Breach Multiple Systems

Discovery of Vulnerable Machines While investigating vulnerable, internet-facing systems, I successfully compromised several devices. Although the specific techniques I used to gain initial access fall outside the scope of this post, the real discovery came during my post-exploitation phase on one of the compromised machines. Discovering Vulnerable SSH Configurations While reviewing the files on the compromised system, I stumbled upon something interesting in the ~/.ssh directory of a particular user account. Within this directory, I found a private key file being used for SSH logins to other systems. My next step was to check whether the private key was encrypted. ...

February 24, 2025 · 3 min

Lateral Movement Through SSH Command Tampering

Understanding Lateral Movement Lateral movement in cybersecurity refers to the techniques used by attackers to move within a compromised network after gaining initial access. This allows them to escalate privileges, exfiltrate data, and reach high-value targets while evading detection. Advanced Persistent Threats (APTs) commonly use this tactic to maintain long-term access, often remaining undetected for extended periods. Entry Point During my exploration of vulnerable and misconfigured internet-facing machines, I was able to gain root access to several devices. The methods I used to gain initial access are beyond the scope of this blog. While analyzing one of the compromised machines during post-exploitation, I noticed in the bash history that the user frequently connected to other devices via SSH. This discovery led me to investigate further, with the goal of capturing credentials to access additional systems. ...

February 19, 2025 · 3 min