Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.IO;
- using System.Diagnostics;
- namespace Multi_SSH
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- string server = textBox1.Text;
- string serverPort = textBox2.Text;
- string user = textBox3.Text;
- string pass = textBox4.Text;
- string proxy = textBox5.Text;
- string proxyPort = textBox6.Text;
- string ssh1;
- string ssh5;
- string pfp5;
- string selectedssh="";
- string selectedpf="";
- if (radioButton1.Checked == true)
- selectedssh = "-profile=Bitvise\\PremiumSSH1.bscp -host=" + server + " -Port=" + serverPort + " -username=" + user + " -password=" + pass + " -loginOnStartup -hide=hostkey -hide=trayWRC -hide=traySFTP -hide=trayRDP -hide=trayPopups -hide=trayLog -disableSftplocation -Title=EsTeLeR -proxy=y -proxyType=HTTP -proxyServer=" + proxy + " -proxyPort=" + proxyPort + "\"";
- else if (radioButton2.Checked == true)
- MessageBox.Show("hellow2");
- else if (radioButton3.Checked == true)
- MessageBox.Show("hellow3");
- else if (radioButton4.Checked == true)
- MessageBox.Show("hellow4");
- else
- selectedssh = "-profile=Bitvise\\PremiumSSH5.bscp -host=" + server + " -Port=" + serverPort + " -username=" + user + " -password=" + pass + " -loginOnStartup -hide=hostkey -hide=trayWRC -hide=traySFTP -hide=trayRDP -hide=trayPopups -hide=trayLog -disableSftplocation -Title=EsTeLeR -proxy=y -proxyType=HTTP -proxyServer=" + proxy + " -proxyPort=" + proxyPort + "\"";
- selectedpf = "Proxifier\\Profiles\\PremiumSSH5.ppx silent-load";
- //ssh1 = Application.StartupPath +"\\Bitvise\\Tunnel.exe -profile=Bitvise\\PremiumSSH1.bscp -host=" + server + " -Port=" + serverPort + " -username=" + user + " -password=" + pass + " -loginOnStartup -hide=hostkey -hide=trayWRC -hide=traySFTP -hide=trayRDP -hide=trayPopups -hide=trayLog -disableSftplocation -Title=EsTeLeR -proxy=y -proxyType=HTTP -proxyServer=" + proxy + " -proxyPort=" + proxyPort + " \"";
- //ssh5 = Application.StartupPath + "\\Bitvise\\Tunnel.exe -profile=Bitvise\\PremiumSSH5.bscp -host=" + server + " -Port=" + serverPort + " -username=" + user + " -password=" + pass + " -loginOnStartup -hide=traySFTP -hide=trayRDP -hide=trayPopups -Title=EsTeLeR -proxy=y -proxyType=HTTP -proxyServer=" + proxy + " -proxyPort=" + proxyPort +"\"";
- //pfp5 = Application.StartupPath + "\\Proxifier\\Proxifier.exe Proxifier\\Profiles\\PremiumSSH5.ppx silent-load";
- Process shell = new Process();
- ProcessStartInfo shellinfo = new ProcessStartInfo();
- shellinfo.WindowStyle = ProcessWindowStyle.Hidden;
- shellinfo.FileName = "\\Bitvise\\Tunnel.exe";
- shellinfo.Arguments = selectedssh;
- shell.StartInfo = shellinfo;
- shell.Start();
- Process shellPF = new Process();
- ProcessStartInfo shellinfoPF = new ProcessStartInfo();
- shellinfoPF.WindowStyle = ProcessWindowStyle.Hidden;
- shellinfoPF.FileName = "\\Proxifier\\Proxifier.exe";
- shellinfoPF.Arguments = selectedpf;
- shellPF.StartInfo = shellinfoPF;
- shellPF.Start();
- button1.Enabled = false;
- button2.Enabled = true;
- textBox1.Enabled = false;
- textBox2.Enabled = false;
- textBox3.Enabled = false;
- textBox4.Enabled = false;
- textBox5.Enabled = false;
- }
- private void button2_Click(object sender, EventArgs e)
- {
- /*Shell32.Shell Shell = new Shell32.Shell();
- string T ="taskkill /f /im Tunnel.exe";
- string p = "taskkill /f /im Proxifier.exe";
- Process.Start("cmd /c" & T );
- Process.Start("cmd /c" & p);*/
- button1.Enabled = true;
- button2.Enabled = true;
- textBox1.Enabled = true;
- textBox2.Enabled = true;
- textBox3.Enabled = true;
- textBox4.Enabled = true;
- textBox5.Enabled = true;
- }
- private void label10_Click(object sender, EventArgs e)
- {
- Process.Start("http://facebook.com");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement