Tags: binary 

Rating: 4.0

# Accumulator

![](https://github.com/mali44/CTF-Write-ups/blob/master/2018-03-21-angstromctf/binary_accumulator/binary_accumulator.jpeg?raw=true)

Hints are very helpful in this ctf. So you will simply realize that program doesn't accept over limited digits.
We know its around 2,1 billion that limit a int value can store. The Further more integer can convert to negative number
AKA "Integer overflow"

```
An integer overflow can cause the value to wrap and become negative,
which violates the program's assumption and may lead to unexpected behavior
(for example, 8-bit integer addition of 127 + 1 results in −128, a two's complement of 128).
```

So my sloution was:

![](https://github.com/mali44/CTF-Write-ups/blob/master/2018-03-21-angstromctf/binary_accumulator/accumulator.png?raw=true)

when you run it on server side :
Flag:
```
actf{signed_ints_aint_safe}
```

Original writeup (https://github.com/mali44/CTF-Write-ups/blob/master/2018-03-21-angstromctf/binary_accumulator/README.md).