OS and subprocess modules - Day 15/90 Python Security Challenge

Опубликовано: 27 Июль 2026
на канале: Thinkkun
3
0

Day 15 of the 90 Day Python Security Scripting Challenge. Today I cover os and subprocess modules for safe command execution.

Topics:
Running system commands safely with subprocess.run
Capturing and parsing command output with regex
Managing child processes with Popen and timeouts
Preventing command injection attacks
Filesystem security auditing with os.walk and stat

————————————————————
📚 Python for Security in 90 Days — Day 15 of 90
▶️ Full course playlist (start here):    • Python for Security in 90 Days — Offensive...  
💌 Free weekly cheatsheet on Substack: https://substack.com/@thinkun

🔔 Subscribe & follow everywhere:

▶️ YouTube:    / @thinkkun  
🧑‍💻 Dev.to: https://dev.to/thinkkun
✍️ Medium:   / thinkkun  
📰 Substack: https://substack.com/@thinkun
🐙 GitHub: https://github.com/naveenkarasu
𝕏 Twitter: https://x.com/think_kun
🎵 TikTok:   / think_kun  
🦋 Bluesky: https://bsky.app/profile/thinkun.bsky...
🐘 Mastodon: https://defcon.social/@think
🧵 Threads: https://www.threads.com/@araviharaize...
📸 Instagram:   / araviharaizekata  
👽 Reddit:   / thinkkun  

#Python #CyberSecurity #InfoSec #Scripting

[tk-meta] python-security | day 015 | longform | v1