修了下外观

Signed-off-by: fong <wuwenfengmi@outlook.com>
This commit is contained in:
fong
2024-01-31 10:50:48 +08:00
parent c07215dd16
commit 0b85c3f710
7 changed files with 197 additions and 114 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

+3
View File
@@ -1,5 +1,8 @@
<RCC> <RCC>
<qresource prefix="/new/prefix1"> <qresource prefix="/new/prefix1">
<file>logo.ico</file> <file>logo.ico</file>
<file>gitblt-favicon.png</file>
<file>github-mark.png</file>
<file>favicon.ico</file>
</qresource> </qresource>
</RCC> </RCC>
+18 -2
View File
@@ -76,8 +76,9 @@ Widget::Widget(QWidget *parent)
ui->setupUi(this); ui->setupUi(this);
ui->outputlist->setReadOnly(true); ui->outputlist->setReadOnly(true);
ui->stard_scan->setText("start scan"); //ui->stard_scan->setText("start scan");
ui->IP_list->setPlaceholderText("例子:\n127.0.0.1 - 单IP\n192.168.0.0/24 - 掩码IP段\n0.0.0.0-255.255.255.255 - IP段\ndomain.com - 单域名");
ui->port_list->setPlaceholderText("例子:\n22 - 单端口\n80;443 - 多个不连续端口\n3000-65535 - 连续的端口范围");
connect(ui->pushButton_20, &QPushButton::pressed, [=]() connect(ui->pushButton_20, &QPushButton::pressed, [=]()
@@ -175,6 +176,21 @@ Widget::Widget(QWidget *parent)
}); });
connect(ui->blog_button, &QPushButton::pressed, [=]()
{
QDesktopServices::openUrl(QUrl(QString("https://wnfed.com/").toLatin1()));
});
connect(ui->github_button, &QPushButton::pressed, [=]()
{
QDesktopServices::openUrl(QUrl(QString("https://github.com/wuwenfengmi1998/tcp_ip_scan").toLatin1()));
});
connect(ui->gitlab_button, &QPushButton::pressed, [=]()
{
QDesktopServices::openUrl(QUrl(QString("https://git.lmve.net/kevin/tcp_ip_scan").toLatin1()));
});
connect(ui->pushButton_2, &QPushButton::pressed, [=]() connect(ui->pushButton_2, &QPushButton::pressed, [=]()
{ {
+1
View File
@@ -11,6 +11,7 @@
#include <QThread> #include <QThread>
#include <QFileDialog> #include <QFileDialog>
#include <QDateTime> #include <QDateTime>
#include <qdesktopservices.h>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Ui { class Widget; } namespace Ui { class Widget; }
QT_END_NAMESPACE QT_END_NAMESPACE
+175 -112
View File
@@ -33,24 +33,21 @@
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>510</x> <x>400</x>
<y>30</y> <y>10</y>
<width>71</width> <width>71</width>
<height>61</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string>端口范围 <string>端口</string>
80
443
3000-65535</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="stard_scan"> <widget class="QPushButton" name="stard_scan">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>690</x> <x>690</x>
<y>220</y> <y>150</y>
<width>91</width> <width>91</width>
<height>41</height> <height>41</height>
</rect> </rect>
@@ -73,9 +70,9 @@
<widget class="QSpinBox" name="threads"> <widget class="QSpinBox" name="threads">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>240</x> <x>170</x>
<y>240</y> <y>180</y>
<width>61</width> <width>51</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
@@ -92,10 +89,10 @@
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>240</x> <x>170</x>
<y>220</y> <y>150</y>
<width>31</width> <width>41</width>
<height>16</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
@@ -105,8 +102,8 @@
<widget class="QPushButton" name="saveoutputbutton"> <widget class="QPushButton" name="saveoutputbutton">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>20</x>
<y>240</y> <y>180</y>
<width>81</width> <width>81</width>
<height>24</height> <height>24</height>
</rect> </rect>
@@ -118,27 +115,23 @@
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>20</x>
<y>20</y> <y>10</y>
<width>171</width> <width>31</width>
<height>71</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
<string>IP范围 总数不能超过2147483647 <string>IP</string>
127.0.0.1
192.168.0.0/24
0.0.0.0-255.255.255.255
domain.com</string>
</property> </property>
</widget> </widget>
<widget class="QTextEdit" name="outputlist"> <widget class="QTextEdit" name="outputlist">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>270</y> <y>210</y>
<width>771</width> <width>771</width>
<height>221</height> <height>251</height>
</rect> </rect>
</property> </property>
<property name="readOnly"> <property name="readOnly">
@@ -148,10 +141,10 @@ domain.com</string>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>170</x> <x>110</x>
<y>220</y> <y>150</y>
<width>41</width> <width>41</width>
<height>16</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
@@ -161,9 +154,9 @@ domain.com</string>
<widget class="QSpinBox" name="timeout"> <widget class="QSpinBox" name="timeout">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>170</x> <x>110</x>
<y>240</y> <y>180</y>
<width>61</width> <width>51</width>
<height>22</height> <height>22</height>
</rect> </rect>
</property> </property>
@@ -180,9 +173,9 @@ domain.com</string>
<widget class="QPlainTextEdit" name="IP_list"> <widget class="QPlainTextEdit" name="IP_list">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>20</x>
<y>100</y> <y>30</y>
<width>301</width> <width>211</width>
<height>111</height> <height>111</height>
</rect> </rect>
</property> </property>
@@ -190,18 +183,21 @@ domain.com</string>
<widget class="QPlainTextEdit" name="port_list"> <widget class="QPlainTextEdit" name="port_list">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>483</x> <x>400</x>
<y>100</y> <y>30</y>
<width>111</width> <width>191</width>
<height>111</height> <height>111</height>
</rect> </rect>
</property> </property>
<property name="placeholderText">
<string/>
</property>
</widget> </widget>
<widget class="QPushButton" name="pushButton_2"> <widget class="QPushButton" name="pushButton_2">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>320</x> <x>240</x>
<y>100</y> <y>30</y>
<width>61</width> <width>61</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -213,8 +209,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_3"> <widget class="QPushButton" name="pushButton_3">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>320</x> <x>240</x>
<y>130</y> <y>60</y>
<width>61</width> <width>61</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -226,8 +222,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_4"> <widget class="QPushButton" name="pushButton_4">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>320</x> <x>240</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -239,8 +235,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_5"> <widget class="QPushButton" name="pushButton_5">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>350</x> <x>270</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -252,8 +248,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_6"> <widget class="QPushButton" name="pushButton_6">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>320</x> <x>240</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -265,8 +261,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_7"> <widget class="QPushButton" name="pushButton_7">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>350</x> <x>270</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -278,8 +274,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_8"> <widget class="QPushButton" name="pushButton_8">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>380</x> <x>300</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -291,8 +287,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_9"> <widget class="QPushButton" name="pushButton_9">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>440</x> <x>360</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -304,8 +300,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_10"> <widget class="QPushButton" name="pushButton_10">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>410</x> <x>330</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -317,8 +313,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_11"> <widget class="QPushButton" name="pushButton_11">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>380</x> <x>300</x>
<y>100</y> <y>30</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -330,8 +326,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_12"> <widget class="QPushButton" name="pushButton_12">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>410</x> <x>330</x>
<y>100</y> <y>30</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -343,8 +339,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_13"> <widget class="QPushButton" name="pushButton_13">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>440</x> <x>360</x>
<y>100</y> <y>30</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -356,8 +352,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_14"> <widget class="QPushButton" name="pushButton_14">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>380</x> <x>300</x>
<y>130</y> <y>60</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -369,8 +365,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_15"> <widget class="QPushButton" name="pushButton_15">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>410</x> <x>330</x>
<y>130</y> <y>60</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -382,8 +378,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_16"> <widget class="QPushButton" name="pushButton_16">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>440</x> <x>360</x>
<y>130</y> <y>60</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -395,8 +391,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_17"> <widget class="QPushButton" name="pushButton_17">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>380</x> <x>300</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -408,8 +404,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_18"> <widget class="QPushButton" name="pushButton_18">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>410</x> <x>330</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -421,8 +417,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_19"> <widget class="QPushButton" name="pushButton_19">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>440</x> <x>360</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -434,8 +430,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_20"> <widget class="QPushButton" name="pushButton_20">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>380</x> <x>300</x>
<y>220</y> <y>160</y>
<width>91</width> <width>91</width>
<height>41</height> <height>41</height>
</rect> </rect>
@@ -447,8 +443,8 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_21"> <widget class="QPushButton" name="pushButton_21">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>320</x> <x>240</x>
<y>220</y> <y>160</y>
<width>61</width> <width>61</width>
<height>41</height> <height>41</height>
</rect> </rect>
@@ -461,7 +457,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>600</x> <x>600</x>
<y>100</y> <y>30</y>
<width>61</width> <width>61</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -474,8 +470,8 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>600</x> <x>600</x>
<y>130</y> <y>60</y>
<width>41</width> <width>51</width>
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
@@ -487,7 +483,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>620</x> <x>620</x>
<y>160</y> <y>90</y>
<width>21</width> <width>21</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -500,7 +496,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>640</x> <x>640</x>
<y>160</y> <y>90</y>
<width>21</width> <width>21</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -513,7 +509,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>600</x> <x>600</x>
<y>160</y> <y>90</y>
<width>21</width> <width>21</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -525,9 +521,9 @@ domain.com</string>
<widget class="QPushButton" name="pushButton_27"> <widget class="QPushButton" name="pushButton_27">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>640</x> <x>650</x>
<y>130</y> <y>60</y>
<width>51</width> <width>41</width>
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
@@ -539,7 +535,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>660</x> <x>660</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -552,7 +548,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>600</x> <x>600</x>
<y>190</y> <y>120</y>
<width>41</width> <width>41</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -565,7 +561,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>640</x> <x>640</x>
<y>190</y> <y>120</y>
<width>51</width> <width>51</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -577,9 +573,9 @@ domain.com</string>
<widget class="QProgressBar" name="progressBar"> <widget class="QProgressBar" name="progressBar">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>487</x> <x>400</x>
<y>230</y> <y>160</y>
<width>111</width> <width>191</width>
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
@@ -591,7 +587,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>690</x> <x>690</x>
<y>130</y> <y>60</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -604,7 +600,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>750</x> <x>750</x>
<y>130</y> <y>60</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -617,7 +613,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>690</x> <x>690</x>
<y>100</y> <y>30</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -630,7 +626,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>720</x> <x>720</x>
<y>100</y> <y>30</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -643,7 +639,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>720</x> <x>720</x>
<y>130</y> <y>60</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -656,7 +652,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>720</x> <x>720</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -669,7 +665,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>750</x> <x>750</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -682,7 +678,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>690</x> <x>690</x>
<y>160</y> <y>90</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -695,7 +691,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>750</x> <x>750</x>
<y>100</y> <y>30</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -708,7 +704,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>720</x> <x>720</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -721,7 +717,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>750</x> <x>750</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -734,7 +730,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>660</x> <x>660</x>
<y>100</y> <y>30</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -747,7 +743,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>600</x> <x>600</x>
<y>220</y> <y>150</y>
<width>91</width> <width>91</width>
<height>41</height> <height>41</height>
</rect> </rect>
@@ -760,7 +756,7 @@ domain.com</string>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>690</x> <x>690</x>
<y>190</y> <y>120</y>
<width>31</width> <width>31</width>
<height>23</height> <height>23</height>
</rect> </rect>
@@ -772,9 +768,9 @@ domain.com</string>
<widget class="QPushButton" name="clearoutput"> <widget class="QPushButton" name="clearoutput">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>90</x> <x>20</x>
<y>240</y> <y>150</y>
<width>71</width> <width>81</width>
<height>23</height> <height>23</height>
</rect> </rect>
</property> </property>
@@ -782,6 +778,73 @@ domain.com</string>
<string>清空输出</string> <string>清空输出</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>10</x>
<y>470</y>
<width>121</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>V1.5</string>
</property>
</widget>
<widget class="QPushButton" name="github_button">
<property name="geometry">
<rect>
<x>710</x>
<y>470</y>
<width>71</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>GitHub</string>
</property>
<property name="icon">
<iconset>
<normalon>:/new/prefix1/github-mark.png</normalon>
</iconset>
</property>
</widget>
<widget class="QPushButton" name="gitlab_button">
<property name="geometry">
<rect>
<x>630</x>
<y>470</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>GitLab</string>
</property>
<property name="icon">
<iconset>
<normalon>:/new/prefix1/gitblt-favicon.png</normalon>
</iconset>
</property>
</widget>
<widget class="QPushButton" name="blog_button">
<property name="geometry">
<rect>
<x>550</x>
<y>470</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>Blog</string>
</property>
<property name="icon">
<iconset>
<normalon>:/new/prefix1/favicon.ico</normalon>
</iconset>
</property>
</widget>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>