An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
Ready Gladiator 1
Ready Gladiator 1
200 points
Description
Can you make a CoreWars warrior that wins?
Your opponent is the Imp. The source is available here. If you wanted to pit the Imp against himself, you could download the Imp and connect to the CoreWars server like this:
nc saturn.picoctf.net port number < imp.red
To get the flag, you must beat the Imp at least once out of the many rounds.
Note: This challenge launches an instance on demand.
I tried asking chatGPT
to help me understand the syntax and what to do, but it gave me 3 programs that just lost with a weird syntax.
So the next thing I did is google, a reddit thread where someone asks how to beat the Imp gave the instructions:
sub 1, -10jmp -1
;redcode;name Paper-Scissors-Rock;assert 1sub 1, -10jmp -1end
and this code won 40 out of a 100 wins and got me the flag (still don't understand the game mostly...)
picoCTF{your flag}
Original Link: https://dev.to/brunoblaise/ready-gladiator-1-2k21
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To