|
| 1 | +# Ethernaut CTF 2024 |
| 2 | + |
| 3 | +Here you can find the challenges for the Ethernaut CTF 2024 with their respective solutions. The challenges ran on top of a custom kCTF infrastructure, which you can find [here](https://github.com/OpenZeppelin/ctf-infra). |
| 4 | + |
| 5 | +### How to run challenges locally |
| 6 | +1. Git clone the [ctf-infra](https://github.com/OpenZeppelin/ctf-infra) repository, cd into `paradigmctf.py` and run `docker-compose up -d` to start the infrastructure. |
| 7 | +2. Git clone this repo, cd into `<challenge_name>/challenge` and run `docker-compose up -d` to start the challenge server. |
| 8 | +3. You can now access the challenge server at `localhost:1337`, for example: `nc localhost 1337`. |
| 9 | + |
| 10 | +# Challenges |
| 11 | + |
| 12 | +Challenges are listed in alphabetical order with the final number of solves and points. |
| 13 | + |
| 14 | +## Alien Spaceship |
| 15 | +by steventhornton / 349 points / 37 solves |
| 16 | + |
| 17 | +**Description**: |
| 18 | + |
| 19 | +You have hacked into an alien spaceship and stolen the bytecode that controls their spaceship. They are on a mission to attack your home planet. Luckily for you their spaceship runs on the EVM. Take over control of their spaceship and successfully `abortMission`. |
| 20 | + |
| 21 | +[Solution](alienspaceship/README.md) and [solve script](alienspaceship/challenge/project/script/Solve.s.sol) |
| 22 | + |
| 23 | +## beef |
| 24 | +by [cairoeth](https://twitter.com/cairoeth) / 485 points / 6 solves |
| 25 | + |
| 26 | +**Description**: |
| 27 | + |
| 28 | +My favorite project airdropped some tokens, but I didn't get any. Can you help me burn all of the supply? >:) |
| 29 | + |
| 30 | +[Solution](beef/README.md) and [solve script](beef/challenge/project/script/Solve.s.sol) |
| 31 | + |
| 32 | +## Dutch |
| 33 | +by [cairoeth](https://twitter.com/cairoeth) / 289 points / 48 solves |
| 34 | + |
| 35 | +**Description**: |
| 36 | + |
| 37 | +Dutch auctions are great for NFTs. Can you become the highest bidder? |
| 38 | + |
| 39 | +[Solution](dutch/README.md) and [solve script](dutch/challenge/project/script/Solve.s.sol) |
| 40 | + |
| 41 | +## Dutch 2 |
| 42 | +by [cairoeth](https://twitter.com/cairoeth) / 453 points / 15 solves |
| 43 | + |
| 44 | +**Description**: |
| 45 | + |
| 46 | +Looks like someone is auctioning a lot of tokens, but they are encrypted. Might be a good idea to bid... |
| 47 | + |
| 48 | +[Solution](dutch-2/README.md) and [solve script](dutch-2/challenge/project/script/Solve.s.sol) |
| 49 | + |
| 50 | +## Greedy Sad Man |
| 51 | +by ericnordelo / 428 points / 21 solves |
| 52 | + |
| 53 | +**Description**: |
| 54 | + |
| 55 | +A very greedy and sad man is accepting donations in order to reduce his sadness. Everyone deserves happiness. Will you be able to make him happy? |
| 56 | + |
| 57 | +[Solution](greedy-sad-man/README.md) and [solve script](greedy-sad-man/challenge/project/solve.py) |
| 58 | + |
| 59 | +## Space Bank |
| 60 | +by [pedroais2](https://twitter.com/Pedroais2) / 204 points / 64 solves |
| 61 | + |
| 62 | +**Description**: |
| 63 | + |
| 64 | +The formidable Space Bank is known for its stringent security systems and vast reserves of space tokens (Galactic credits). Outsmart two state-of-the-art alarms, steal the tokens, and then detonate the bank to claim victory. |
| 65 | + |
| 66 | +[Solution](spacebank/README.md) and [solve script](spacebank/challenge/project/script/Solve.s.sol) |
| 67 | + |
| 68 | +## start.exe |
| 69 | +by [cairoeth](https://twitter.com/cairoeth) / 10 points / 298 solves |
| 70 | + |
| 71 | +**Description**: |
| 72 | + |
| 73 | +This transaction seems to be the start of something big. Can you figure out what it is? https://sepolia.etherscan.io/tx/0x73fcb6eec33280c39a696b8db0f7b3f71f789c28ef722e0c716f9c8cef6aa040 |
| 74 | + |
| 75 | +[Solution](start.exe/README.md) |
| 76 | + |
| 77 | +## Wombo Combo |
| 78 | +by [cairoeth](https://twitter.com/cairoeth) / 295 points / 47 solves |
| 79 | + |
| 80 | +**Description**: |
| 81 | + |
| 82 | +You should stake your tokens to get more tokens! |
| 83 | + |
| 84 | +[Solution](wombocombo/README.md) and [solve script](wombocombo/challenge/project/script/Solve.s.sol) |
| 85 | + |
| 86 | +## XYZ |
| 87 | +by [cairoeth](https://twitter.com/cairoeth) / 449 points / 16 solves |
| 88 | + |
| 89 | +**Description**: |
| 90 | + |
| 91 | +XYZ: the most advanced algorithmic stablecoin that never depegs. |
| 92 | + |
| 93 | +[Solution](xyz/README.md) and [solve script](xyz/challenge/project/script/Solve.s.sol) |
0 commit comments