Lately I've spent this past summer aimlessly flipping through PDFs of guides on programming and exploitation as well as diving into (what is probably my 5th time) CS50 to revisit the basics and learn the foundation needed to break into this mysterious field. After watching countless videos and reading hundreds of articles every night, though, I find myself getting distracted and off track jumping from resource to resource and book to article, barely getting anywhere.
So after all that time spent, here I'll lay out a structured guide of resources and websites to keep me on track to where I need to be to get to a point of understanding CTFs and overall application security better. Hopefully it may reach some of you guys who may also be bitterly prone to distractions and hopping from guide to guide.
Level 1
- Even if you're a seasoned hacker or expert in CS, or whether you're a fledgling beginner, there's no better way to start off learning the basics than with Harvard's CS50. For the 2020 version at least, it'll get you deep into C programming, data structures and algorithms, concepts of memory and pointers (which is also great for understanding buffer overflows later on), Python, SQL, and application development. Basically the foundation of almost everything you'd learn in a 4-year Computer Science program.
- Hacking: The Art of Exploitation, which is also a great guide in exploring C, Assembly, networking concepts, exploitation and more for a beginner. An excellent book providing the foundation of hacking and its origins.
- OverTheWire, especially Bandit and Natas through Krypton challenges down the list are useful ongoing wargames to learn more about Linux and web security and exploitation through hands-on experience and useful hints should you get stuck.
- HackSplaining, a visual look at common vulnerabilities in web applications.
- Optional reading, but Code by Charles Petzold is also another good intro to how computers work and why to understand internals better for absolute beginners.
- MIT's The Missing Semester teaches you the tools needed to approach programming, hacking, and overall development (i.e. Github, Docker, Vim, IDEs, BASH scripting etc).
- FreeCodeCamp for learning HTML, CSS, JS, and web development through projects and certifications to go for (so you know how to break them ;))
Level 2
- TryHackMe's Zero to Hero Boxes Guide. There's a map for free members who can't or won't get the subscription, and a map for subscribed members.Personally I find this a much easier and similar alternative to HackTheBox, due to the numerous threads and hints and explanations in each of the boxes to help you understand concepts better. Though, it's best to keep practicing the concepts and exercises taught in the boxes as it can be so simple and easy to forget once you've finished a box.
- Heath Adam's Ethical Hacking Course (aka TheCyberMentor). Assumes you're a beginner to ethical hacking and teaches you everything you need to know about penetration testing for web and other applications. Especially useful if you're interested in pursuing the OSCP in the future.
- The Nightmare course by my good friend guyinatuxedo. It is a comprehensive online book on getting into binary exploitation through exploring CTF challenges and various other real life examples. And one of the more beginner friendly guides for those interested in malware analysis and reverse engineering in the future.
Level 3
- HackTheBox. If you get stuck, there's always Ippsec's videos.Playing through the retired boxes is an especially good place to start off in HTB.
- Pwnable.kr for a cute and fun approach to pwning challenges and binary exploitation.
- VulnHub. Similar to HackTheBox in that it provides downloadable Virtual Machines to practice hacking into.
- Microcorruption, an ongoing CTF focused on embedded security.
- For OSCP-like boxes on HTB and VulnHub, here's a spreadsheet listing the boxes that are highly similar to the labs during the PWK course that also serves as another great way to build your skills overall.
Level 4 (Or more for deeper understanding of computer and systems internals as well as other specific fields)
- Nand2Tetris teaches you how to build a computer and OS from the ground up. A deep dive into operating systems
- Hasherezade's Malware Analysis/Reverse Engineering Guide
- For a hands-on and lecture based approach to going through The Web Application Hacker's Handbook (if you're interested in web), look no further than Sam Bowne's Securing Web Applications. I personally couldn't get through the book at first but having a video and exercises to follow along with through reading the book helped immensely in understanding the concepts better.
- Awesome Gameboy Dev for learning emulation, reverse engineering, and assembly and C for building and reversing all things Gameboys.
- Cryptohack, a relatively new and very astounding website which teaches you cryptography through programming exercises (highly recommend the use of Python for this). Starts off easy but gets exponentially harder as you progress.
- Trail of Bit's Guide on Forensics. There's not much friendly guides on learning computer forensics out there for those who are interested, but this guide is about the only one I found that provides a comprehensive overview of how to approach forensics challenges for if you encounter one in CTFs.
- Systems Programming and Tools taught by Sanjiv Bhatia, lectures and walkthroughs on programming in the Linux/Unix environment.
Some other fun sites to practice on
- HackThisSite!
- Try2Hack
- picoCTF. High school based CTF but also fun for beginners as well. Also great in exploring what topics you may be specifically interested in.
- HackNet, just a really fun hacking simulator, one of the few accurate ones out there as well.
- Don't forget to check for upcoming CTFs at ctftime.org!
Realistically, you could approach any of these resources in any order you prefer depending on your level of experience. This, though, provides to me at least a more structured and streamlined way of learning security concepts in a progressing manner. I hope this also helps future readers interested in also breaking into the field. This list may be edited in the future as needed.
Top comments (3)
Thanks, well thought out with quality links; a great roadmap. Many start off with new, checkbox solutions & get frustrated. Follow this, you won’t lose your mind. Those pre-metasploit days were quite fun though.
Thanks i really needed to start from basics in ctf rather than jumping straight into contest this will help :)
the list is really resourceful. Thanks!