Esempio n. 1
0
 public void run(command cmd, TextBlock processbox)
 {
     processbox.Text = "Trying connect VPN...";
     cmd.go("powershell Add-VpnConnection -Name \"Evans_ChikaVPN\" -ServerAddress \"vpn1.chika.kr\" -TunnelType L2tp -L2tpPsk railgun\n\ny\n");
     Thread.Sleep(3000);
     processbox.Text += "\nTrying login VPN...";
     cmd.go("powershell rasdial Evans_ChikaVPN sunrin1 tsuki");
     processbox.Text += "\nConnecting VPN complete!";
     MessageBox.Show("Connecting VPN complete!");
 }
Esempio n. 2
0
    public void run(command cmd, TextBlock processbox)
    {
        string comm = "";

        string[] a = new string[] { "SvcNC80Cli.exe", "NC80Cli.exe", "rncHost.exe", "NC80Cap.exe", "SvcNC80Cli.exe" };
        for (int i = 0; i < a.Length; i++)
        {
            comm             = "taskkill /F /IM ";
            comm            += a[i];
            processbox.Text += "Killing " + a[i] + "...\n";
            cmd.go(comm);
        }
        MessageBox.Show("Killing Netclass Complete!");
        processbox.Text += "Kill Netclass Complete!\n";
    }