π‘οΈ Hacking Labs β by @th3hash
A curated collection of hands-on hacking labs, writeups, and platform guides for beginners and intermediate security enthusiasts.
Hey! I'm th3hash β a cybersecurity enthusiast sharing practical, beginner-friendly hacking labs, platform walkthroughs, and CTF writeups to help you build real skills in ethical hacking and penetration testing.
This repo covers everything from structured platforms like TryHackMe and HackTheBox to live CTF competitions β all in one place.
π Visit my website for articles, writeups & more: hackproofhacks.com πΊ Watch video walkthroughs on YouTube @trickyhash
All labs and techniques in this repository are strictly for educational purposes. Only practice on systems you own or have explicit written permission to test. Unauthorized hacking is illegal and can result in criminal charges. The author takes no responsibility for misuse of any content in this repo.
- Getting Started
- Prerequisites
- Platform Guides & Writeups
- Custom Hacking Labs
- Recommended Tools
- Setting Up Your Lab Environment
- Learning Roadmap
- Useful Resources
- Contributing
- Connect With Me
If you're brand new to ethical hacking, here's where to start:
- Set up a safe lab environment β see Setting Up Your Lab Environment
- Start with TryHackMe β structured paths, browser-based, zero setup
- Try a beginner CTF β PicoCTF or OverTheWire Bandit
- Move to HackTheBox β once you're comfortable with the basics
- Watch walkthroughs on YouTube @trickyhash when you're stuck
- Read writeups & articles at hackproofhacks.com
You don't need to be an expert, but these basics will help a lot:
| Topic | Why It Matters |
|---|---|
| Basic Linux commands | Most tools & targets run on Linux |
| Networking fundamentals | Understanding IPs, ports, protocols, DNS |
| How the web works | HTTP, requests, responses, cookies, headers |
| Basic scripting (Python/Bash) | Automating tasks, modifying exploits |
New to Linux? β Start with OverTheWire: Bandit β it's free and perfect for absolute beginners.
This repo contains notes, hints, and full writeups organized by platform. Each platform folder has its own README.md explaining how to get started there.
Best for: Absolute beginners β guided, structured, browser-based
TryHackMe is the most beginner-friendly platform. You get guided "rooms" with tasks, hints, and a browser-based AttackBox so you don't even need to install anything.
π Folder: tryhackme/
| Room | Difficulty | Category | Writeup |
|---|---|---|---|
Pre-Security Path |
β Beginner | Networking, Linux, Web basics | View |
Introduction to Cybersecurity |
β Beginner | Concepts & careers | View |
Jr Penetration Tester Path |
ββ Intermediate | Full pentesting methodology | View |
Blue |
β Beginner | EternalBlue, MS17-010 | View |
Ice |
β Beginner | Windows exploitation, Icecast | View |
Pickle Rick |
β Beginner | Web + Linux basics | View |
Mr Robot CTF |
ββ Intermediate | Web, Brute force, Privesc | View |
Advent of Cyber |
β Beginner | Annual beginner event (December) | View |
RootMe |
β Beginner | Web exploitation, Privesc | View |
Brooklyn Nine Nine |
β Beginner | FTP, SSH, Privesc | View |
How to get started on TryHackMe:
- Sign up free at tryhackme.com
- Start with the Pre-Security learning path
- Use the browser-based AttackBox (no install needed) or connect via VPN
- Follow my video guides on YouTube @trickyhash
Best for: Intermediate to advanced β realistic, less guided, more rewarding
HackTheBox has realistic machines that mimic real-world pentesting. Less hand-holding than TryHackMe β you'll need to think for yourself.
π Folder: hackthebox/
| Machine | OS | Difficulty | Category | Writeup |
|---|---|---|---|---|
Lame |
Linux | β Easy | SMB exploitation | View |
Legacy |
Windows | β Easy | MS08-067, MS17-010 | View |
Blue |
Windows | β Easy | EternalBlue | View |
Jerry |
Windows | β Easy | Tomcat default creds | View |
Bashed |
Linux | β Easy | Web shell, Privesc | View |
Nibbles |
Linux | β Easy | Web exploitation | View |
Beep |
Linux | β Easy | Elastix, LFI | View |
Shocker |
Linux | β Easy | Shellshock | View |
Valentine |
Linux | β Easy | Heartbleed | View |
Grandpa |
Windows | β Easy | WebDAV, IIS exploitation | View |
How to get started on HackTheBox:
- Sign up at hackthebox.com (free tier available)
- Download the VPN pack and connect:
sudo openvpn your.ovpn - Start with Easy rated retired machines (free with account)
- Check HackTheBox Academy for guided learning modules
π‘ Important: Writeups for active (non-retired) machines are against HackTheBox rules. All writeups in this repo are for retired machines only.
Best for: Applying skills, competing, learning fast under pressure
CTF (Capture The Flag) competitions are timed hacking events where you solve challenges to capture "flags" β secret strings that prove you pwned the target. They're one of the fastest ways to level up.
π Folder: ctf/
CTFs usually have challenge categories like:
| Category | What You Do |
|---|---|
| Web | XSS, SQLi, SSRF, deserialization exploits |
| Pwn | Binary exploitation, buffer overflows |
| Crypto | Breaking weak cryptography |
| Forensics | Analyzing files, network captures, memory dumps |
| Reverse Engineering | Disassembling and understanding binaries |
| OSINT | Finding information from public sources |
| Misc | Steganography, programming, trivia |
| CTF Event | Year | My Writeups | Difficulty |
|---|---|---|---|
PicoCTF |
2024 | View | β Beginner |
CTFLearn Challenges |
Ongoing | View | β Beginner |
HackTheBox CTF |
2024 | View | ββ Intermediate |
TryHackMe CTF Events |
Ongoing | View | β Beginner |
NahamCon CTF |
2024 | View | ββ Intermediate |
CyberApocalypse CTF |
2024 | View | ββ Intermediate |
- CTFtime.org β The definitive worldwide calendar of upcoming CTF events
- PicoCTF β Always-on beginner CTF by Carnegie Mellon University
- CTFLearn β Beginner-friendly individual challenges, no time pressure
Best for: Web application hacking β completely free, world-class content
PortSwigger Web Security Academy is arguably the best free web hacking resource ever made. Created by the makers of Burp Suite β it covers every major web vulnerability with interactive labs.
π Folder: portswigger/
| Topic | Labs | Writeup |
|---|---|---|
| SQL Injection | 18 labs | View |
| Cross-Site Scripting (XSS) | 30 labs | View |
| CSRF | 12 labs | View |
| SSRF | 7 labs | View |
| XXE Injection | 9 labs | View |
| Insecure Deserialization | 10 labs | View |
| Authentication Vulnerabilities | 14 labs | View |
| Access Control | 13 labs | View |
| File Upload Vulnerabilities | 7 labs | View |
| JWT Attacks | 8 labs | View |
| Business Logic Vulnerabilities | 12 labs | View |
| HTTP Request Smuggling | 20 labs | View |
How to get started:
- Go to portswigger.net/web-security β 100% free, no credit card
- Download Burp Suite Community Edition
- Start with SQL Injection β XSS β Authentication
Best for: Linux skills and command line mastery β free, no account needed
OverTheWire wargames teach Linux, networking, and exploitation through progressively harder SSH-based challenges. Perfect for total beginners to Linux.
π Folder: overthewire/
| Wargame | Levels | What You Learn | Writeup |
|---|---|---|---|
Bandit |
34 levels | Linux basics, file permissions, networking | View |
Natas |
34 levels | Web security basics (PHP, SQLi, LFI) | View |
Leviathan |
8 levels | Linux privilege escalation basics | View |
Krypton |
7 levels | Cryptography & classical ciphers | View |
Narnia |
9 levels | Binary exploitation introduction | View |
Behemoth |
8 levels | Intermediate binary exploitation | View |
How to play β no setup needed:
# Start Bandit Level 0 (the very beginning)
ssh bandit0@bandit.labs.overthewire.org -p 2220
# Password: bandit0Best for: Students and beginners β free, always available, well-explained
PicoCTF is run by Carnegie Mellon University. Challenges stay live year-round and are perfect for complete beginners with no prior experience.
π Folder: picoctf/
| Category | What You Practice | Writeup |
|---|---|---|
| General Skills | Terminal basics, encoding, file tools | View |
| Web Exploitation | SQLi, XSS, cookies, path traversal | View |
| Cryptography | Caesar, Vigenère, RSA basics | View |
| Forensics | File analysis, steganography, PCAP | View |
| Reverse Engineering | Basic disassembly, Ghidra intro | View |
| Binary Exploitation | Buffer overflow basics | View |
Best for: Offline practice β download vulnerable VMs and hack them locally
VulnHub provides free downloadable vulnerable virtual machines you can hack completely offline, with no internet connection required after download.
π Folder: vulnhub/
| Machine | Difficulty | Topics | Writeup |
|---|---|---|---|
Mr-Robot: 1 |
ββ Intermediate | Web, WordPress, Privesc | View |
DC: 1 |
β Beginner | Drupal, SUID exploitation | View |
Kioptrix Level 1 |
β Beginner | Samba, Apache exploitation | View |
Basic Pentesting: 1 |
β Beginner | FTP, SSH, Privilege escalation | View |
SickOs 1.1 |
ββ Intermediate | Proxy abuse, Shellshock | View |
FristiLeaks 1.3 |
ββ Intermediate | Web, Python-based Privesc | View |
How to use VulnHub:
- Download a VM from vulnhub.com
- Import into VirtualBox or VMware
- Set both your Kali VM and the target to Host-Only networking
- Scan for the target:
sudo netdiscoverornmap -sn 192.168.56.0/24
Best for: Safe, repeatable, offline web practice on your own machine
These are intentionally vulnerable applications you run locally β great for learning specific techniques without worrying about rules or timeouts.
π Folder: local-labs/
| App | What You Practice | Setup Guide |
|---|---|---|
| DVWA (Damn Vulnerable Web App) | SQLi, XSS, CSRF, File Upload, Command Injection | View |
| bWAPP | 100+ web vulnerability types | View |
| OWASP WebGoat | Interactive Java-based web lessons | View |
| Metasploitable 2 | Network & service exploitation | View |
| Vulhub | Docker-based real-world CVE labs | View |
| HackMe Bank | Banking application attacks | View |
Quick DVWA setup with Docker:
docker run -d -p 80:80 vulnerables/web-dvwa
# Open browser β http://localhost
# Login: admin / password
# Click: Setup / Reset DB β then start hackingBest for: Huge variety of challenges β 500+ across all categories
Root-Me has over 500 challenges across web, network, cryptography, forensics, reverse engineering, and more. Great for steady, ongoing skill-building.
π Folder: root-me/
| Category | Topics | Writeup |
|---|---|---|
| Web - Client Side | XSS, CSRF, CORS exploitation | View |
| Web - Server Side | SQLi, LFI, RFI, SSTI | View |
| Network | Packet capture analysis, protocols | View |
| Cryptography | Classical ciphers, RSA, hashing | View |
| Forensics | File carving, steganography | View |
| App - Script | Python, PHP, JS code analysis | View |
Best for: Defensive security β detection, analysis, incident response
Not all security is about attacking. Blue Team Labs Online teaches the defensive side: log analysis, threat hunting, malware analysis, and incident response. Essential if you want to understand the full picture.
π Folder: blueteam/
| Lab | Skill | Writeup |
|---|---|---|
The Report |
Log analysis & SIEM | View |
Phishing Analysis |
Email forensics | View |
Network Analysis - Ransomware |
Wireshark & PCAP analysis | View |
Malware Analysis - Strings |
Static malware analysis | View |
Disgruntled |
Insider threat hunting | View |
Self-contained labs built and hosted in this repo. Each includes a Docker setup, clear objective, hints, and a solution folder.
π Folder: custom-labs/
| Lab | Difficulty | Topics Covered |
|---|---|---|
web/01-sql-injection |
β Beginner | SQLi basics, UNION attacks |
web/02-xss |
β Beginner | Reflected & Stored XSS |
web/03-file-upload |
ββ Intermediate | Unrestricted upload, MIME bypass |
web/04-idor |
β Beginner | Insecure Direct Object Reference |
web/05-command-injection |
ββ Intermediate | OS command injection, filter bypass |
web/06-ssrf |
ββ Intermediate | Server-Side Request Forgery |
| Lab | Difficulty | Topics Covered |
|---|---|---|
network/01-nmap-basics |
β Beginner | Port scanning, service detection |
network/02-ftp-smb |
β Beginner | Anonymous FTP, SMB enumeration |
network/03-metasploit-intro |
ββ Intermediate | Metasploit framework basics |
network/04-pivoting |
βββ Advanced | Tunneling, internal network access |
| Lab | Difficulty | Topics Covered |
|---|---|---|
privesc/01-suid-binaries |
ββ Intermediate | SUID abuse, GTFOBins |
privesc/02-cron-jobs |
ββ Intermediate | Writable cron scripts |
privesc/03-kernel-exploits |
βββ Advanced | Dirty COW, kernel CVEs |
privesc/04-sudo-misconfig |
β Beginner | Sudo -l, LD_PRELOAD |
| Lab | Difficulty | Topics Covered |
|---|---|---|
windows/01-service-misconfig |
ββ Intermediate | Unquoted service paths |
windows/02-registry-abuse |
ββ Intermediate | Writable registry keys |
windows/03-mimikatz-basics |
ββ Intermediate | Credential dumping |
| Lab | Difficulty | Topics Covered |
|---|---|---|
auth/01-hydra-brute |
β Beginner | Brute force with Hydra |
auth/02-hash-cracking |
β Beginner | Hashcat, John the Ripper |
auth/03-jwt-attacks |
ββ Intermediate | JWT manipulation, algorithm confusion |
Run any custom lab instantly:
git clone https://github.com/th3hash/hacking-labs.git
cd hacking-labs/custom-labs/web/01-sql-injection
docker-compose up -d
# Target running at http://localhost:8080| Tool | Use |
|---|---|
| Nmap | Port scanning, service/version detection |
| Gobuster / Feroxbuster | Directory and file brute forcing |
| Subfinder / Amass | Subdomain enumeration |
| Shodan | Internet-connected device search engine |
| theHarvester | Email, domain, IP OSINT gathering |
| Tool | Use |
|---|---|
| Burp Suite Community | Intercept, modify, replay HTTP requests |
| SQLMap | Automated SQL injection |
| ffuf | Fast web fuzzer for directories & parameters |
| Nikto | Web server vulnerability scanner |
| WhatWeb | Web technology fingerprinting |
| Tool | Use |
|---|---|
| Metasploit Framework | Exploit modules, payloads, post-exploitation |
| Searchsploit | Offline ExploitDB search |
| Hydra / Medusa | Brute force login portals |
| CrackMapExec | Network pentesting (SMB, WinRM, LDAP) |
| Tool | Use |
|---|---|
| LinPEAS / WinPEAS | Automated privilege escalation enumeration |
| GTFOBins | Unix binary abuse for privesc |
| Mimikatz | Windows credential dumping |
| BloodHound | Active Directory attack path visualization |
| Tool | Use |
|---|---|
| Netcat / Ncat | Catching reverse shells |
| Python3 | Scripting, quick HTTP servers, exploit mods |
| tmux | Terminal multiplexer β run multiple sessions |
| Wireshark | Packet capture and network analysis |
β οΈ Never practice on live/real systems without permission. Always use a controlled environment.
The industry-standard pentesting distro with 600+ tools pre-installed.
# After installing Kali, update everything first
sudo apt update && sudo apt upgrade -y
# Install some extra goodies
sudo apt install -y gobuster feroxbuster ffuf seclistsDownload at kali.org/get-kali β import into VirtualBox or VMware β set network to Host-Only or NAT
Lighter and privacy-focused. Great for older hardware. Download at parrotsec.org
git clone https://github.com/th3hash/hacking-labs.git
cd hacking-labs/custom-labs/web/01-sql-injection
docker-compose up -d
# That's it. Target is live at http://localhost:8080| Platform | Free? | Best For |
|---|---|---|
| TryHackMe | β Free tier | Absolute beginners, guided paths |
| HackTheBox | β Free tier | Intermediate, realistic machines |
| PicoCTF | β Free | CTF challenges, students |
| OverTheWire | β Free | Linux skills, no account needed |
| PortSwigger Academy | β Free | Web hacking, best in class |
| Root-Me | β Free | 500+ challenges, all categories |
| Blue Team Labs Online | β Free tier | Defensive/blue team skills |
| CTFtime | β Free | Live CTF competition calendar |
| VulnHub | β Free | Offline VM-based practice |
| CTFLearn | β Free | Beginner CTF challenges |
ABSOLUTE BEGINNER
β
βΌ
π Linux Basics
ββ OverTheWire: Bandit (Levels 0β15)
β
βΌ
π Networking 101
ββ TCP/IP, DNS, HTTP, Wireshark basics
ββ TryHackMe: Pre-Security Path
β
βΌ
π Recon & Scanning
ββ custom-labs: network/01-nmap-basics
ββ TryHackMe: Nmap room
β
βΌ
π Web Hacking Fundamentals
ββ PortSwigger: SQL Injection β XSS β Auth
ββ TryHackMe: OWASP Top 10 room
ββ custom-labs: web/01 β web/04
β
βΌ
π Password Attacks
ββ custom-labs: auth/01-hydra-brute
ββ custom-labs: auth/02-hash-cracking
β
βΌ
π Linux Privilege Escalation
ββ TryHackMe: Linux PrivEsc room
ββ custom-labs: privesc/04 β privesc/01
β
βΌ
π First CTF
ββ PicoCTF General Skills & Web
ββ TryHackMe: Pickle Rick, Blue
ββ CTFLearn beginner challenges
β
βΌ
π¦ Full Machines (Beginner)
ββ HackTheBox: Lame, Legacy, Blue
ββ VulnHub: Kioptrix Level 1, DC: 1
β
βΌ
π¦ Full Machines (Intermediate)
ββ HackTheBox: Bashed, Nibbles, Shocker
ββ VulnHub: Mr-Robot: 1
ββ TryHackMe: Mr Robot CTF, Jr Pentester Path
β
βΌ
INTERMEDIATE β
β
βΌ
π΅ Specialise: AD / Web / Pwn / RE / Blue Team
β
βΌ
ADVANCED π₯
- π hackproofhacks.com β Writeups, tutorials & articles
- πΊ YouTube @trickyhash β Video walkthroughs
- πΈ Instagram @trickyhash β Tips & quick content
- π GitHub @th3hash β All my code & writeups
- GTFOBins β Unix binary abuse for privilege escalation
- LOLBAS β Windows living-off-the-land binaries
- PayloadsAllTheThings β Comprehensive payload reference
- HackTricks β Pentesting notes for everything
- RevShells β Reverse shell one-liner generator
- CyberChef β Encoding, decoding, decryption tool
- OWASP Top 10 β The 10 most critical web vulnerabilities
- ExploitDB β Public exploit archive
- CVEdetails.com β CVE vulnerability database
- Mitre ATT&CK β Adversary tactics and techniques framework
- The Web Application Hacker's Handbook β Stuttard & Pinto
- Hacking: The Art of Exploitation β Jon Erickson
- Penetration Testing β Georgia Weidman
- The Hacker Playbook 3 β Peter Kim
- πΊ @trickyhash β That's me! Walkthroughs & labs π
- IppSec β HackTheBox machine walkthroughs (legendary)
- John Hammond β CTF & malware analysis
- NetworkChuck β Beginner-friendly networking & hacking
- LiveOverflow β Deep-dive binary exploitation & CTF
Want to add a writeup, fix something, or contribute a lab? You're welcome!
- Fork this repository
- Create a branch:
git checkout -b writeup/platform-machine-name - Add your content with a proper
README.md - Submit a Pull Request with a clear description
Writeup folder structure:
platform/machine-name/
βββ README.md # Objective, approach, step-by-step solution
βββ screenshots/ # Evidence of exploitation
βββ files/ # Scripts, payloads, or supporting files
Contribution rules:
- β Writeups for retired HackTheBox machines only
- β CTF writeups allowed after the event ends
- β Educational content only
- β No writeups for currently active HackTheBox machines
- β No malware, live exploits, or illegal content
If this helped you learn something new, drop a β star β it helps others discover the repo!
| Platform | Link |
|---|---|
| π Website | hackproofhacks.com |
| π GitHub | @th3hash |
| πΊ YouTube | @trickyhash |
| πΈ Instagram | @trickyhash |
"The best way to learn hacking is to hack (legally)." β th3hash