Beispiel #1
0
        private void LaunchPuttyProcess()
        {
            this.puttyProcess = new Process();
            this.puttyProcess.StartInfo.FileName = Executables.GetPuttyBinaryPath();

            IGuardedSecurity credentials = this.ResolveFavoriteCredentials();
            string           arguments   = new ArgumentsBuilder(credentials, this.Favorite).Build();

            // security issue: password visible in taskbar
            this.puttyProcess.StartInfo.Arguments   = arguments;
            this.puttyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
            this.puttyProcess.EnableRaisingEvents   = true;
            this.puttyProcess.Exited += this.PuttyProcessOnExited;
            this.puttyProcess.Start();
            this.puttyProcess.WaitForInputIdle();

            IntPtr puttyWindow = this.puttyProcess.MainWindowHandle;

            this.AdjustWindowStyle(puttyWindow);
            Methods.SetParent(puttyWindow, this.Handle);
            this.windowCaptured = true;

            this.ClipPutty();
        }
 private void EditSessinsButton_Click(object sender, EventArgs e)
 {
     Executables.LaunchPutty();
 }
Beispiel #3
0
 private void KeysButton_Click(object sender, System.EventArgs e)
 {
     Executables.LaunchPageant();
 }