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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #241 · 5 мај

Можно ли в Python создавать бинарные файлы? Конечно можно. Для этого в Python есть следующие инструменты: ▫️ тип данных bytes и bytearray ▫️ открытие файла в режиме wb (write binary) или rb (read binary) ▫️ модуль struct Про модуль struct поговорим в первую очередь. Файл в формате JSON или Yaml внутри себя содержит разметку данных. Всегда можно определить где список начался а где закончился. Где записана строка а где словарь. То есть формат записи данных содержит в себе элементы разметки данных. В binary-файле данные не имеют визуальной разметки. Это просто байты, записанные один за другим. Правила записи и чтения находятся вне файла. Модуль struct как раз и помогает с организацией данных в таком файле с помощью определения форматов записи для разных частей файла. Модуль struct преобразует Python-объекты в массив байт, готовый к записи в файл и имеющий определённый вид. Для этого всегда следует указывать формат преобразования (или, как оно здесь называется - запаковки). Формат нужен для того, чтобы выделить достаточное количество байт для записи конкретного типа объекта. В последствии с помощью того же формата будет производиться чтение. При этом следует помнить что мы говорим о типах языка С а не Python. Именно формат определяет, что записано в конкретном месте файла, число, строка или что-то еще. Вот какие токены формата у нас есть. Помимо этого, первым символом можно указать порядок байтов. На разных системах одни и те же типы данных могут записываться по-разному, поэтому желательно указать конкретный способ из доступных. Если этого не сделать, то используется символ '@', то есть нативный для текущей системы. В строке формата мы пишем в каком порядке и какие типы собираемся преобразовать в байты. Запакуем в байты простое число, токен "i". >>> import struct >>> struct.pack('=i', 10) b'\n\x00\x00\x00' Теперь несколько float, при этом нужно передавать элементы не массивом а последовательностью аргументов. >>> struct.pack('=fff', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Вместо нескольких токенов можно просто указать нужное количество элементов перед одним токеном, результат будет тот же. >>> struct.pack('=3f', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Теперь запакуем разные типы >>> data = struct.pack('=fiQ', 1.0, 4, 100500) я запаковал типы float, int и unsigned long long (очень большой int, на 8 байт) b'\x00\x00\x80?\x04\x00\x00...' Распаковка происходит аналогично, но нужно указать тот же формат, который использовался при запаковке. Результат возвращается всегда в виде кортежа. >>> struct.unpack('=fiQ', data) (1.0, 4, 100500) Как видите, ничего страшного! #lib#basic

Hashtags

Резултати

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

Пребарај: #bugbounty

当前筛选 #bugbounty清除筛选
ChatGPT AI Technology News

@chatgpt_officialnews · Post #355 · 03.02.2026 г., 22:53

Help Us Improve Our AI & Get Rewarded!🔥 We’re constantly working to make our AI smarter, faster, and more reliable 🧠✨ That’s why we’re opening a Bug Bounty Program for our community 💎 Found a bug or issue in our AI? Report it to us and you’ll receive bonus tokens as a reward 🎁 💰 Depending on the importance and impact of the bug, rewards can even include real money 🎯 The more valuable the finding, the bigger the reward. 📩How to participate: Send detailed bug reports, issues, or unexpected behavior to our support team: 👉@OpenAI_helpdesk Thank you for helping us build a better AI — we truly appreciate the community ❤️ Drop a ❤️ or 🔥 if you’re ready to hunt some bugs! ➖➖➖➖🔻 🧠 BOT: @Chatgpt_OfficialBOT 💎@Chatgpt_OfficialNews #️⃣#AI#BugBounty#BOT#News ➖➖➖➖🔺

АнтиФрод Россия

@antifraudrussia · Post #1379 · 29.08.2025 г., 09:39

😢Запрет на «хакерский контент» Минцифры в проекте второго пакета мер по борьбе с мошенничеством предложило внести поправки в закон "Об информации". Речь о блокировке контента, который учит несанкционированно уничтожать, модифицировать, копировать или блокировать данные, а также о доступе к таким программам. 🚨Эксперты в кибербезопасности уже бьют тревогу: это может ударить по "белым хакерам", участие в Bug Bounty-программах или работа по договорам до сих пор не вызывали проблем. Есть риск перехода в серую зону. Юристы добавляют, правовая неопределенность вырастет, прежде всего для этих программ, которые сегодня активно развиваются. Минцифры подчеркивает, запрет коснется только бесконтрольного распространения опасной информации, которую киберпреступники используют для атак на госсистемы и бизнес. Уже сейчас Роскомнадзор и Генпрокуратура блокируют такой контент. #Антифрод#Кибербезопасность#Минцифры#BugBounty Ваш АнтиФрод Россия🔐

DOFH - DevOps from hell

@dofh_ru · Post #4051 · 06.03.2026 г., 17:04

Ni8mare (CVE-2026-21858): как один HTTP-заголовок привёл к компрометации n8n #статья#перевод#bugbounty В начале 2026 года была опубликована критическая уязвимость в n8n. Идентификатор: CVE-2026-21858 CVSS v.3.1: 10.0. Интересна здесь не столько оценка критичности, сколько сама причина уязвимости и как её можно проэксплуатировать. Всё начинается с обычного HTTP-заголовка Content-Type… Ссылка на статью LH | News | OSINT | AI

Medet Turin 🫆

@allsafekz · Post #722 · 25.02.2025 г., 11:42

👾RTEAM Bug Bounty – Pre-Registration Open! 🚀 We are launching a new bug bounty platform and inviting security researchers to sign up early. Be among the first to access the platform, hunt for vulnerabilities, and earn rewards! 🔐 Why pre-register? ✅ Get early access when the platform goes live ✅ Be the first to know about the launch and rewards ✅ Join an exclusive community of top bug hunters 🔥 Bug hunters, sign up now! 🔗https://rteam.kz/bugbounty 📌 For companies: Looking to strengthen your cybersecurity? Connect with us! ✉️ [email protected] 🌍rteam.kz #RTEAM#BugBounty#CyberSecurity#EthicalHacking#CTF#Netrunner

Immunefi

@immunefi · Post #452 · 07.06.2022 г., 14:50

How well do you know the major vulnerabilities and attack vectors of Blockchain and Web3? A few areas of risks to look out for when working on a blockchain project: - Attacks on the Consensus Mechanism - Blockchain structure vulnerabilities - Application-oriented attacks - Attacks on P2P systems To decrease the risk of a potential hack and protect your user funds, projects are highly recommended to use Immunefi's bug bounty platform. 🔍🔍🔍 #Immunefi is Web3's leading bug bounty platform, protecting over $100 billion in user funds. Follow us for more content on #BugBounty, #BugBountyTips, #Web3, #Crypto, #Blockchain, #Cybersecurity, #DeFi, #Hackers, #WhiteHats and more.

Crypto M - Crypto News

@CryptoM · Post #64672 · 09.04.2026 г., 13:25

🚀 Circle's Arc Blockchain Opens Testnet Code Ahead of Mainnet Launch Circle's Arc blockchain has announced the release of its testnet code ahead of its mainnet launch. According to Foresight News, developers can now initiate testnet nodes and review the source code. Additionally, a bug bounty program has been launched on the HackerOne platform to enhance security measures. #CircleArcBlockchain#TestnetLaunch#MainnetLaunch#BlockchainDevelopment#BugBounty#HackerOne#SecurityMeasures#CryptoDevelopment

Crypto M - Crypto News

@CryptoM · Post #65093 · 11.04.2026 г., 00:26

🚀 Polymarket to Upgrade Protocol and Launch pUSD Token on Polygon Polymarket has announced plans to enhance its protocol and introduce pUSD, an ERC-20 collateral token on the Polygon network, fully backed by USDC. According to NS3.AI, the upgrade aims to lower gas costs and minimize failed trades. The platform intends to open-source the smart contracts next week and will initiate a bug bounty program to ensure security and reliability. #Polymarket#Upgrade#Protocol#pUSD#ERC20#CollateralToken#Polygon#USDC#GasCosts#FailedTrades#OpenSource#SmartContracts#BugBounty#Security#Reliability

GitHub Trends

@githubtrending · Post #14877 · 28.06.2025 г., 13:30

#python#bounty#bugbounty#bypass#cheatsheet#enumeration#hacking#hacktoberfest#methodology#payload#payloads#penetration_testing#pentest#privilege_escalation#redteam#security#vulnerability#web_application Payloads All The Things is a comprehensive collection of useful payloads and bypass techniques for web application security testing and penetration testing. It offers detailed documentation for each vulnerability, including how to exploit it and ready-to-use payloads, plus files for tools like Burp Intruder. You can contribute your own payloads or improvements, making it a collaborative resource. It also links to related projects for internal network and hardware pentesting, and provides learning resources like books and videos. Using this resource helps you efficiently find and test security weaknesses in web applications, improving your pentesting effectiveness and knowledge. https://github.com/swisskyrepo/PayloadsAllTheThings