Unit 6: Ethical Exploitation Concepts
Lesson at a glance
| Item | Detail | | --------------------- | -------------------------------------------------------------------------------------------- | | Suggested length | 6 × 60 minutes | | Recommended placement | Weeks 8–9 of Cyber II | | Prerequisite | Units 1–5; signed advanced RoE on file | | Materials | Kali, Metasploitable2, john/hashcat, teacher-issued hash sets, screen recorder for write-ups |
Safety: This unit's labs run only in the host-only lab range, only against teacher-prepared targets, only under signed RoE.
Forbidden anywhere on or off school property: running these tools or techniques against any system you do not own and do not have written authorization to test. Doing so violates the CFAA, the Va. Computer Crimes Act, and ends your career before it starts.
Teacher reads this aloud at the start of every class in this unit.
Standards & credential alignment
- OffSec PEN-100 + intro PWK concepts.
- EHE: ethical hacking framework, system hacking concepts.
- VA CTE Advanced Cyber: penetration testing fundamentals.
Learning objectives
By the end of this unit, students can:
- Articulate the legal and ethical framework around exploitation.
- Use Metasploit to execute a known exploit against an authorized lab target.
- Stop at proof-of-concept; document evidence; never escalate beyond scope.
- Crack a teacher-issued hash set with john / hashcat and explain what the result means.
- Recognize post-exploitation phases (privilege escalation, persistence, lateral movement) at a conceptual + demo level.
- Produce a clean, factual write-up of one authorized exploitation chain.
Vocabulary
- Exploit - Code or technique that takes advantage of a vulnerability.
- Payload - Code that runs after exploit succeeds.
- Shell - Command-line access on the target.
- Reverse shell vs. bind shell - Target connects out vs. attacker connects in.
- Post-exploitation - Activity after initial foothold (privesc, persistence, pivoting).
- Proof-of-concept (PoC) - Minimum demonstration the vulnerability is real.
- Hash - Fingerprint of a password (MD5, SHA-1, NTLM, bcrypt, etc.).
- Salt - Random data added to a password before hashing.
Pacing
| Day | Focus | Deliverable | | --- | --------------------------------- | --------------------------------------------- | | 1 | Ethics + the line + RoE | Signed acknowledgement of unit-specific rules | | 2 | Metasploit basics + first exploit | Screenshot of authorized PoC | | 3 | Password hashing + cracking | john output on teacher hash set | | 4 | Post-exploit concepts (demo only) | Notes on privesc + persistence + lateral | | 5 | Putting it together | One full authorized chain with screenshots | | 6 | Write-up | Findings document, 4–8 pages |
Day 1 - Ethics, the line, the rules
Read aloud. Discuss. Sign.
Unit 6 Operating Rules:
- I will only run exploitation tools against the targets the teacher has provided in the lab range.
- I will not run these tools on home networks, friends' devices, school production systems, or any system not in this lab.
- I will stop at proof-of-concept. I will not pivot, exfiltrate real data, or expand scope.
- I will document every action with timestamps and screenshots.
- If anything unexpected happens, I will stop, snapshot, and call the teacher.
- I understand that violating these rules is a federal crime under the CFAA and a state crime under Va. Code § 18.2-152.3.
Day 2 - Metasploit first exploit
sudo msfdb init
msfconsole
# Identify target service from Unit 5 scan
search type:exploit name:vsftpd
use exploit/unix/ftp/vsftpd_234_backdoor
show options
set RHOSTS 192.168.56.20
run
When the shell lands, students:
- Run
whoami. - Run
hostname. - Take a screenshot.
- Type
exitand stop.
That is the proof of concept. That is the engagement.
Day 3 - Password hashing + cracking
Teacher issues a hash file lab-hashes.txt containing 10 hashes (mix of MD5, SHA-256, NTLM) generated from a known wordlist plus a few weak passwords.
# Identify hash type
hashid 5f4dcc3b5aa765d61d8327deb882cf99
# Crack with john
john --wordlist=/usr/share/wordlists/rockyou.txt lab-hashes.txt
john --show lab-hashes.txt
# Crack with hashcat (GPU if available)
hashcat -m 0 -a 0 lab-hashes.txt /usr/share/wordlists/rockyou.txt
Discuss results:
- Why did MD5 fall in seconds and bcrypt take hours?
- What does this tell us about password storage choices made by the developer?
- What's the defensive lesson? (Strong hashing + salt + length + MFA.)
Day 4 - Post-exploitation (concept + demo)
Three categories:
Privilege escalation (privesc):
- Linux: SUID binaries, sudoers misconfigs, kernel exploits.
- Windows: unquoted service paths, weak service ACLs, AlwaysInstallElevated.
Persistence:
- Linux: cron, systemd unit, .bashrc, SSH authorized_keys.
- Windows: Run keys, scheduled tasks, services.
Lateral movement:
- Stolen credentials, pass-the-hash, RDP/SSH hops.
Teacher demonstrates one example per category. Students record into engagement notes. No student-driven post-exploitation in this unit - that's PEN-200 territory.
Day 5 - Full chain (authorized)
In teams (operator + recorder), students perform the complete authorized chain on Metasploitable2:
- Confirm target authorized (RoE).
- Recon + scan (recap from Units 4–5).
- Identify a known vulnerable service.
- Exploit to PoC shell.
- Capture proof (whoami, hostname, screenshot).
- Exit.
- Snapshot and step away.
Day 6 - Write-up
Template:
# Authorized Exploitation Findings - Lab Target 192.168.56.20
## Executive Summary
## Scope + Authorization (RoE attached)
## Methodology
- Recon, scan, exploit, PoC, exit
## Finding 1
- Title
- CVSS v3.1
- Description
- Evidence (with timestamps)
- Reproduction steps
- Impact
- Recommended remediation
- References
## Conclusion + Defensive recommendations
## Appendix: tool output, engagement notes
Common misconceptions
- "If I get a shell, I should explore." - In a real engagement, shell = stop, document, get authorization for next phase.
- "Cracking a friend's password is a prank." - It is a federal crime. Same statute as cracking a Fortune 500's.
- "Metasploit is hacking." - Metasploit is a framework. Hacking is methodology, documentation, ethics, and judgment. The framework is just one tool in the kit.
Assessment
- Day 1 signed acknowledgement on file.
- Day 2 + 5 PoC screenshots.
- Day 3 john output + reflection paragraph.
- Day 6 write-up - rubric scored, weight equivalent to a unit test.
Career connection
Junior pen testers: $70K–$110K. Senior offensive security engineers $130K–$200K. Bug bounty professionals: open-ended. The career exists because authorized exploitation is a service that companies pay for.
Homework
Read OffSec's PWK syllabus excerpt provided. Identify three topics from PEN-200 you'd want to study next.
