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

TGINSIGHT SIMILAR POSTS

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

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

Python + bash Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете? Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно. Советую обратить своё внимание на очень крутую библиотеку sh. Что она умеет? 🔸 удобный синтаксис вызова команд как функций # os import os os.system("tar cvf demo.tar ~/") # subprocess import subprocess subprocess.call(['tar', 'cvf', 'demo.tar', '~/']) # sh import sh sh.tar('cvf', 'demo.tar', "~/") 🔸 простое создание функции-алиаса для длинной команды fn = sh.lsof.bake('-i', '-P', '-n') output = sh.grep(fn(), 'LISTEN') в этом примере также задействован пайпинг 🔸 удобный вызов команд от sudo with sh.contrib.sudo: print(ls("/root")) Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера. А вот вариант с вводом пароля через код. password = "secret" sudo = sh.sudo.bake("-S", _in=password+"\n") print(sudo.ls("/root")) Это не все фишки. Больше интересных примеров смотрите в документации. Специально для Windows💀 юзеров #libs#linux

Hashtags

Резултати

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

Пребарај: #hacked

当前筛选 #hacked清除筛选

disruption. The exchange's ability to cover the loss is a surprising detail, given the scale of the hack, and it underscores Bybit's financial stability and commitment to user security.Community and Market Reaction The hack triggered immediate market reactions, with Ethereum prices dropping over 3% following the confirmation, as reported by Decrypt. The crypto community on X saw panic, with hashtags like #Bybit and #Hacked trending, and users urging immediate withdrawals. However, Bybit's transparency initiative, announced earlier that day, making liquidation data publicly accessible via an enhanced API, was highlighted as an industry benchmark, potentially mitigating long-term trust issues (WorldCoinIndex).Analysis of Security Measures Bybit has historically emphasized robust security, including AI-powered fraud detection that thwarted over $79 million in suspicious withdrawals in the first half of 2024. The exchange's use of cold storage for user funds and a policy limiting withdrawals to three times per day were noted in past reviews, such as CoinFi, which praised Bybit's security measures before this incident. However, the sophistication of the attack, involving masked UI spoofing and smart contract manipulation, indicates evolving threats that even established exchanges face. Conclusion In conclusion, Bybit was indeed hacked on February 21, 2025, with an estimated loss of $1.4 billion, confirmed by multiple sources including Bybit's CEO via X and news outlets like CryptoBriefing and Cointelegraph. Despite the severity, Bybit's assurance that user funds are safe and operations are normal, backed by their solvency to cover losses, provides reassurance. This incident highlights the ongoing challenges in crypto security and the importance of transparency, as demonstrated by Bybit's response and community engagement.

NEWS 鏈新聞-ABMedia

@abmedia_news · Post #23798 · 11.04.2026 г., 07:16

【🚀產品技術|OpenAI 緊急要求所有 macOS 用戶更新應用程式,Axios 供應鏈攻擊引發安全憑證更新 】 #OpenAI#macOS#Axios#Hacked 📍請見報導: https://abmedia.io/openai-macos-security-update-axios-supply-chain-incident 📍訂閱鏈新聞頻道:https://linktr.ee/abmedia.io