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

TGINSIGHT SIMILAR POSTS

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

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

Как правильно проверить атрибуты доступа файла? То есть доступна ли запись в файл или является ли он исполняемым? Для этого в Python есть функция os.access() Проверять так: os.access(path, flag) Функция вернёт bool в зависимости от наличия указанного флага. Всего есть 4 флага проверки: os.F_OK - наличие файла на диске os.R_OK - доступ на чтение os.W_OK - доступ на запись os.X_OK - доступ на исполнение Например, вместо try-except лучше делать так (пример из документации): if os.access("myfile", os.R_OK): with open("myfile") as fp: return fp.read() #basic#libs

Hashtags

Резултати

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

Пребарај: #immunefi

当前筛选 #immunefi清除筛选
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.