예제 #1
0
        protected Provider(NetworkPeer network)
        {
            Network = network;

            try
            {
                Config = new IniConfigSource(Application.StartupPath + "\\config.ini").Configs["NovaRat"];
            }
            catch (FileNotFoundException ex)
            {
                string defaultConfigText = "; Nova Remote Assistance Tool INI Configuration File" + Environment.NewLine +
                                                 "[NovaRat]" + Environment.NewLine +
                                                 "; Uncomment the line below for the public Introducer running on an Amazon EC2 server" + Environment.NewLine +
                                                 "; IntroducerEndPoint = 50.18.245.235:16168" + Environment.NewLine +
                                                 "; Comment the line below to stop using your own Introducer" + Environment.NewLine +
                                                 "IntroducerEndPoint = 127.0.0.1:16168" + Environment.NewLine +
                                                 "MaxNumConnectionAttemptsPerMachine = 3" + Environment.NewLine +
                                                 "BanTime = 60";

                File.WriteAllText(Application.StartupPath + "\\config.ini", defaultConfigText);

                Config = new IniConfigSource(Application.StartupPath + "\\config.ini").Configs["NovaRat"];
            }

            RegisterMessageHandlers(); 
        }
 public LiveControlProvider(NetworkPeer network)
     : base(network)
 {
     MirrorDriver = new DesktopMirror();
     DesktopChanges = new List<Rectangle>();
     Timer = new Stopwatch();
     MirrorDriver.DesktopChange += new EventHandler<DesktopMirror.DesktopChangeEventArgs>(MirrorDriver_DesktopChange);
 }
예제 #3
0
 public NovaProvider(NetworkPeer network)
     : base(network)
 {
     MachineLookupTable = new MachineLookupTable();
     MachineBanTable = new MachineBanTable();
 }
예제 #4
0
 public NovaProvider(NetworkPeer network)
     : base(network)
 {
 }
 public LiveControlProvider(NetworkPeer network)
     : base(network)
 {
     pendingScreenshots = new Dictionary<uint, Screenshot>(1000);
 }
예제 #6
0
 public virtual void Clear()
 {
     this.connection = null;
     this.peer       = null;
     this.type       = (Message.Type) 0;
 }
예제 #7
0
 public NovaProvider(NetworkPeer network)
     : base(network)
 {
     ServerMachine = new Machine();
 }