Lonely bot

Flag: HACKDAY{Y3E4H_1ZY_R1GHT!}

Challenge

Description


You wander through the deserted streets of the abandoned docks south of Dagenham, convinced they might serve as a hideout for criminals. After exploring ruined buildings and broken machinery, your attention is caught by a strange light shining from beneath a rusty door. Forcing it open, you are surprised to find a small robot that seems eager to communicate with you. Try to uncover the secrets it holds, though you’re beginning to realize this might take some time...


More instances of the challenge:

  • challenges.hackday.fr:41521

  • challenges.hackday.fr:41522

  • challenges.hackday.fr:41523

  • challenges.hackday.fr:41524

  • challenges.hackday.fr:41525


There's an currently issue with the trailing newlines handling in the buffer from the server side. The challenge can still be solved. You have to send your answers without any trailing newlines added in the buffer. We are looking for a hotfix.


The use of socket and send() method can help to solve the challenge.

challenges.hackday.fr:41521

Solution

J'ai eu des problèmes avec pwntools (à cause de leur serveur notamment). Donc j'ai recodé les fonctions principales pour gérer l'échange client-serveur. C'est-à-dire l'envoi de données ainsi que la lecture par ligne.

Le code est commenté à chaque étape.

Mis à jour

Ce contenu vous a-t-il été utile ?