r/redteamsec • u/Designer-Classic3925 • 19h ago
I built an open source project for OSCP-style practice labs, and more machines are on the way
Hey everyone,
I've been working on an open source project called The Hacking Machine, and I finally feel it's in good enough shape to share.
The idea is simple. Each lab is a deliberately vulnerable machine built around one real CVE, and the whole thing is set up with Ansible. You spin up a fresh Ubuntu VM, run a playbook, and you get a vulnerable target to attack. Nothing exploits it for you. The build only deploys the vulnerable service, and the actual hacking is up to you. Revert the VM to a clean snapshot and you can build a different lab on the same box.
I made it because I wanted practice that felt like the OSCP: find the service, figure out what's wrong, and exploit it yourself, instead of following a walkthrough that does everything in one click. It also helps that you can read the playbooks and see exactly how the vulnerable setup was put together, which is useful when you want to understand why something is exploitable and not just that it is.
Some of the labs so far cover things like Log4Shell and React2Shell, and I'm adding more regularly. New machines are in development right now, so there will be more to try soon. I'm also preparing for my OSCP exam at the moment, so I'll start adding more CVEs in bulk once that is done.
Links:
Website: https://thehackingmachine.com/
Get started guide: https://thehackingmachine.com/get-started/01
If you try it out, I'd really like to hear what worked, what broke, and which CVEs or machine types you'd want to see next. Issues and PRs on GitHub are welcome too. A star helps others find it if you think it's useful.
Please only run these on your own isolated VMs, since they are intentionally vulnerable.
One more thing: this project is sponsored by my employer, Askar Labs. They gave me the time and support to build it and keep it open source, so a big thank you to them. It wouldn't exist without that.
Thanks