Message in an Array

Challenge:

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}.

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);
         }
    }
}

Solution:

The challenge is a very simple .NET script that transposes the elements of the array str when printing the flag. The index items in the format string correspond to the elements in the str array e.g. {1} references the second element in the array, “Nothing”, {3} references “Will”, etc. The complete flag is flag{Nothing Will Stop DEADFACE}.

Published:

Updated:

Leave a comment