Hacktober 2020 CTF - Message in an Array

Oct 17, 2020


Challenge Description

Deadface has left a message in the code. Can you read the code and figure out what it says? You may also copy and paste the code in an emulator. Enter the answer as flag{Word Word Word Word}.


Solution

On this chalange, we where given a C# simple program source code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GhostTown
{
    class Program
    {
        static void Main(string[] args)
        {
           string[] str = new string[4] {"DEADFACE","Nothing", "Stop", "Will"};

           Console.WriteLine("{1} {3} {2} {0}", str);
         }
    }
}

Looking at the str array we can see our flag arranged on this way "DEADFACE" "Nothing" "Stop" "Will", we just changed the array arrangement based on the Console.WriteLine() method, wich give us flag{Nothing Will Stop DEADFACE}




back to Hacktober 2020 CTF

back to main