Exemple #1
0
 public static void CheckForFilesPresence()
 {
     if (!RestreamAppData.IsRestreamAppDataDefined())
     {
         RestreamAppData.CreateReastreamFolder();
     }
     if (!RestreamAppData.IsConfigurationFileDefined())
     {
         RestreamAppData.CreateRestreamConfigFile();
     }
 }
        public static void Main()
        {
            AppDomain.CurrentDomain.ProcessExit += new EventHandler(ProcessExit);


            BatchToLaunch.TryLaunchRestream();
            RestreamAppData.CheckForFilesPresence();
            RestreamAppData.LoadConfigurationFile();
            ConsoleCommunication.HelloWorldAndCredit();
            if (ChatHackerConfiguration.Instance.IsFirstTimeForUser())
            {
                Console.Out.WriteLine("Hello There :) ... ");
                Console.Out.WriteLine("I see it is your first time.");
                Console.Out.WriteLine("You can edit Config.json in AppData to set your preference:");
                Console.Out.WriteLine(RestreamAppData.ConfigurationPath);

                Console.Out.WriteLine("To work as UDP (by default), the app need: Ip(s) to target, Port, Restream Chat link.");
                Console.Out.WriteLine("When providing, a chrome browser will open and Hide");
                Console.Out.WriteLine("The app only work if:\n- This console is open\n-Resteam Chat application is open\n- Good Restream link was given\n-The launched chome window is open");

                Console.Out.WriteLine("\nAs you are new, could you give the following basic information?\n");
                ConsoleCommunication.AskForTargetUdpPort();
                ConsoleCommunication.AskForTargetUdpIps();
                ChatHackerConfiguration.Instance.m_isFirstTimeTheAppIsLaunch = false;
            }
            ConsoleCommunication.AskForRestreamEmbedLink();
            RestreamAppData.SaveConfigurationFile();

            if (ChatHackerConfiguration.Instance.IsRequestingFakeMessagesToDebug())
            {
                LaunchDirtyMockupSystemOnThread();
            }



            AddListenersToMessagesExport();
            LaunchRestreamChatOberver();


            if (ChatHackerConfiguration.Instance.IsUserRequestToHideInterface())
            {
                User32Utility.HideTheInterfaceWithUser32DLL();
            }


            AvoidUserToQuit();
        }