I will solve flag casino challenge

Untitled

let’s download the binary and run file against it.

Untitled

now lets run it.

Untitled

mmm it expects a character from us.

let’s disassemble to see the logic behind

Untitled

let’s break the code step by step

we have a variable that loops 30 times!

Untitled

our input here is taken and running srand()

Untitled

there is something interesting there

Untitled

notice that the rand() function is called after the srand() which makes the things more predictable

now let’s test the flag!

Untitled