-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIforsniffer.py
170 lines (164 loc) · 9.5 KB
/
UIforsniffer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UIforsniffer.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1302, 891)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.toolButton = QtWidgets.QToolButton(self.centralwidget)
self.toolButton.setObjectName("toolButton")
self.gridLayout.addWidget(self.toolButton, 0, 0, 1, 1)
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit.setObjectName("lineEdit")
self.gridLayout.addWidget(self.lineEdit, 0, 1, 1, 8)
self.pushButton_filter = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_filter.setObjectName("pushButton_filter")
self.gridLayout.addWidget(self.pushButton_filter, 0, 9, 1, 1)
self.pushButton_find = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_find.setObjectName("pushButton_find")
self.gridLayout.addWidget(self.pushButton_find, 0, 10, 1, 1)
self.comboBox = QtWidgets.QComboBox(self.centralwidget)
self.comboBox.setObjectName("comboBox")
self.gridLayout.addWidget(self.comboBox, 1, 0, 1, 2)
self.pushButton_select = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_select.setObjectName("pushButton_select")
self.gridLayout.addWidget(self.pushButton_select, 1, 2, 1, 1)
self.pushButton_start = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_start.setObjectName("pushButton_start")
self.gridLayout.addWidget(self.pushButton_start, 1, 3, 1, 1)
self.pushButton_stop = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_stop.setObjectName("pushButton_stop")
self.gridLayout.addWidget(self.pushButton_stop, 1, 4, 1, 1)
self.pushButton_restart = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_restart.setObjectName("pushButton_restart")
self.gridLayout.addWidget(self.pushButton_restart, 1, 5, 1, 1)
self.pushButton_follow_stream = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_follow_stream.setObjectName("pushButton_follow_stream")
self.gridLayout.addWidget(self.pushButton_follow_stream, 1, 6, 1, 1)
self.pushButton_save = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_save.setObjectName("pushButton_save")
self.gridLayout.addWidget(self.pushButton_save, 1, 7, 1, 1)
self.pushButton_export = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_export.setObjectName("pushButton_export")
self.gridLayout.addWidget(self.pushButton_export, 1, 8, 1, 1)
self.tableWidget = QtWidgets.QTableWidget(self.centralwidget)
font = QtGui.QFont()
font.setFamily("Ubuntu Mono")
self.tableWidget.setFont(font)
self.tableWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
self.tableWidget.setFrameShadow(QtWidgets.QFrame.Sunken)
self.tableWidget.setMidLineWidth(1)
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tableWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableWidget.setShowGrid(False)
self.tableWidget.setGridStyle(QtCore.Qt.NoPen)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setColumnCount(6)
self.tableWidget.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(3, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(4, item)
item = QtWidgets.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(5, item)
self.tableWidget.horizontalHeader().setCascadingSectionResizes(False)
self.tableWidget.horizontalHeader().setDefaultSectionSize(155)
self.tableWidget.horizontalHeader().setMinimumSectionSize(12)
self.tableWidget.horizontalHeader().setStretchLastSection(True)
self.gridLayout.addWidget(self.tableWidget, 2, 0, 1, 11)
self.treeWidget = QtWidgets.QTreeWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.treeWidget.sizePolicy().hasHeightForWidth())
self.treeWidget.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Ubuntu Mono")
self.treeWidget.setFont(font)
self.treeWidget.setObjectName("treeWidget")
self.gridLayout.addWidget(self.treeWidget, 3, 0, 1, 11)
self.listWidget = QtWidgets.QListWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
self.listWidget.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setFamily("Ubuntu Mono")
self.listWidget.setFont(font)
self.listWidget.setObjectName("listWidget")
self.gridLayout.addWidget(self.listWidget, 4, 0, 1, 11)
self.pushButton_export_ftp = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_export_ftp.setObjectName("pushButton_export_ftp")
self.gridLayout.addWidget(self.pushButton_export_ftp, 1, 9, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1302, 28))
self.menubar.setObjectName("menubar")
self.menu_File = QtWidgets.QMenu(self.menubar)
self.menu_File.setObjectName("menu_File")
self.menu_Edit = QtWidgets.QMenu(self.menubar)
self.menu_Edit.setObjectName("menu_Edit")
self.menu_Help = QtWidgets.QMenu(self.menubar)
self.menu_Help.setObjectName("menu_Help")
self.menu_Tools = QtWidgets.QMenu(self.menubar)
self.menu_Tools.setObjectName("menu_Tools")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.toolBar = QtWidgets.QToolBar(MainWindow)
self.toolBar.setObjectName("toolBar")
MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.menubar.addAction(self.menu_File.menuAction())
self.menubar.addAction(self.menu_Edit.menuAction())
self.menubar.addAction(self.menu_Tools.menuAction())
self.menubar.addAction(self.menu_Help.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.toolButton.setText(_translate("MainWindow", "..."))
self.pushButton_filter.setText(_translate("MainWindow", "Filter"))
self.pushButton_find.setText(_translate("MainWindow", "Find"))
self.pushButton_select.setText(_translate("MainWindow", "Select"))
self.pushButton_start.setText(_translate("MainWindow", "Start"))
self.pushButton_stop.setText(_translate("MainWindow", "Stop"))
self.pushButton_restart.setText(_translate("MainWindow", "Restart"))
self.pushButton_follow_stream.setText(_translate("MainWindow", "Follow Stream"))
self.pushButton_save.setText(_translate("MainWindow", "Save"))
self.pushButton_export.setText(_translate("MainWindow", "Export HTTP File"))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "Time"))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "Destination"))
item = self.tableWidget.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "Source"))
item = self.tableWidget.horizontalHeaderItem(3)
item.setText(_translate("MainWindow", "Protocol"))
item = self.tableWidget.horizontalHeaderItem(4)
item.setText(_translate("MainWindow", "Length"))
item = self.tableWidget.horizontalHeaderItem(5)
item.setText(_translate("MainWindow", "Info"))
self.treeWidget.headerItem().setText(0, _translate("MainWindow", "Detail"))
self.pushButton_export_ftp.setText(_translate("MainWindow", "Export FTP File"))
self.menu_File.setTitle(_translate("MainWindow", "&File"))
self.menu_Edit.setTitle(_translate("MainWindow", "&Edit"))
self.menu_Help.setTitle(_translate("MainWindow", "&Help"))
self.menu_Tools.setTitle(_translate("MainWindow", "&Tools"))
self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))