TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #381 · 23 окт.

Установить свойства виджета в PySide можно не только через соответствующие методы и конструктор класса. Можно их изменять с помощью метода setProperty по имени. btn = QPushButton("Click Me") btn.setProperty("flat", True) Это аналогично вызову btn.setFlat(True) Если указать несуществующее свойство, то оно просто создается btn.setProperty("btnType", "super") Получить его значение можно методом .property(name) btn_type = btn.property("btnType") Когда это может быть полезно? ▫️Можно просто хранить какие то данные в виджете и потом их доставать обратно widget = QWidget() widget.setProperty('my_data', 123) print(widget.property('my_data')) ▫️ Назначая эти свойства разным виджетам можно потом отличить виджеты во время итераци по ним. Например, найти все кнопки со свойством my_data="superbtn". Но ведь вместо кастомного свойства можно использовать objectName, будет тот же результат. Да, но y ObjectName есть ограничение - только строки. ▫️ Если нам потребуется не просто поиск а, например, сортировка по числу, то свойства позволяют нам это сделать. Поддерживается любой тип данных widget.setProperty('my_data', {'Key': 'value'}) widget.setProperty('order', 1) all_widgets.sort(key=w: w.property('order')) Но ведь Python позволяет всё вышеперечисленное сделать простым созданием атрибута у объекта widget.order = 1 widget.my_data = 123 Да, но я думаю что не надо объяснять почему не стоит так делать. К тому же, если у виджета нет свойства то метод .property(name) вернет None, а отсутствующий атрибут выбросит исключение. ▫️ Действительно полезное применение кастомным свойствам - контроль стилей. Здесь атрибутами не обойтись, нужны именно свойства. Дело в том, что в селекторах стилей можно указывать конкретные свойства виджетов на которые следует назначать стиль. Просто запустите этот код from PySide2.QtWidgets import * if __name__ == "__main__": app = QApplication([]) widget = QWidget(minimumWidth=300) layout = QVBoxLayout(widget) btn1 = QPushButton("Action 1") btn2 = QPushButton("Action 2") btn3 = QPushButton("Action 3", flat=True) layout.addWidget(btn1) layout.addWidget(btn2) layout.addWidget(btn3) # добавим кастомное свойство одной кнопке btn1.setProperty("btnType", "super") # добавляем стили widget.setStyleSheet( """ QPushButton[btnType="super"] { background-color: yellow; color: red; } QPushButton[flat="true"] { color: yellow; } """ ) widget.show() app.exec_() С помощью селектора мы избирательно назначили стили на конкретные кнопки. Как получить список всех кастомный свойств? Функция получения списка кастомных свойств отличается от получения дефолтных. def print_widget_dyn_properties(widget): for prop_name in widget.dynamicPropertyNames(): property_name = prop_name.data().decode() property_value = widget.property(property_name) print(f"{property_name}: {property_value}") #tricks#qt

Hashtags

Резултати

Пронајдени 17 слични објави

Пребарај: #exploit

当前筛选 #exploit清除筛选
网络安全笔记

@tsecrecord · Post #1452 · 26.07.2025 г., 06:43

#exploit 1⃣CVE-2025-20281: Cisco ISE API Unauthenticated RCE 2⃣CVE-2025-29017: Internet Banking System 2.0 RCE via Profile Picture Upload 3⃣CVE-2025-22230, CVE-2025-22247: The Guest Who Could - Exploiting LPE in VMWare Tools 4⃣CVE-2025-6554: A Brief Analysis of Chrome's 0day in the Wild 5⃣CVE-2025-7783: form-data boundary randomness vulnerability 6⃣CVE-2025-31161: CrushFTP Authentication Bypass 7⃣CVE-2025-53770 SharePoint Vulnerability Scanner: - Machine key extraction patterns - Secondary payload indicators - ExcelDataSet/Scorecard component processing - ToolPane error patterns and anomalous response characteristics + SIEM Detection Rules // Disclaimer

Hashtags

网络安全笔记

@tsecrecord · Post #795 · 25.05.2023 г., 01:36

#exploit 1. CVE-2023-31779: Stored XSS in Wekan https://github.com/jet-pentest/CVE-2023-31779 2. CVE-2023-31726: AList 3.15.1 - Incorrect Access Control https://github.com/J6451/CVE-2023-31726 3. Vulnerabilities of Goby supported with exploitation https://github.com/gobysec/GobyVuls

Hashtags

GitHub 红队武器库🚨

@githubredteam · Post #84662 · 18.05.2026 г., 10:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:defi-exploits 👤项目作者:trdx 🛠开发语言: Solidity ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-05-18 09:59:58 📝项目描述: Repository created by GitHub Project Operator 🔗点击访问项目地址

Hashtags

GitHub 红队武器库🚨

@githubredteam · Post #84532 · 17.05.2026 г., 06:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:Kernel-Exploit-Dojo 👤项目作者:mito753 🛠开发语言: C ⭐Star数量: 2 | 🍴Fork数量: 0 📅更新时间: 2026-05-17 06:00:06 📝项目描述: CTF kernel exploitation notes, PoCs, exploits, and writeups. 🔗点击访问项目地址

Hashtags

GitHub 红队武器库🚨

@githubredteam · Post #82625 · 03.05.2026 г., 13:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:IT-Security-Vulnerability-Exploit-Intelligence-Scraper 👤项目作者:Threathunter7 🛠开发语言: Python ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-05-03 13:00:21 📝项目描述: IT Security Vulnerability & Exploit Intelligence Scraper 🔗点击访问项目地址

Hashtags

GitHub 红队武器库🚨

@githubredteam · Post #82511 · 02.05.2026 г., 18:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:Nebelung-Exploit-Guy 👤项目作者:Nebelung-Exploit-Guy 🛠开发语言: None ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-05-02 18:00:17 📝项目描述: Yo, I am a dev. 🔗点击访问项目地址

Hashtags

GitHub 红队武器库🚨

@GithubRedTeam · Post #80563 · 16.04.2026 г., 15:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:OWASP-Juice-Shop-SQL-Injection-Exploitation-Burp-Suite- 👤项目作者:R9Joshi 🛠开发语言: None ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-04-16 15:00:03 📝项目描述: 无描述 🔗点击访问项目地址

Hashtags

GitHub 红队武器库🚨

@GithubRedTeam · Post #80085 · 13.04.2026 г., 07:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:Environmental-Exploit-Variable 👤项目作者:SHAHADPATHAN 🛠开发语言: None ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-04-13 07:00:11 📝项目描述: 无描述 🔗点击访问项目地址

Hashtags

GitHub 红队武器库🚨

@GithubRedTeam · Post #79999 · 12.04.2026 г., 14:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:socrates-exploit 👤项目作者:cyberdesu 🛠开发语言: Python ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-04-12 14:00:19 📝项目描述: 无描述 🔗点击访问项目地址

Hashtags

GitHub 红队武器库🚨

@GithubRedTeam · Post #79785 · 10.04.2026 г., 22:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#Exploit 📦项目名称:ExploitMaze 👤项目作者:DUVALL707 🛠开发语言: HTML ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-04-10 22:00:16 📝项目描述: 🧩 Navigate and assess vulnerabilities in software systems with ExploitMaze to enhance security and improve defenses against potential threats. 🔗点击访问项目地址

Hashtags

Клавдий в ИБ

@cyberpoleshuk · Post #134 · 12.06.2024 г., 12:52

Кто не пропатчил уязвимость CVE-2024-26229 у меня новость: эксплойт на C обновлен около 16 часов назад и в сигнатурах его еще нет 😫 https://www.virustotal.com/gui/file/38ec8c05f3ebd5c02d15430a7812baab1829e9696bc7278cb4a26f1f84ec933e/ Для тех, кто в танке: эксплойт запускается на машине и поднимает права УЗ до привилегий system #malaware#exploit

GitHub 红队武器库🚨

@githubredteam · Post #83632 · 10.05.2026 г., 09:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#EXP#CVE#Exploit 📦项目名称:exploitation-validator 👤项目作者:Karan-143 🛠开发语言: None ⭐Star数量: 0 | 🍴Fork数量: 0 📅更新时间: 2026-05-10 08:59:58 📝项目描述: Validate and prove code vulnerabilities using prompt-based pipeline and LLM sub-agents to ensure accurate exploit detection and verification. 🔗点击访问项目地址

12
ПретходнаСтраница 1 од 2Следна