Intro to pwntools

intro misc FCSC 2025 solved on

Description

This is not a real challenge, but rather an example of how to use Python to communicate with the remote services of FCSC, Hackropole, and more generally, with any service exposing a TCP port.

If you are not familiar with these concepts, start by installing the Python package pwntools on your machine. This package is extremely useful in CTFs and helps simplify a lot of tasks.

In our case, we will only use it to communicate with a service exposing a TCP port.

Although it is possible to solve this challenge manually or directly from the provided template.py file, we recommend studying the different functions used in template.py. These are the main functions used in pwntools for communicating with remote services, and they might be useful for you for FCSC or Hackropole challenges.

Files

Challenge Instructions

  1. First, download docker-compose.yml:
    curl https://hackropole.fr/challenges/fcsc2025-misc-intro-to-pwntools/docker-compose.public.yml -o docker-compose.yml
  2. Launch the challenge by executing in the same folder:
    docker compose up
  3. Then, in another console, access the challenge with Netcat:
    nc localhost 4000
⚠️ Important: You must solve the challenge by interacting with the Docker container through the exposed network port. Any other way is not considered valid.

In case you encounter problems, please consult the FAQ.

Flag

Share my success on Fediverse, Twitter, Linkedin, Facebook, or via email.

Submit your solution

You can submit your writeup for this challenge. Read the FAQ to learn how to proceed.

You need to be logged in to submit a writeup.

Writeups

There are no public solutions for this challenge yet, but you can submit yours after getting the flag.