<< back
8 August 2020
Roll For Initiative 2
Challenge Source: Defcon 28 - Red Team Village CTFChallenge Category: programming
Programming - Roll for Initiative 2
Just like in Roll for Initiative 1: when connecting to the server, the “Backdoors and Breaches” game begins and we need to “Roll for Initiative”.
The functionality is exactly the same as well:
- An integer between 1 and 20 needs to be provided as an input.
- The number needs to match an expected value.
- If it does we’re asked to “Roll again” and provide another input. We’re told that doing this 10 times will result in a “prize” which we can hope is the flag.
- If it does not, we’re told it does not match, what the number should have been and the connection is broken.
- The expected numbers and their order do not change when we re-establish a connection to the server.
However, now 100 “wins” (value matches) in a row is the goal. This makes it a lot more tedious to manually keep track of the correct values and pretty much forces code to be written to get the flag.
The code written for the first problem is easily modified to work for this one also by changing the port number and array initialization size:
Tags: Defcon28-RTVCTF