Description
Now you must occasionally beat the Imp. Modify the warrior to something more aggressive, such as the documented “Imp Ex” example.
Setup
Replace the original Imp with a more capable warrior (e.g., add #4, mov 2,@2, jmp -2).
Submit the modified file via nc saturn.picoctf.net 63042 and win at least one round.
cat <<'RED' > imp.red
;redcode
;name Imp Ex
add #4, 3
mov 2, @2
jmp -2
dat #0, #0
end
RED
nc saturn.picoctf.net 63042 < imp.red
Solution
- Step 1Adopt a published warriorThe “Imp Ex” sample from the CoreWar docs overwhelms the stock Imp within a few rounds, guaranteeing at least one victory.
- Step 2Collect the rewardOnce the 100 matches finish, the service reveals the flag in the summary output.
Flag
picoCTF{1mp_1n...5_ec57a42e}
Any warrior capable of beating the Imp at least once will work; Imp Ex is a handy template.