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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #397 · 12 ное.

Использование Pydantic сегодня стало нормой, и это правильно. Но иногда на ревью вижу, что используют его не всегда корректно. Например, метод BaseModel.model_dump() по умолчанию не преобразует стандартные типы, такие как datetime, UUID или Decimal, в простой сериализуемый для JSON вид. Тогда пишут кастмоный сериализатор для этих типов чтобы функция json.dump() не падала с ошибкой. import uuid from datetime import datetime from decimal import Decimal from uuid import UUID from pydantic import BaseModel class MyModel(BaseModel): id: UUID date: datetime value: Decimal obj = MyModel( id=uuid.uuid4(), date=datetime.now(), value='1.23' ) print(obj.model_dump()) # не подходит для json.dump # { # 'id': UUID('4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1'), # 'date': datetime.datetime(2025, 12, 12, 12, 12, 12, 111111), # 'value': Decimal('1.23') # } # добавляем свой кастомный сериализатор json.dumps(obj.model_dump(), cls=MySerializer) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2025-12-12T12:12:12.111111', # 'value': '1.23' # } В данном случае класс MySerializer обрабатывает datetime, UUID и Decimal. Например так: class MySerializer(json.JSONEncoder): def default(self, o): if isinstance(o, Decimal): return str(o) elif isinstance(o, datetime): return o.isoformat() elif isinstance(o, UUID): return str(o) return super().default(o) Специально для тех, кто всё еще так делает - в этом нет необходимости! Pydantic может это сделать сам, просто нужно добавить параметр mode="json". json.dumps(obj.model_dump(mode="json")) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2012-12-12T12:12:12.111111', # 'value': '1.23' # } #pydantic#libs

Резултати

Пронајдени 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Следна