/rwctf-3rd-billboard

RealWorld CTF 3rd billboard challenge & writeup

Primary LanguageGoApache License 2.0Apache-2.0

RealWorld CTF 3rd Finals - Billboard

billboard is a blockchain application built using Cosmos SDK and Tendermint.

Challenge

Description

Welcome to the billboard, you can post an advertisement on the billboard chain, and the more coin you deposit the higher your advertisement ranking will be.

Goal

Send a successful CaptureTheFlag type transaction.

Instruction

  1. Add player private key
$ echo "your mnemonic here" | billboardcli keys add $KEY --recover

mnemonic: chief control turn hurt dance system focus enjoy nasty draw cash rose boring example cause venture neither bind rack seven misery until exhibit hood

PS: During the competition, we provided players preset built-in accounts rather than the genesis account, then transferred enough coins to those addresses. The preset accounts was derived from player's team tokens in the following algorithm.

$ billboardcli keys mnemonic --unsafe-entropy
> your team token md5 + 32 * "0"

  1. Check balance, should be none-zero
$ billboardcli query account $ADDRESS --node $RPC
  1. Post an advertisement
$ billboardcli tx billboard create-advertisement $ID $CONTENT --from $KEY --chain-id mainnet --fees 10ctc --node $RPC

Hint

Deployment

$ git clone https://github.com/iczc/rwctf-3rd-billboard.git
$ cd billboard/deploy
$ docker-compose up -d

Writeup