Nightmare is an intro to binary exploitation / reverse engineering course based around ctf challenges. I call it that because it's a lot of people's nightmare to get hit by weaponized 0 days, which these skills directly translate into doing that type of work (plus it's a really cool song).
It's true there are a lot of resources out there to learn binary exploitation / reverse engineering skills, so what makes this different?
* Amount of Content - There is a large amount of content in this course (currently over 90 challenges), laid out in a linear fashion. * Well Documented Write Ups - Each challenge comes with a well documented writeup explaining how to go from being handed the binary to doing the exploit dev. * Multiple Problems per Topic - Most modules have multiple different challenges. This way you can use one to learn how the attack works, and then apply it to the others. Also different iterations of the problem will have knowledge needed to solve it. * Using all open source tools - All the tools used here are free and open sourced. No IDA torrent needed. * A Place to Ask Questions - So if you have a problem that you've been working for days and can't get anywhere (and google isn't helping).
I have found that resources that have many of these things to be few and far between. As a result it can make learning these skills difficult since you don't really know what to learn, or how to learn it. This is essentially my attempt to help fix some of those problems.
If you want, there is a static github pages site which people say looks better: https://guyinatuxedo.github.io/
If you want to manually build the site, I just used mdbook. After installing rust and cargo, just install mdbook with
sudo cargo install mdbook. Then just run
A copy of all of the challenges listed, can be found on the github: https://github.com/guyinatuxedo/nightmare
Special thanks to these people:
noopnoop - For dealing with me digitalcold - For showing me how good nightmare could look with mdbook you nerds - For looking at this
If you get stuck on something for hours on end and google can't answer your question, try asking in the discord (or if you just feel like talking about cool security things). Here is a link to it
Also if you notice any typos or mistakes, feel free to mention it in the Discord. With how much content is here, there is bound to be at least one.
Here is the index for all of the content in this course. Feel free to go through the whole thing, or only parts of it (don't let me tell you how to live your life). For the order that you do the challenges in a module, I would recommend starting with the first.
- Intro to assembly
- Sample assembly reverse challs
- quick aslr/pie explanation
- nx explanation
- stack canary introduction
- relro introduction
- 0ctf 2018 babystack
- Use After Free
- Double Free
- Null Byte Heap Consolidation
- What's next