[picoCTF] Binary Search

notdonknotdonk
1 min read

OVERVIEW

challenge link - https://play.picoctf.org/practice/challenge/442

difficulty level - easy

SOLUTION

just try to guess the number by taking large jumps like below

~/ctf ❯ ssh -p 61310 ctf-player@atlas.picoctf.net                                                                                   7m 23s 22:19:34
ctf-player@atlas.picoctf.net's password:
Permission denied, please try again.
ctf-player@atlas.picoctf.net's password:
Welcome to the Binary Search Game!
I'm thinking of a number between 1 and 1000.
Enter your guess: 500
Higher! Try again.
Enter your guess: 750
Lower! Try again.
Enter your guess: 625
Lower! Try again.
Enter your guess: 550
Lower! Try again.
Enter your guess: 525
Lower! Try again.
Enter your guess: 515
Higher! Try again.
Enter your guess: 520
Higher! Try again.
Enter your guess: 522
Higher! Try again.
Enter your guess: 523
Higher! Try again.
Enter your guess: 524
Congratulations! You guessed the correct number: 524
Here's your flag: picoCTF{g00d_gu355_ee8225d0}
Connection to atlas.picoctf.net closed.

FLAG

picoCTF{g00d_gu355_ee8225d0}

0
Subscribe to my newsletter

Read articles from notdonk directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

notdonk
notdonk