diff --git a/.gitignore b/.gitignore index c70a949..d877771 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ build* - +debug .vs \ No newline at end of file diff --git a/ip_sacaner/ip_sacaner.pro.user b/ip_sacaner/ip_sacaner.pro.user index b3dbfac..2cdc3c4 100644 --- a/ip_sacaner/ip_sacaner.pro.user +++ b/ip_sacaner/ip_sacaner.pro.user @@ -1,14 +1,14 @@ - + EnvironmentId - {6abde24b-4ceb-4889-a962-45c24ecb0df8} + {948b996b-b06e-44d3-a8b0-300fbbde1481} ProjectExplorer.Project.ActiveTarget - 0 + 0 ProjectExplorer.Project.EditorSettings @@ -28,7 +28,7 @@ QmlJSGlobal - 2 + 2 UTF-8 false 4 @@ -79,7 +79,7 @@ true true Builtin.DefaultTidyAndClazy - 2 + 8 @@ -91,16 +91,16 @@ ProjectExplorer.Project.Target.0 Desktop - Desktop Qt 5.12.12 MinGW 64-bit - Desktop Qt 5.12.12 MinGW 64-bit - qt.qt5.51212.win64_mingw73_kit - 0 - 0 - 0 + Desktop Qt 6.2.2 MSVC2019 64bit + Desktop Qt 6.2.2 MSVC2019 64bit + qt.qt6.622.win64_msvc2019_64_kit + 1 + 0 + 0 0 - C:\Users\wuwen\Desktop\tcp_ip_scan\build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Debug - C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Debug + C:\Users\wuwen\Desktop\tcp_ip_scan\build-C:UserswuwenDesktopu0009cp_ip_scanip_sacanerip_sacaner-Desktop_Qt_6_2_2_MSVC2019_64bit-Profile + C:/Users/wuwen/Desktop/tcp_ip_scan/build-C:UserswuwenDesktopu0009cp_ip_scanip_sacanerip_sacaner-Desktop_Qt_6_2_2_MSVC2019_64bit-Profile true @@ -112,7 +112,7 @@ true Qt4ProjectManager.MakeStep - 2 + 2 Build Build ProjectExplorer.BuildSteps.Build @@ -123,85 +123,7 @@ Qt4ProjectManager.MakeStep clean - 1 - Clean - Clean - ProjectExplorer.BuildSteps.Clean - - 2 - false - - - Debug - Qt4ProjectManager.Qt4BuildConfiguration - 2 - - - C:\Users\wuwen\Desktop\tcp_ip_scan\build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Release - C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Release - - - true - QtProjectManager.QMakeBuildStep - false - - - - true - Qt4ProjectManager.MakeStep - - 2 - Build - Build - ProjectExplorer.BuildSteps.Build - - - - true - Qt4ProjectManager.MakeStep - clean - - 1 - Clean - Clean - ProjectExplorer.BuildSteps.Clean - - 2 - false - - - Release - Qt4ProjectManager.Qt4BuildConfiguration - 0 - 0 - - - 0 - C:\Users\wuwen\Desktop\tcp_ip_scan\build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Profile - C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Profile - - - true - QtProjectManager.QMakeBuildStep - false - - - - true - Qt4ProjectManager.MakeStep - - 2 - Build - Build - ProjectExplorer.BuildSteps.Build - - - - true - Qt4ProjectManager.MakeStep - clean - - 1 + 1 Clean Clean ProjectExplorer.BuildSteps.Clean @@ -209,6 +131,7 @@ 2 false + false Profile Qt4ProjectManager.Qt4BuildConfiguration @@ -216,10 +139,50 @@ 0 0 - 3 + + 0 + C:\Users\wuwen\Desktop\tcp_ip_scan\build-ip_sacaner-Desktop_Qt_6_2_2_MSVC2019_64bit-1 + C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_6_2_2_MSVC2019_64bit-1 + + + true + QtProjectManager.QMakeBuildStep + false + + + + true + Qt4ProjectManager.MakeStep + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + clean + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + false + + 1 + Qt4ProjectManager.Qt4BuildConfiguration + 2 + + 2 - 0 + 0 Deploy Deploy ProjectExplorer.BuildSteps.Deploy @@ -229,7 +192,7 @@ false ProjectExplorer.DefaultDeployConfiguration - 1 + 1 true true @@ -244,14 +207,14 @@ true false true - C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Debug + C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_6_2_2_MSVC2019_64bit-1 - 1 + 1 ProjectExplorer.Project.TargetCount - 1 + 1 ProjectExplorer.Project.Updater.FileVersion diff --git a/ip_sacaner/ip_sacaner.pro.user.6abde24 b/ip_sacaner/ip_sacaner.pro.user.6abde24 new file mode 100644 index 0000000..b3dbfac --- /dev/null +++ b/ip_sacaner/ip_sacaner.pro.user.6abde24 @@ -0,0 +1,264 @@ + + + + + + EnvironmentId + {6abde24b-4ceb-4889-a962-45c24ecb0df8} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + false + true + false + 0 + true + true + 0 + 8 + true + false + 1 + true + true + true + *.md, *.MD, Makefile + false + true + + + + ProjectExplorer.Project.PluginSettings + + + true + false + true + true + true + true + + + 0 + true + + -fno-delayed-template-parsing + + true + Builtin.BuildSystem + + true + true + Builtin.DefaultTidyAndClazy + 2 + + + + true + + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop Qt 5.12.12 MinGW 64-bit + Desktop Qt 5.12.12 MinGW 64-bit + qt.qt5.51212.win64_mingw73_kit + 0 + 0 + 0 + + 0 + C:\Users\wuwen\Desktop\tcp_ip_scan\build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Debug + C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Debug + + + true + QtProjectManager.QMakeBuildStep + false + + + + true + Qt4ProjectManager.MakeStep + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + clean + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + + + C:\Users\wuwen\Desktop\tcp_ip_scan\build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Release + C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Release + + + true + QtProjectManager.QMakeBuildStep + false + + + + true + Qt4ProjectManager.MakeStep + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + clean + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + 0 + + + 0 + C:\Users\wuwen\Desktop\tcp_ip_scan\build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Profile + C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Profile + + + true + QtProjectManager.QMakeBuildStep + false + + + + true + Qt4ProjectManager.MakeStep + + 2 + Build + Build + ProjectExplorer.BuildSteps.Build + + + + true + Qt4ProjectManager.MakeStep + clean + + 1 + Clean + Clean + ProjectExplorer.BuildSteps.Clean + + 2 + false + + + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + 0 + 0 + + 3 + + + 0 + Deploy + Deploy + ProjectExplorer.BuildSteps.Deploy + + 1 + + false + ProjectExplorer.DefaultDeployConfiguration + + 1 + + true + true + true + + 2 + + Qt4ProjectManager.Qt4RunConfiguration:C:/Users/wuwen/Desktop/tcp_ip_scan/ip_sacaner/ip_sacaner.pro + C:/Users/wuwen/Desktop/tcp_ip_scan/ip_sacaner/ip_sacaner.pro + false + true + true + false + true + C:/Users/wuwen/Desktop/tcp_ip_scan/build-ip_sacaner-Desktop_Qt_5_12_12_MinGW_64_bit-Debug + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 22 + + + Version + 22 + + diff --git a/ip_sacaner/ui_widget.h b/ip_sacaner/ui_widget.h new file mode 100644 index 0000000..44e7bab --- /dev/null +++ b/ip_sacaner/ui_widget.h @@ -0,0 +1,126 @@ +/******************************************************************************** +** Form generated from reading UI file 'widget.ui' +** +** Created by: Qt User Interface Compiler version 6.2.2 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_WIDGET_H +#define UI_WIDGET_H + +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_Widget +{ +public: + QTextEdit *port_list; + QLabel *label_3; + QPushButton *stard_scan; + QSpinBox *threads; + QLabel *label_4; + QLabel *label_5; + QPushButton *pushButton; + QTextEdit *IP_list; + QLabel *label; + QTextEdit *outputlist; + QLabel *label_2; + QSpinBox *timeout; + QProgressBar *type_bar; + + void setupUi(QWidget *Widget) + { + if (Widget->objectName().isEmpty()) + Widget->setObjectName(QString::fromUtf8("Widget")); + Widget->resize(600, 500); + Widget->setMinimumSize(QSize(600, 500)); + Widget->setMaximumSize(QSize(600, 500)); + port_list = new QTextEdit(Widget); + port_list->setObjectName(QString::fromUtf8("port_list")); + port_list->setGeometry(QRect(500, 100, 91, 111)); + label_3 = new QLabel(Widget); + label_3->setObjectName(QString::fromUtf8("label_3")); + label_3->setGeometry(QRect(510, 30, 71, 61)); + stard_scan = new QPushButton(Widget); + stard_scan->setObjectName(QString::fromUtf8("stard_scan")); + stard_scan->setGeometry(QRect(420, 220, 171, 41)); + threads = new QSpinBox(Widget); + threads->setObjectName(QString::fromUtf8("threads")); + threads->setGeometry(QRect(350, 230, 61, 22)); + threads->setMinimum(1); + threads->setMaximum(999); + threads->setValue(10); + label_4 = new QLabel(Widget); + label_4->setObjectName(QString::fromUtf8("label_4")); + label_4->setGeometry(QRect(320, 230, 31, 16)); + label_5 = new QLabel(Widget); + label_5->setObjectName(QString::fromUtf8("label_5")); + label_5->setGeometry(QRect(10, 230, 53, 16)); + pushButton = new QPushButton(Widget); + pushButton->setObjectName(QString::fromUtf8("pushButton")); + pushButton->setGeometry(QRect(70, 230, 91, 24)); + IP_list = new QTextEdit(Widget); + IP_list->setObjectName(QString::fromUtf8("IP_list")); + IP_list->setGeometry(QRect(10, 100, 471, 111)); + label = new QLabel(Widget); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(10, 20, 141, 71)); + outputlist = new QTextEdit(Widget); + outputlist->setObjectName(QString::fromUtf8("outputlist")); + outputlist->setGeometry(QRect(10, 300, 581, 191)); + outputlist->setReadOnly(true); + label_2 = new QLabel(Widget); + label_2->setObjectName(QString::fromUtf8("label_2")); + label_2->setGeometry(QRect(200, 230, 41, 16)); + timeout = new QSpinBox(Widget); + timeout->setObjectName(QString::fromUtf8("timeout")); + timeout->setGeometry(QRect(250, 230, 61, 22)); + timeout->setMinimum(1); + timeout->setMaximum(1000); + timeout->setValue(100); + type_bar = new QProgressBar(Widget); + type_bar->setObjectName(QString::fromUtf8("type_bar")); + type_bar->setGeometry(QRect(10, 270, 581, 23)); + type_bar->setValue(0); + + retranslateUi(Widget); + + QMetaObject::connectSlotsByName(Widget); + } // setupUi + + void retranslateUi(QWidget *Widget) + { + Widget->setWindowTitle(QCoreApplication::translate("Widget", "Widget", nullptr)); + label_3->setText(QCoreApplication::translate("Widget", "\347\253\257\345\217\243\350\214\203\345\233\264\n" +"80\n" +"443\n" +"3000-65535", nullptr)); + stard_scan->setText(QCoreApplication::translate("Widget", "\345\274\200\345\247\213\346\211\253\346\217\217", nullptr)); + label_4->setText(QCoreApplication::translate("Widget", "\347\272\277\347\250\213", nullptr)); + label_5->setText(QCoreApplication::translate("Widget", "\346\211\253\346\217\217\347\273\223\346\236\234", nullptr)); + pushButton->setText(QCoreApplication::translate("Widget", "\344\277\235\345\255\230\346\211\253\346\217\217\347\273\223\346\236\234", nullptr)); + label->setText(QCoreApplication::translate("Widget", "IP\350\214\203\345\233\264\n" +"127.0.0.1\n" +"0.0.0.0-255.255.255.255\n" +"domain.com", nullptr)); + label_2->setText(QCoreApplication::translate("Widget", "\350\266\205\346\227\266ms", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class Widget: public Ui_Widget {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_WIDGET_H