Introduction
This book is a collection of links for tooling and challenges for AFNOM sessions over the 2026-27 period.
Linux Installfest
See our Linux Installfest Setup Guide.
Intro to Linux + Hacking
Useful links
Today's Challenges
- Beginner: Bandit
- Intermediate: Cylab (formerlly picoctf)
- Advanced: AFNOM CTFd
If you are doing Bandit, then read the respective homepage, which tells you how to get started. Each level has a password you need to enter it, so make sure to write them down as you find them!
Cylab can be approached through preset 'learning paths' or by browsing challenges. We recommend the later but feel free to do a path if that suits you! Sort by Easy difficulty and have a go at any challenges or categories that seem interesting to you! Keep in mind that fewer solves on a challenge probably means its harder.
For anyone confident enough to try some homemade and past CTF challenges on our CTFd, we are trying to fully document solutions, so please give us your writeups for any you solve! To access the AFNOM CTFd, make sure you verify with our bot on the discord server and check the pinned messages in the #logins channel to get the access code.
If you are struggling then talk to your friends and the people around you!
Remember you can always look stuff up too, your search engine is your friend.
We want everyone to have fun and have a good time learning something new!
Happy Linux hacking!
Web Hacking
Today's Challenges
- Beginner-Intermediate: Natas
- Wargame. More structured. Better for trying out and learning.
- Intermediate:
- Advanced: AFNOM CTFd
If you are doing Natas, then read the respective homepage, which tells you how to get started. Each level has a password you need to enter it, so make sure to write them down as you find them!
Each challenge on w3challs has its own page that links to the challenge. If you want to submit flags and earn points then you will need to make an account. Remember, generally, less solves = harder challenge!
Challenge resources
Here's a few resources for each of the attack types talked about today
General resources
- OWASP and PortSwigger (makers of ZAP and BurpSuite respectively) both have great wikis/articles on all types of web attacks that you might encounter
- Inspect element is always a great to way to start working out a web challenge!
- Remember to use your search engine, looking stuff up is a great way to learn
SQL Injection
- w3schools has a good guide with examples you can play with
Cookies 🍪
- Here's an article that nicely explains cookies and basic manipulation attacks
- These can be edited as part of a request in ZAP
- You may also find it useful to install a cookie editor extension in your browser, such as editthiscookie
- OWASP Crosssite-Request-Forgery page
User Agents
- You can edit this as part of a request in ZAP
- Alternatively download a user-agent switcher extension for your browser
Cross Site Scripting (XSS)
- OWASP also provides a great explanation for XSS with examples
Local File Inclusion
- This article provides some good examples and explanations for different types of file inclusion vulnerabilities
- Hacktricks provides more examples relevant to PHP
Web proxies
Some web challenges are easier to solve if you have a proxy to capture and edit web requests. We recommend ZAP (a free and open source tool). Alternatively, you can install Burp Suite which is a proprietary tool with similar features. For this session, you probably won't need a proxy but if you want to install one, here are instructions for recent versions of Ubuntu (the process is similar for other Linux distros):
ZAP
- On some systems, you can install ZAP with your package manager by installing the
zaproxypackage but if it isn't available (like on Ubuntu), follow the instructions below - First, you'll need to install Java, to do this on Ubuntu, run the following:
sudo apt install default-jre
- Then, download the ZAP installer from https://www.zaproxy.org/download/, select the "Linux Installer" option
- Once the file has downloaded, open the terminal, navigate to the directory you downloaded the file in and run
chmod +x ZAP_*_unix.sh
sudo ./ZAP_*_unix.sh
- You can run the above commands with the exact name of the file you downloaded, the example above uses the wildcard (
*) so it works regardless of the version of the installer - Go through the setup wizard and leave all options as their defaults
- Launch ZAP as you would launch any other app, select 'no' when asked if you would like to persist your session
- Click 'Manual explore' and type in the URL of the challenge's website, click 'Launch Browser'
- If it works, you're done! On Ubuntu, however, it's likely you'll get an error saying it can't find the browser
- To fix this, click on 'Tools' in the toolbar, find 'Options', select 'Selenium' and change the geckodriver path to
/snap/bin/firefox.geckodriver, the browser should now be able to launch - ZAP should now be working
If you are struggling then talk to your friends and the people around you! Remember you can always look stuff up too.
We want everyone to have fun and have a good time learning something new!
Happy Web hacking!
Steg + Forensics
Handy tools
- Steghide - hides files inside images
- Install via you package manager e.g.
sudo apt install steghide
- Install via you package manager e.g.
- Audacity - viewing and editing sound files
- Stegsolve - View layers and permutations of an image
- Stegsolve can be downloaded and run locally, or plenty of websites such as
https://stegotoolkit.com/steganography/stegsolveexist, so decide which is best for you - Install Java (if you haven't already)
- Navigate to the folder you want to run stegsolve from (using
cd) wget https://github.com/Giotino/stegsolve/releases/download/v1.4/StegSolve-1.4.jar -O stegsolve.jarchmod +x stegsolve.jar- Then to start Stegsolve -
java -jar stegsolve.jar
- Stegsolve can be downloaded and run locally, or plenty of websites such as
- John the ripper - password cracking
- Install via your package manager e.g.
sudo apt install john
- Install via your package manager e.g.
- Stegseek - Bruteforce steghide passwords
- Cyberchef
- Linux commands -
strings, binwalk, compare, file, exiftool - Remember to look up commands and challenge types online if you arent sure!
Useful resources
Today's Challenges
- Steg category on our CTFd
- CyLab forensics challenges
- Want to try some we don't have solutions to? Take a look in this Google drive folder
- Let us know if you solve any that aren't on our CTFd yet!
If you are struggling then talk to your friends and the people around you! Remember you can always look stuff up too, and if you're really struggling then feel free to ask someone in an AFNOM hoodie. We want everyone to have fun and have a good time learning something new!
Happy STEGing!
OSINT
Handy tools
- Collection of tools
- Google search parameters
- Advanced search
- TinEye
- Social Media sites
- Exiftool
Today's Challenges
- TryHackMe Sakura
- seintpl's OSINT Practice
- Our hosted challenges from past CTFs - Go to the 'OSINT' category
You will need an account for TryHackMe.
For seintpl's practice, clone the repo and follow the instructions to work through the zips.
If you are struggling then talk to your friends and the people around you! Remember you can always look stuff up too. We want everyone to have fun and have a good time learning something new!
Happy OSINTing!
Binary Exploitation/PWN
- Today's session is on one of the harder, more technical categories you will come across!
- It is the perfect category for learning how computers execute code at a low level
- Don't get too overwhelmed or intimidated though, with some time and practice it can be one of the most rewarding categories!
- Due to it being a bit more of a difficult session we have also provided today's slides for you to reference if you need!
Further reading
- Take a look at some famous papers and articles that introduced todays techniques!
- Smashing The Stack For Fun And Profit - Buffer overflow, ret2win, ret2libc, shellcode
- The Geometry of Innocent Flesh on the Bone - Return-Oriented Programming (ROP)
- Prefer to watch videos? Here's a 4 hour youtube playlist that covers everything from today (and a bit more) in much greater detail
- basic-of-pwn - Cool github repo that covers everything you might want to know to get started, with loads of examples
- Look up writeups for challenges you have solved or are struggling with - gets some hints and learn some new techinques by seeing how other people work through the same challenges as you!
Useful tools for today!
- Disassembler/Decompiler - there are a few options so choose what looks best to you!
- Ghidra - Open Source, made by the NSA, been around for a long time so very mature with good ISA support
- Binary Ninja - Partial open source, newer than the other two but gaining a lot of popularity, free version available, everything runs locally
- IDA - Closed source, used widely by professionals, free version available (need to make an account), only supports x86 + cloud decomp, fairly intuative and easy to use
- GDB (The GNU Debugger) - debug binaries, look at execution and memory, test your payloads, would recommend installing PwnDBG or GEF as they provide nice register/stack/code views
- pwntools - Python library for automating solves so you don't have to manually copy and paste your leaks and payloads all the time
- whilehex - input raw hex bytes from the commmand line
- Its worth putting this in your bashrc/zshrc/whatever you have as an alias
alias whilehex = 'while read -r line; do echo -e $line; done', then you can use it aswhilehex | ./[binary] - Now you can type raw and non printable hex bytes into you programs using the format '\xXX' (e.g.
\xDE\xAD\xBE\xEF)
- Its worth putting this in your bashrc/zshrc/whatever you have as an alias
Today's challenges
- Pwn category on our CTFd
- If you haven't registered an account yet make sure to grab the registration key from
#loginson our discord! - Look at how many solves challenges have for a gauge on difficulty or ask for a recommendation!
- If you haven't registered an account yet make sure to grab the registration key from
- Cylab Binary Exploitation category
If you are struggling then talk to your friends and the people around you! Remember you can always look stuff up too. We want everyone to have fun and have a good time learning something new!
Happy PWNing!