Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Security Labs

License Labs Target

Penetration testing labs conducted in an isolated virtual network. Every lab documents the full workflow — recon, exploitation, troubleshooting, and remediation — against intentionally vulnerable targets.

All activity was performed in an isolated lab environment for educational purposes.


Lab Index

Lab Target Technique Status
vsFTPd 2.3.4 Backdoor Metasploitable 2 Metasploit — CVE-2011-2523 Complete
SSH Login Brute-Force Metasploitable 2 Metasploit — ssh_login auxiliary Complete
Telnet Login Brute-Force Metasploitable 2 Metasploit — telnet_login auxiliary Complete
DVWA Brute Force DVWA on Metasploitable 2 Hydra — HTTP form brute-force Complete
DVWA Reflected XSS DVWA on Metasploitable 2 Reflected XSS — blacklist bypass Complete
WebGoat SSRF WebGoat (Docker) Burp Suite — SSRF parameter tampering Complete

Methodology

Phase Approach
Reconnaissance Nmap service discovery, port scanning, OS fingerprinting. Identify every open port and banner before selecting a target.
Enumeration Version-to-CVE mapping. Research service versions, review exploit behavior, identify prerequisites — LHOST reachability, session cookies, module quirks.
Exploitation Configure and run the exploit. When it breaks — and it will — troubleshoot methodically: verify the network path, check module options, read the error output.
Post-Exploitation Validate access level (whoami, id, uname -a), navigate the filesystem, capture evidence.
Remediation Map findings to actionable controls: version upgrades, configuration hardening, network segmentation, detection rules.

Key Takeaways

  • Wrong LHOST is the most common failure. Reverse payloads fail silently if the target can't reach your listener. Always verify the network path before running an exploit.
  • Session cookies are everything in web app testing. Without injecting the PHPSESSID, every Hydra brute-force attempt hits a login redirect — valid credentials or not.
  • Blacklist filtering does not solve XSS. Removing only lowercase <script> is trivial to bypass with uppercase <SCRIPT>.
  • ForceExploit bypasses a safety check, not a technical barrier. Only use it after confirming the target is vulnerable through other means.
  • Wordlist size is a time budget. 18.6 million entries at 2,188 tries/min is ~6 days. Start small, confirm syntax, then scale.
  • Metasploit handles legacy protocol compatibility better than CLI tools. Modern OpenSSH rejects ssh-rsa and ssh-dss, but Metasploit's built-in client connects without issue.
  • ssh_login and telnet_login use different brute-force strategies. The former uses paired USERPASS_FILE entries; the latter tries every combination of USER_FILE × PASS_FILE. Wordlist strategy must match the module.
  • Credential reuse magnifies impact. The same msfadmin:msfadmin works across SSH, Telnet, and system console — one weak password compromises multiple services.
  • Unvalidated URL parameters enable SSRF. Replacing a filename with an external URL or internal metadata endpoint gives the attacker control of the server's request direction.

Lab Topology

Node Role Address
Linux pentest workstation Attacker 192.168.122.1
Metasploitable 2 Target 192.168.122.229
WebGoat (Docker) Target 192.168.122.84:8080
Virtual network Isolated NAT 192.168.122.0/24

Tools: Nmap, Zenmap, Metasploit Framework, Hydra, Burp Suite, Netcat, Firefox


Repository Layout

labs/
├── machines/
│   └── metasploitable2/
│       ├── README.md
│       ├── vsftpd-2.3.4-backdoor/
│       ├── ssh-login-bruteforce-msfadmin/
│       └── telnet-login-bruteforce-msfadmin/
├── web-apps/
│   ├── dvwa/
│   │   ├── dvwa-brute-force/
│   │   └── dvwa-reflected-xss/
│   └── webgoat/
│       └── webgoat-ssrf/
├── .gitignore
├── LICENSE
└── README.md

Legal Notice

The content in this repository is for authorized lab use only. Do not run these techniques against systems you do not own or do not have explicit permission to test.

About

Hands-on lab writeups covering web application security, network penetration testing, and cybersecurity assessments — including DVWA, WebGoat, and more

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors