Python for Hackers 101

Learn Python from scratch with a security-focused mindset. Write scripts that scan, scrape, and exploit.

Overview

Python is the most versatile language in security. This course teaches you the fundamentals: variables, loops, functions, and libraries, through the lens of real hacking tools and techniques.

What you will learn

  • Write Python scripts using variables, conditionals, and loops
  • Work with strings, lists, and dictionaries for data handling
  • Use the requests and socket libraries for network tasks
  • Build a simple port scanner and HTTP request tool

Syllabus

A structured path through every lesson: Your First Python Script, Strings & Data Types, Lists & Dictionaries, Conditionals & Loops, Functions & Modules, Building a Port Scanner, File I/O & Error Handling, Web Scraping & HTTP Requests, Working with APIs & JSON, Building a Password Generator.