示例#1
0
文件: Program.cs 项目: nadrees/HTS
        static void Main(string[] args)
        {
            IEnumerable<WordDetails> words = BuildWords("wordlist.txt");

            var username = args[0];
            var password = args[1];

            var page = new ChallengePage("https://www.hackthissite.org/missions/prog/1/", username, password);
            IEnumerable<WordDetails> scrambledWords = GetScrambledWords(page.GetChallengePage());

            var unscrambledWords = UnscrambleWords(scrambledWords, words);
            page.SubmitAnswer(String.Join(",", unscrambledWords.ToArray()));

            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();
        }
示例#2
0
文件: Program.cs 项目: nadrees/HTS
        static void Main(string[] args)
        {
            var username = args[0];
            var password = args[1];

            var page = new ChallengePage("https://www.hackthissite.org/missions/prog/2/", username, password);

            // start challenge
            page.GetChallengePage();
            // get image for challenge
            var png = GetPngImage(page);

            var morse = ParseImage(png);
            Console.WriteLine("Morse encoded password: {0}", morse);

            var result = DecodeMorse(morse);
            Console.WriteLine("Decoded morse: {0}", result);

            page.SubmitAnswer(result);
        }