From d2605dbffe3a8570a028ad85c44ab5858c2a4ce2 Mon Sep 17 00:00:00 2001 From: Aadit Agrawal Date: Wed, 30 Oct 2024 23:44:16 +0530 Subject: [PATCH] Add Technical/picoCTF/t1/q3.md --- Technical/picoCTF/t1/q3.md | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Technical/picoCTF/t1/q3.md diff --git a/Technical/picoCTF/t1/q3.md b/Technical/picoCTF/t1/q3.md new file mode 100644 index 0000000..e2be93b --- /dev/null +++ b/Technical/picoCTF/t1/q3.md @@ -0,0 +1,39 @@ +# Question: Easy1 +### Key: picoCTF{h3r0_t0_z3r0_4m1r1gh7_e1610ed2} + +**Core concept: CoreWars** + +Core War is a 1984 programming game created by D. G. Jones and A. K. Dewdney in which two or more battle programs (called "warriors") compete for control of a virtual computer. These battle programs are written in an abstract assembly language called Redcode. - (Kagi summary) + +Looked up what CoreWars is, and it is essentially a 1v1 game with players controlled by its own syntax. + +The only player that will always lose will be one who commits suicide; which is done using `DAT 0,0`. + +```zsh +nc saturn.picoctf.net 51554 +Submit your warrior: (enter 'end' when done) + +DAT 0, 0 +DAT 0, 0 + + +end +end +Warrior1: +DAT 0, 0 + +end + +Warning: + Missing ';assert'. Warrior may not work with the current setting +Number of warnings: 1 + +Rounds: 100 +Warrior 1 wins: 0 +Warrior 2 wins: 100 +Ties: 0 +You did it! +picoCTF{h3r0_t0_z3r0_4m1r1gh7_e1610ed2} +``` + +Output: `picoCTF{h3r0_t0_z3r0_4m1r1gh7_e1610ed2}`