资源简介
Windows程序控件检测工具,包含insepct,spy++,py_inspect-master三个,是进行自动化测试必备的检测攻击
代码片段和文件信息
import sys
from pywinauto import backend
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
def main():
app = QApplication(sys.argv)
w = MyWindow()
w.show()
sys.exit(app.exec_())
class MyWindow(QWidget):
def __init__(self *args):
QWidget.__init__(self *args)
self.setFixedSize(930 631)
self.setLocale(QLocale(QLocale.English QLocale.UnitedStates))
self.setWindowtitle(QCoreApplication.translate(“MainWindow“ “PyInspect“))
self.central_widget = QWidget(self)
self.comboBox = QComboBox(self.central_widget)
self.comboBox.setGeometry(QRect(10 10 451 22))
self.comboBox.setMouseTracking(False)
self.comboBox.setMaxVisibleItems(5)
self.comboBox.setobjectName(“comboBox“)
for _backend in backend.registry.backends.keys():
self.comboBox.addItem(_backend)
self.tree_view = QTreeView(self.central_widget)
self.tree_view.setGeometry(QRect(10 40 451 581))
self.tree_view.setColumnWidth(0 150)
self.comboBox.setCurrentText(‘uia‘)
self.__initialize_calc()
self.table_view = QTableView(self.central_widget)
self.table_view.setGeometry(QRect(470 40 451 581))
self.comboBox.activated[str].connect(self.__show_tree)
def __initialize_calc(self _backend=‘uia‘):
self.element_info = backend.registry.backends[_backend].element_info_class()
self.tree_model = MyTreeModel(self.element_info _backend)
self.tree_model.setHeaderData(0 Qt.Horizontal ‘Controls‘)
self.tree_view.setModel(self.tree_model)
self.tree_view.clicked.connect(self.__show_property)
def __show_tree(self text):
backend = text
self.__initialize_calc(backend)
def __show_property(self index=None):
data = index.data()
self.table_model = MyTableModel(self.tree_model.props_dict.get(data) self)
self.table_view.wordWrap()
self.table_view.setModel(self.table_model)
self.table_view.setColumnWidth(1 320)
class MyTreeModel(QStandardItemModel):
def __init__(self element_info backend):
QStandardItemModel.__init__(self)
root_node = self.invisibleRootItem()
self.props_dict = {}
self.backend = backend
self.branch = QStandardItem(self.__node_name(element_info))
self.branch.setEditable(False)
root_node.appendRow(self.branch)
self.__generate_props_dict(element_info)
self.__get_next(element_info self.branch)
def __get_next(self element_info parent):
for child in element_info.children():
self.__generate_props_dict(child)
child_item = QStandardItem(self.__node_name(child))
child_item.setEditable(False)
parent.appendRow(child_item)
self.__get_next(child child_item)
def __node_name(self element_info):
if ‘uia‘ == self.backe
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-02-11 10:09 inspect\
文件 83 2019-01-16 08:35 inspect\Inspect is a tool in Windows SDK.txt
文件 297064 2019-01-16 08:35 inspect\InspectX64.exe
文件 250992 2019-01-16 08:35 inspect\InspectX86.exe
目录 0 2019-02-13 09:43 py_inspect-master\
目录 0 2017-05-08 22:22 py_inspect-master\py_inspect-master\
文件 1045 2017-05-08 22:22 py_inspect-master\py_inspect-master\.gitignore
文件 5363 2017-05-08 22:22 py_inspect-master\py_inspect-master\py_inspect.py
文件 436 2017-05-08 22:22 py_inspect-master\py_inspect-master\README.md
目录 0 2019-02-11 13:29 Spy++\
文件 1047552 2003-03-18 22:12 Spy++\MFC71u.dll
文件 499712 2003-03-18 21:14 Spy++\msvcp71.dll
文件 348160 2003-02-21 04:42 Spy++\msvcr71.dll
文件 3527 2008-11-12 17:04 Spy++\readme.txt
文件 733 2005-07-11 14:51 Spy++\Spy++ Readme.txt
文件 132100 2003-02-09 00:01 Spy++\spyxx.chm
文件 507904 2004-11-24 14:35 Spy++\spyxx.exe
文件 81920 2003-03-18 23:52 Spy++\spyxxhk.dll
相关资源
- inspect.exe
- Odin Inspector Source Code 2.1.4.unitypackage
- Odin - Inspector and Serializer 2.1.4.unitypac
- Chrome调试工具离线包
- Advanced Inspector 2.00a
-
sc
ript Inspector 3 3.0.25 最新版 Unity 内 - ICC Profile Inspector
- Spy++AccEvent+AccExplorer32+Inspect+UISpy五个工
- MapInspect.exe
- Spy++ 32位及64位
- chrome浏览器ng-inspector
- pywinauto说明文档
- pywinauto史前最强文档双份
- 高仿SPY++拖动鼠标获取句柄
- 窗口察看工具spy
- 64位 Spy++
- UISpy+Inspect64
- WebInspect Manual 中文版文档
- ng inspector for angular
- 句柄探测器
- uispy.exe+inspect.exe
- Spy++是一个非常好的查看Windows操作系
- Spy++ 查看窗口类名信息
- spy++ spy++ 工具
- Spy++ 窗口捕捉工具-中文版免安装包
- Advanced Inspector.unitypackage
- Odin Inspector 2.1.12.unitypackage
- pywinauto
- Odin+-+Inspector+and+Serializer+2.1.6.unitypac
- Spy++ 10.0完美汉化版
评论
共有 条评论