DEV Community

Mudacumura Brunoblaise
Mudacumura Brunoblaise

Posted on

1 1 1 1 1

Two sum PicoCTF 2023

two-sum

100 points

Description
Can you solve this?
What two positive numbers can make this possible: n1 > n1 + n2 OR n2 > n1+ n2

Note: This challenge launches an instance on demand.


The program asks us to provide 2 integers that would satisfy the equation:

n1 > n1 + n2 OR n2 > n1 + n2

we will not exit the program (unlike the first one) and in order to finally get the flag we need to ensure that num1 > 0 || num2 > 0.

We can overflow the sum with 2 positive integers to satisfy all the conditions, so entering: 1073741824, 1073741824 we can get the flag:

picoCTF{your flag}

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay