DEV Community

Mudacumura Brunoblaise
Mudacumura Brunoblaise

Posted on

Ready Gladiator 0

Ready Gladiator 0

100 points

AUTHOR: LT 'SYREAL' JONES

Description
Can you make a CoreWars warrior that always loses, no ties?
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 start your own corewars server

Note: This challenge launches an instance on demand.


Ok so for this challenge I had to learn what CoreWars was, and its apparently its a game between two programs that are written in RedCode which is a pseudo-assembly language.

Our mission is to lose to the program provided 100 times.

After trying out what will happen if I provide the same code to the server, we just ended up with 100 ties.

So, I just deleted the only instruction that does operations in the game and the warrior

;redcode
;name Imp Ex
;assert 1
end
Enter fullscreen mode Exit fullscreen mode

I lost which gave the flag:

picoCTF{your flag}

Top comments (4)

Collapse
 
young_b profile image
young-b

can explain more litely how you cracked the program

Collapse
 
brunoblaise profile image
Mudacumura Brunoblaise

Can you be more specific?

Collapse
 
young_b profile image
young-b

i read you deleted the the only instruction that does operations ,do you mean these lines :
;redcode
;name Imp Ex
;assert 1
end

if so there is nothing left tho!

Thread Thread
 
brunoblaise profile image
Mudacumura Brunoblaise

I see I deleted the operator of mov, the initial code is like this:

;redcode
;name Imp Ex
;assert 1
mov 0, 1
end
Enter fullscreen mode Exit fullscreen mode

I deleted mov 0, 1 only since we needed to loss 100 time.