42 projects

Every project from the 42 curriculum, grouped by area and listed newest first.

Systems13 projects

KFS 2

Second module of the series: the segment table the processor demands in protected mode, placed at a known, hard-coded address, then loaded by reloading every segment register, far jump included. Add the kernel stack and a built-in shell to read them back.

  • C
  • x86
  • Assembly
KFS 1

A bootable i386 kernel written from scratch: GRUB loads it through a Multiboot header, and the kernel writes to video memory itself, at address 0xB8000. No standard library, no system call, not even a memcpy: whatever you need has to be written before it can be used.

  • C
  • x86
  • Assembly
DSLR

Sixteen hundred students, thirteen courses, one house to find. The project starts with a describe tool written by hand, then with the plots that show which courses separate the houses and which ones say the same thing twice. The logistic regression only comes after, on the columns that were kept.

  • Python
  • Machine learning
ft_irc

An IRC server in C++, true to the protocol of 1988: a single event loop for every connection, channels with their operators and modes, private messages, and commands that answer exactly what the client expects. A real client has to connect without noticing the difference.

  • C++
cub3D

A first-person renderer written in C with no 3D library at all: for every column of the screen, a ray crosses a grid until it meets a wall, and that distance gives the height to draw. The scene is a text file, checked closed before any window opens. Not a triangle anywhere.

  • C
Minishell

Rewriting bash is enough to never look at it the same way.

A minimal Unix shell in C: the line is split into words, quotes respected, environment variables expanded, then the command runs in its own process, with its redirections and its pipes. Signals and the built-in commands do the rest.

  • C
Philosophers

The dining philosophers in C: one thread per diner, one lock per fork, and one last thread that does nothing but watch, able to catch a death to the millisecond. The two classic traps: deadlock, where everyone waits on their neighbour fork, and starvation.

  • C
  • Threads
so_long

A small 2D game in C on MiniLibX, which knows how to open a window, blit an image and report a key, nothing more. The map is a text file of five characters, drawn tile by tile. Nothing opens before it is declared closed, with one start, one exit and a path to every drop.

  • C
  • MiniLibX
push_swap

Sorting a stack of integers with eleven operations only, and in as few moves as possible: the move count is what gets graded. Values are replaced by their ranks, the small cases are written by hand, and the general sort pushes chosen chunks to the other stack before bringing everything back.

  • C
  • Algorithms
pipex

What the shell actually does when you type a vertical bar.

The program reproduces < file1 cmd1 | cmd2 > file2 in C: pipe() gives the pair of descriptors, fork() the processes, dup2() puts the ends of the pipe where the commands expect them, on descriptors 0 and 1, and execve() replaces each child with the command.

  • C
  • Unix
ft_printf

printf looks simple right up until you write it.

A reimplementation in C, format parser included: nine conversions, the width, precision, padding and sign flags, and variadic arguments read one at a time with va_arg. One pass over the format string, one branch per conversion, and a return value counting the characters written.

  • C
get_next_line

Reading one line means reading too much, and remembering the rest.

The function returns the next line of a file descriptor, and behaves the same on a file, on standard input or on a redirection. A static variable keeps whatever was read past the line, whatever the buffer size, which is fixed at compile time.

  • C
libft

The first project of the cursus: rewriting part of the C standard library from its man pages, then adding what it does not provide, string splitting, integer conversion, linked lists. It all compiles into libft.a, linked by every project that came after.

  • C
  • Makefile

Security2 projects

Darkly

A site built to be broken. The work is finding where.

A deliberately vulnerable web application, and the list of flaws it hides: SQL injection, scripts injected into pages, missing access controls, passwords stored in the clear, files that can be read or uploaded without any right to them. Every find is reproduced and written up.

  • Web
  • OWASP
  • SQL
Snow Crash

A series of levels on a Linux system, where each one gives access to the next: read the program left there, find what it gets wrong, and use it to get the password of the user above. Buffer overflows, badly filtered variables, permissions set too wide: every level has its own.

  • Linux
  • Security

Infrastructure3 projects

Cloud-1

Automated deployment of a multi-service web stack on a remote server. Ansible starts from a bare machine and puts everything in place: the Docker engine, the containers, the database and the web server. One command replays the whole installation, and two runs in a row leave the machine in the same state.

  • Linux
  • Ansible
  • Docker
Inception

A small infrastructure of services, each in its own container built by hand from a base image: NGINX with TLS as the only way in, WordPress on PHP-FPM, and MariaDB. Docker Compose starts them together, gives them a private network and volumes that outlive a shutdown.

  • Docker
Born2BeRoot

Not a line of code: just a machine you don’t leave wide open.

A Linux virtual machine set up by hand, with no desktop, then closed one door at a time: LVM partitioning, firewall, restricted SSH access, password policy and sudo rules. Nothing to program, only decisions to justify.

  • Linux

Web2 projects

Matcha

A dating site in a monorepo: an Express API, a single-page React application, and a PostgreSQL database where every SQL query is written by hand. The subject rules out ORMs, validators and account managers: sign-up, email verification, login and tokens are all our own code.

  • TypeScript
  • React
  • Node.js
  • Express
  • PostgreSQL
  • Socket.IO
  • WebRTC
ft_transcendence

Everyone in the same repository.

The capstone project of the cursus: a complete web application, built as a team around a real-time multiplayer game. Accounts and authentication, games played together in the browser, and all the integration work a repository takes when everyone pushes their own part.

  • Web