⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.h

📁 SQL密码探测VC++ NET版,大家可以测试一下
💻 H
📖 第 1 页 / 共 2 页
字号:
#pragma once

#pragma comment(lib,"winmm.lib")
#include "多线程.h"
namespace SQL密码探测NET版 {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Data::SqlClient;
	using namespace System::Threading;
		using namespace System::IO; 
	using namespace System::IO::IsolatedStorage;
	using namespace System::Text;
	using namespace System::Text::RegularExpressions;

	/// <summary>
	/// Form1 摘要
	///
	/// 警告: 如果更改此类的名称,则需要更改
	///          与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
	///          “资源文件名”属性。否则,
	///          设计器将不能与此窗体的关联
	///          本地化资源正确交互。
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: 在此处添加构造函数代码
			Form1::CheckForIllegalCrossThreadCalls = false;// 设置为FLASE 
			//
		}
  ref class State
   {
   public:
      String^ 密码;
	  String^ 用户名;
	  String^ IP;
      AutoResetEvent^ autoEvent;
      State(  String^ 用户名, String^ 密码,String^ IP, AutoResetEvent^ autoEvent )
      {
          this->用户名 = 用户名;
		  this->密码 = 密码;
         this->IP = IP;
		 this->autoEvent = autoEvent;
      }

   };
	protected:
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Button^  开始;
	protected: 
	private: System::Windows::Forms::TextBox^  目标IP;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::Label^  时间;
	private: System::Windows::Forms::ListBox^  listBox1;
	private: System::Windows::Forms::GroupBox^  groupBox1;
	private: System::Windows::Forms::Button^  加入IP列表;
	private: System::Windows::Forms::OpenFileDialog^  openFileDialog1;
	private: System::Windows::Forms::TextBox^  用户;
	private: System::Windows::Forms::Label^  label2;

	private: System::Windows::Forms::GroupBox^  groupBox2;
	private: System::Windows::Forms::ListView^  listView1;
	private: System::Windows::Forms::ColumnHeader^  columnHeader1;
	private: System::Windows::Forms::ColumnHeader^  columnHeader3;
	private: System::Windows::Forms::ColumnHeader^  columnHeader4;
	private: System::Windows::Forms::Button^  加入字典;
	private: System::Windows::Forms::Label^  字典路径;
	private: System::Windows::Forms::OpenFileDialog^  openFileDialog2;
	private: System::Windows::Forms::ProgressBar^  progressBar1;
	private: System::Windows::Forms::NumericUpDown^  numericUpDown1;
	private: System::Windows::Forms::Label^  label3;
	private: System::Windows::Forms::GroupBox^  groupBox3;
	private: System::Windows::Forms::ListBox^  listBox2;
	private: System::Windows::Forms::Button^  加入用户列表;
	private: System::Windows::Forms::OpenFileDialog^  openFileDialog3;
	private: System::Windows::Forms::GroupBox^  groupBox4;
	private: System::Windows::Forms::CheckBox^  checkBox1;
	private: System::Windows::Forms::TextBox^  超时;
	private: System::Windows::Forms::Label^  label4;

	private:
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// 设计器支持所需的方法 - 不要
		/// 使用代码编辑器修改此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->开始 = (gcnew System::Windows::Forms::Button());
			this->目标IP = (gcnew System::Windows::Forms::TextBox());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->时间 = (gcnew System::Windows::Forms::Label());
			this->listBox1 = (gcnew System::Windows::Forms::ListBox());
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
			this->加入IP列表 = (gcnew System::Windows::Forms::Button());
			this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
			this->用户 = (gcnew System::Windows::Forms::TextBox());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
			this->listView1 = (gcnew System::Windows::Forms::ListView());
			this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
			this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());
			this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());
			this->加入字典 = (gcnew System::Windows::Forms::Button());
			this->字典路径 = (gcnew System::Windows::Forms::Label());
			this->openFileDialog2 = (gcnew System::Windows::Forms::OpenFileDialog());
			this->progressBar1 = (gcnew System::Windows::Forms::ProgressBar());
			this->numericUpDown1 = (gcnew System::Windows::Forms::NumericUpDown());
			this->label3 = (gcnew System::Windows::Forms::Label());
			this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
			this->listBox2 = (gcnew System::Windows::Forms::ListBox());
			this->加入用户列表 = (gcnew System::Windows::Forms::Button());
			this->openFileDialog3 = (gcnew System::Windows::Forms::OpenFileDialog());
			this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
			this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
			this->超时 = (gcnew System::Windows::Forms::TextBox());
			this->label4 = (gcnew System::Windows::Forms::Label());
			this->groupBox1->SuspendLayout();
			this->groupBox2->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->numericUpDown1))->BeginInit();
			this->groupBox3->SuspendLayout();
			this->groupBox4->SuspendLayout();
			this->SuspendLayout();
			// 
			// 开始
			// 
			this->开始->Enabled = false;
			this->开始->Location = System::Drawing::Point(13, 274);
			this->开始->Name = L"开始";
			this->开始->Size = System::Drawing::Size(43, 23);
			this->开始->TabIndex = 0;
			this->开始->Text = L"开始";
			this->开始->UseVisualStyleBackColor = true;
			this->开始->Click += gcnew System::EventHandler(this, &Form1::开始_Click);
			// 
			// 目标IP
			// 
			this->目标IP->Location = System::Drawing::Point(59, 22);
			this->目标IP->Name = L"目标IP";
			this->目标IP->Size = System::Drawing::Size(90, 21);
			this->目标IP->TabIndex = 1;
			this->目标IP->Text = L"192.168.1.9";
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(6, 25);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(47, 12);
			this->label1->TabIndex = 2;
			this->label1->Text = L"目标IP:";
			// 
			// 时间
			// 
			this->时间->AutoSize = true;
			this->时间->ForeColor = System::Drawing::Color::Red;
			this->时间->Location = System::Drawing::Point(155, 86);
			this->时间->Name = L"时间";
			this->时间->Size = System::Drawing::Size(35, 12);
			this->时间->TabIndex = 3;
			this->时间->Text = L"时间:";
			// 
			// listBox1
			// 
			this->listBox1->FormattingEnabled = true;
			this->listBox1->ItemHeight = 12;
			this->listBox1->Location = System::Drawing::Point(6, 15);
			this->listBox1->Name = L"listBox1";
			this->listBox1->Size = System::Drawing::Size(109, 196);
			this->listBox1->TabIndex = 4;
			// 
			// groupBox1
			// 
			this->groupBox1->Controls->Add(this->listBox1);
			this->groupBox1->Location = System::Drawing::Point(274, 15);
			this->groupBox1->Name = L"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(122, 222);
			this->groupBox1->TabIndex = 5;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"IP列表";
			// 
			// 加入IP列表
			// 
			this->加入IP列表->Location = System::Drawing::Point(388, 274);
			this->加入IP列表->Name = L"加入IP列表";
			this->加入IP列表->Size = System::Drawing::Size(50, 23);
			this->加入IP列表->TabIndex = 6;
			this->加入IP列表->Text = L"IP列表";
			this->加入IP列表->UseVisualStyleBackColor = true;
			this->加入IP列表->Click += gcnew System::EventHandler(this, &Form1::加入IP列表_Click);
			// 
			// openFileDialog1
			// 
			this->openFileDialog1->FileName = L"openFileDialog1";
			// 
			// 用户
			// 
			this->用户->Location = System::Drawing::Point(196, 22);
			this->用户->Name = L"用户";
			this->用户->Size = System::Drawing::Size(54, 21);
			this->用户->TabIndex = 7;
			this->用户->Text = L"sa";
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(155, 25);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(35, 12);
			this->label2->TabIndex = 8;
			this->label2->Text = L"用户:";
			// 
			// groupBox2
			// 
			this->groupBox2->Controls->Add(this->listView1);
			this->groupBox2->Location = System::Drawing::Point(13, 125);
			this->groupBox2->Name = L"groupBox2";
			this->groupBox2->Size = System::Drawing::Size(261, 112);
			this->groupBox2->TabIndex = 10;
			this->groupBox2->TabStop = false;
			this->groupBox2->Text = L"搜索结果";
			// 
			// listView1
			// 
			this->listView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(3) {this->columnHeader1, this->columnHeader3, 
				this->columnHeader4});
			this->listView1->FullRowSelect = true;
			this->listView1->GridLines = true;
			this->listView1->Location = System::Drawing::Point(6, 16);
			this->listView1->Name = L"listView1";
			this->listView1->Size = System::Drawing::Size(249, 96);
			this->listView1->TabIndex = 2;
			this->listView1->UseCompatibleStateImageBehavior = false;
			this->listView1->View = System::Windows::Forms::View::Details;
			// 
			// columnHeader1
			// 
			this->columnHeader1->Text = L"IP地址";
			this->columnHeader1->Width = 85;
			// 
			// columnHeader3
			// 
			this->columnHeader3->Text = L"用户名";
			this->columnHeader3->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
			this->columnHeader3->Width = 75;
			// 
			// columnHeader4
			// 
			this->columnHeader4->Text = L"密码";
			this->columnHeader4->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
			this->columnHeader4->Width = 101;
			// 
			// 加入字典
			// 
			this->加入字典->Location = System::Drawing::Point(12, 243);
			this->加入字典->Name = L"加入字典";
			this->加入字典->Size = System::Drawing::Size(44, 23);
			this->加入字典->TabIndex = 11;
			this->加入字典->Text = L"字典";
			this->加入字典->UseVisualStyleBackColor = true;
			this->加入字典->Click += gcnew System::EventHandler(this, &Form1::加入字典_Click);
			// 
			// 字典路径
			// 
			this->字典路径->AutoSize = true;
			this->字典路径->Location = System::Drawing::Point(62, 248);
			this->字典路径->Name = L"字典路径";
			this->字典路径->Size = System::Drawing::Size(0, 12);
			this->字典路径->TabIndex = 12;
			// 
			// openFileDialog2
			// 
			this->openFileDialog2->FileName = L"openFileDialog2";
			// 
			// progressBar1
			// 
			this->progressBar1->Location = System::Drawing::Point(64, 274);
			this->progressBar1->Name = L"progressBar1";
			this->progressBar1->Size = System::Drawing::Size(318, 23);
			this->progressBar1->TabIndex = 13;
			// 
			// numericUpDown1
			// 
			this->numericUpDown1->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {10, 0, 0, 0});
			this->numericUpDown1->Location = System::Drawing::Point(196, 49);
			this->numericUpDown1->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10, 0, 0, 0});
			this->numericUpDown1->Name = L"numericUpDown1";
			this->numericUpDown1->Size = System::Drawing::Size(54, 21);
			this->numericUpDown1->TabIndex = 14;
			this->numericUpDown1->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {10, 0, 0, 0});
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Location = System::Drawing::Point(155, 51);
			this->label3->Name = L"label3";
			this->label3->Size = System::Drawing::Size(35, 12);
			this->label3->TabIndex = 15;
			this->label3->Text = L"延时:";
			// 
			// groupBox3
			// 
			this->groupBox3->Controls->Add(this->listBox2);
			this->groupBox3->Location = System::Drawing::Point(395, 15);
			this->groupBox3->Name = L"groupBox3";
			this->groupBox3->Size = System::Drawing::Size(122, 222);
			this->groupBox3->TabIndex = 16;
			this->groupBox3->TabStop = false;
			this->groupBox3->Text = L"用户列表";
			// 
			// listBox2
			// 
			this->listBox2->FormattingEnabled = true;
			this->listBox2->ItemHeight = 12;
			this->listBox2->Location = System::Drawing::Point(6, 15);
			this->listBox2->Name = L"listBox2";
			this->listBox2->Size = System::Drawing::Size(109, 196);
			this->listBox2->TabIndex = 4;
			// 
			// 加入用户列表
			// 
			this->加入用户列表->Location = System::Drawing::Point(444, 274);
			this->加入用户列表->Name = L"加入用户列表";
			this->加入用户列表->Size = System::Drawing::Size(66, 23);
			this->加入用户列表->TabIndex = 17;
			this->加入用户列表->Text = L"用户列表";
			this->加入用户列表->UseVisualStyleBackColor = true;
			this->加入用户列表->Click += gcnew System::EventHandler(this, &Form1::加入用户列表_Click);
			// 
			// openFileDialog3
			// 
			this->openFileDialog3->FileName = L"openFileDialog3";
			// 
			// groupBox4
			// 
			this->groupBox4->Controls->Add(this->超时);
			this->groupBox4->Controls->Add(this->label4);
			this->groupBox4->Controls->Add(this->checkBox1);
			this->groupBox4->Controls->Add(this->label1);
			this->groupBox4->Controls->Add(this->目标IP);
			this->groupBox4->Controls->Add(this->用户);
			this->groupBox4->Controls->Add(this->label3);
			this->groupBox4->Controls->Add(this->numericUpDown1);
			this->groupBox4->Controls->Add(this->label2);
			this->groupBox4->Controls->Add(this->时间);
			this->groupBox4->Location = System::Drawing::Point(12, 15);
			this->groupBox4->Name = L"groupBox4";
			this->groupBox4->Size = System::Drawing::Size(262, 104);
			this->groupBox4->TabIndex = 18;
			this->groupBox4->TabStop = false;
			this->groupBox4->Text = L"基本设置";
			// 
			// checkBox1
			// 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -