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(); }
internal static void WelcomeTheNewUser() { 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 the app need: Ip(s) to target(s), 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("Nothing happens... (o_O)"); Console.Out.WriteLine("Yeah, I know. It is because you can't see UDP message with your eyes, you need an app to see them."); Console.Out.WriteLine("You can download my default one here: "); Console.Out.WriteLine("You can download my default one here: "); Console.Out.WriteLine("\nAs you are new, could you give the following basic information?\n"); ConsoleCommunication.AskForTargetUdpPort(); ConsoleCommunication.AskForTargetUdpIps(); }