tuan6956

Untitled

Aug 9th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.67 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace ssh_pro_checker
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void Form1_Load(object sender, EventArgs e)
  21.         {
  22.  
  23.         }
  24.  
  25.         private void chucnang_Click(object sender, EventArgs e)
  26.         {
  27.             if (chucnang.SelectedIndexChanged == 0)
  28.             {
  29.                 Loc_ssh_loi();
  30.             }
  31.         }
  32.         public void Loc_ssh_loi()
  33.         {
  34.             string[] danh_sach_nhap_vao = sshnhap.Text.Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
  35.             for (int i = 0; i < danh_sach_nhap_vao.Length; i++)
  36.             {
  37.                 //MessageBox.Show(" Đã thực hiện xong");
  38.                 string ssh = danh_sach_nhap_vao[i];
  39.                 if (string.IsNullOrEmpty(ssh) == false)
  40.                 {
  41.                     string[] ssh_nhap_vao = ssh.Split('|');
  42.                     if (ssh_nhap_vao.Length >3)
  43.                     {
  44.                         sshra.Text += ssh+Environment.NewLine;
  45.                     }
  46.                    
  47.  
  48.                 }
  49.                
  50.                
  51.             }
  52.         }
  53.         private void tacvu_SelectedIndexChanged(object sender, EventArgs e)
  54.         {
  55.             //if (tacvu.SelectedIndex == 0)
  56.             //{
  57.             //    Loc_ssh_loi();
  58.             //}
  59.             //else if (tacvu.SelectedIndex == 1)
  60.             //{
  61.             //    MessageBox.Show(" Lọc bỏ các ssh trùng( cả ip, user, pass)");
  62.             //}
  63.             //else if (tacvu.SelectedIndex == 2)
  64.             //{
  65.             //    MessageBox.Show("Lọc bỏ các ssh trùng ip");
  66.             //}
  67.             //else if (tacvu.SelectedIndex == 3)
  68.             //{
  69.             //    MessageBox.Show("Check info ip 1 thread");
  70.             //}
  71.             //else if (tacvu.SelectedIndex == 4)
  72.             //{
  73.             //    MessageBox.Show("Check ssh live/died 1 thread");
  74.             //}
  75.             //else if (tacvu.SelectedIndex == 4)
  76.             //{
  77.             //    MessageBox.Show("Check ssh live/died 1 thread");
  78.             //}
  79.             //else if (tacvu.SelectedIndex == 5)
  80.             //{
  81.             //    MessageBox.Show("Xuất ssh ra file txt");
  82.             //}
  83.  
  84.         }
  85.  
  86.         private void button1_Click(object sender, EventArgs e)
  87.         {
  88.  
  89.         }
  90.  
  91.        
  92.        
  93.  
  94.        
  95.  
  96.        
  97.     }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment