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;
- namespace ssh_pro_checker
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void chucnang_Click(object sender, EventArgs e)
- {
- if (chucnang.SelectedIndexChanged == 0)
- {
- Loc_ssh_loi();
- }
- }
- public void Loc_ssh_loi()
- {
- string[] danh_sach_nhap_vao = sshnhap.Text.Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
- for (int i = 0; i < danh_sach_nhap_vao.Length; i++)
- {
- //MessageBox.Show(" Đã thực hiện xong");
- string ssh = danh_sach_nhap_vao[i];
- if (string.IsNullOrEmpty(ssh) == false)
- {
- string[] ssh_nhap_vao = ssh.Split('|');
- if (ssh_nhap_vao.Length >3)
- {
- sshra.Text += ssh+Environment.NewLine;
- }
- }
- }
- }
- private void tacvu_SelectedIndexChanged(object sender, EventArgs e)
- {
- //if (tacvu.SelectedIndex == 0)
- //{
- // Loc_ssh_loi();
- //}
- //else if (tacvu.SelectedIndex == 1)
- //{
- // MessageBox.Show(" Lọc bỏ các ssh trùng( cả ip, user, pass)");
- //}
- //else if (tacvu.SelectedIndex == 2)
- //{
- // MessageBox.Show("Lọc bỏ các ssh trùng ip");
- //}
- //else if (tacvu.SelectedIndex == 3)
- //{
- // MessageBox.Show("Check info ip 1 thread");
- //}
- //else if (tacvu.SelectedIndex == 4)
- //{
- // MessageBox.Show("Check ssh live/died 1 thread");
- //}
- //else if (tacvu.SelectedIndex == 4)
- //{
- // MessageBox.Show("Check ssh live/died 1 thread");
- //}
- //else if (tacvu.SelectedIndex == 5)
- //{
- // MessageBox.Show("Xuất ssh ra file txt");
- //}
- }
- private void button1_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment