Exemple #1
0
        void otab_OnRecordChanged(object sender, bool enabled)
        {
            //throw new NotImplementedException();
            OvermindClientTab oct = sender as OvermindClientTab;

            this._captureRecorders[oct.ClientId].Enabled = enabled;
            //this._tabClientPageIndices[
            this.UpdateTerminal(this.textLog, Color.Yellow, String.Format("Recording {0} for [{1}]:{2}; File = '{3}'", (enabled? "Enabled": "Disabled"), oct.ClientId, oct.Text, this._captureRecorders[oct.ClientId].LogFilename));
            this._neuroLog.WriteFormat("OvermindTab Recording", "Status: {0}\nId: [{1}]:{2}\nFile: '{3}'", (enabled ? "Enabled" : "Disabled"), oct.ClientId, oct.Text, this._captureRecorders[oct.ClientId].LogFilename);
        }
Exemple #2
0
        private OvermindClientTab CreateOvermindClientTab(int id, string name, CaptureManager captureModule, ShellManager shellModule)
        {
            OvermindClientTab otab = new OvermindClientTab(id, name, captureModule, shellModule);

            otab.OnRecordChanged     += new OvermindClientTab.ClientTabEventHandler(otab_OnRecordChanged);
            otab.OnDisconnectClicked += new OvermindClientTab.ClientEventHandler(otab_OnDisconnectClicked);
            otab.KeyDown             += new OvermindClientTab.ClientEventHandler(otab_KeyDown);
            otab.KeyPress            += new OvermindClientTab.ClientEventHandler(otab_KeyPress);
            otab.KeyUp            += new OvermindClientTab.ClientEventHandler(otab_KeyUp);
            otab.MouseClick       += new OvermindClientTab.ClientEventHandler(otab_MouseClick);
            otab.MouseDoubleClick += new OvermindClientTab.ClientEventHandler(otab_MouseDoubleClick);
            otab.MouseDown        += new OvermindClientTab.ClientEventHandler(otab_MouseDown);
            otab.MouseMove        += new OvermindClientTab.ClientEventHandler(otab_MouseMove);
            otab.MouseUp          += new OvermindClientTab.ClientEventHandler(otab_MouseUp);
            otab.MouseWheel       += new OvermindClientTab.ClientEventHandler(otab_MouseWheel);

            return(otab);
        }
Exemple #3
0
        void _server_OnAcknowledged(object sender, NetEventArgs e)
        {
            this.Invoke((MethodInvoker) delegate {
                String acCode   = "l*l7k0d3";
                ActionCenter ac = new ActionCenter(acCode);
                ac.SendData    += new ActionCenter.ActionCenterEventHandler(this._actionCenter_SendData);
                ac.CaptureManagerModule.ReceivedCapture += new ActionCenter.CaptureEventHandler(this._actionCenter_ReceivedCapture);
                ac.CaptureManagerModule.ReceivedCursor  += new CaptureManager.CaptureCursorEventHandler(this._actionCenter_ReceivedCursor);
                ac.CaptureManagerModule.DebugEvent      += new ActionCenter.DebugEventHandler(this._actionCenter_DebugEvent);
                ac.ShellManagerModule.OutputReceived    += new ShellManager.ShellManagerEventHandler(this._actionCenter_ReceiveShellOutput);

                this._captureRecorders.Add(e.Packet.Header.Destination, new CaptureRecorder(System.IO.Path.Combine(this._parentRecordDir, String.Format("Client {0}\\ID [{0}]", e.Packet.Header.Destination))));
                ac.ReceiveRawCapture += new ActionCenter.ActionCenterEventHandler(this._actionCenter_ReceiveRawCapture);

                this._actionCenters.Add(e.Packet.Header.Destination, ac);
                OvermindClientTab otab = this.CreateOvermindClientTab(e.Packet.Header.Destination, this._server.GetReceiverName(e.Packet), ac.CaptureManagerModule, ac.ShellManagerModule);

                this._tabClientPageIndices.Add(e.Packet.Header.Destination, otab);
                this.tabControl.TabPages.Add(this._tabClientPageIndices[e.Packet.Header.Destination]);
                this._neuroLog.WriteFormat("Client Acknowledged", "Client Id: {0}\nName: {1}\nActionCenter Code: {2}\nRecording Path{3}\n\nOvermind Tab Created", e.Packet.Header.Destination, this._server.GetReceiverName(e.Packet), acCode, System.IO.Path.Combine(this._parentRecordDir, String.Format("Client {0}\\ID [{0}]", e.Packet.Header.Destination)));
            });
            this.UpdateTerminal(this.textLog, Color.Gold, "[" + this._server.GetReceiverName(e.Packet) + "]: Client Acked");
        }