Add Technical/picoCTF/t1/q3.md
This commit is contained in:
parent
fc1adb4000
commit
d2605dbffe
39
Technical/picoCTF/t1/q3.md
Normal file
39
Technical/picoCTF/t1/q3.md
Normal file
@ -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}`
|
Loading…
Reference in New Issue
Block a user