Writeup + CVE analysis + countermeasures for the Hacktivity 'Vulnerabilities, Exploits, and Remote Access Payloads' lab (netcat shells, Metasploit, CVE-2010-1240, CVE-2004-2687).
My walkthrough and analysis of the Hacktivity Cyber Security Labs sheet "Vulnerabilities, Exploits, and Remote Access Payloads" (Ethical Hacking and Penetration Testing course, Leeds Beckett University).
It covers how software vulnerabilities lead to arbitrary code execution, the difference between bind and reverse shells, the Metasploit Framework, and two real CVEs exploited end to end against deliberately vulnerable training VMs:
| CVE | Target | Vector |
|---|
| CVE-2010-1240 | Adobe Reader < 8.1.2 (Windows) | Client-side — malicious PDF with an embedded executable, social-engineering launch |
| CVE-2004-2687 | distcc (Linux) | Remote — unauthenticated command execution in a network service |
Three VMs on an isolated host-only network (10.x.x.x/24), provisioned per
lab-set by the Hacktivity platform:
| Host | Role | This run |
|---|---|---|
| Kali Linux | attacker | 10.252.0.4 |
| Windows victim | Adobe Reader < 8.1.2, Netcat | 10.252.0.2 |
| Linux victim server | distcc | 10.252.0.3 |
The last octet is stable per role (.2 / .3 / .4); the first three change
with each lab set.
msfconsole, module search, info / show options /
set / check / run, multi/handler, msfvenomdistcc_exec, TTY upgrade with
python -c 'import pty; pty.spawn("/bin/bash")', basic post-exploitationEverything here was performed against my own allocated, deliberately vulnerable training VMs on an isolated network, as part of a structured security-education lab. No third-party systems were touched. The CVEs are from 2004 and 2010 and are long since patched.
Original lab sheet: "Vulnerabilities, Exploits, and Remote Access Payloads" by Z. Cliffe Schreuders, Anatoliy Gorbenko, and Thalita Vergilio — Hacktivity Cyber Security Labs, Cybercrime and Security Innovation Centre, Leeds Beckett University. Source: https://hacktivity.co.uk · https://github.com/cliffe/HacktivityLabSheets
This writeup is my own explanatory text and analysis, built while working through that lab. Licensed CC BY-SA 4.0 to match the original — see LICENSE.