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
- docker-compose.yml
-
template.py
2.14 KiB – 207bf852c01600be8ed99cd8570748b14600d8a47f5bc8fa1b47c6337765b5ae
Author
Challenge Instructions
- First, download docker-compose.yml:
curl https://hackropole.fr/challenges/fcsc2025-misc-intro-to-pwntools/docker-compose.public.yml -o docker-compose.yml
- Launch the challenge by executing in the same folder:
docker compose up
- Then, in another console, access the challenge with Netcat:
nc localhost 4000
In case you encounter problems, please consult the FAQ.
Flag
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.