Aller au contenu

Binary Search

Writeup de Arnold-26, repris avec son autorisation. Source : cylab-academy-writeups — challenge #442, résolu le 2026-11-23. Flags tronqués.

Catégorie : Général Skills · Challenge : #442 · Résolu le : 2026-11-23

Énoncé

Want to play a game? As you use more of the shell, you might be interested in how they work! Binary search is a classic algorithm used to quickly find an item in a sorted list. Can you find the flag? You'll have 1000 possibilities and only 10 guesses.

Cyber security often has a huge amount of data to look through - from logs, vulnerability reports, and forensics. Practicing the fundamentals manually might help you in the future when you have to write your own tools!

You can download the challenge files here:

Résolution

Méthode : SSH interactif : bissection.

Jeu SSH : deviner un nombre entre 1 et 1000 en 10 essais. Bissection classique. Piege : parser la réponse en delta (nouvelle sortie), pas sur tout l'historique — sinon les anciens « Higher/Lower » faussent les bornes.

Flag

academy{...}