Skip to content

🐍 A practical journey into Python for Pentesters β€” learn the fundamentals, build your own first testing tools/

Notifications You must be signed in to change notification settings

DairHX/Python_For_Pentesters_Basics

Repository files navigation

🐍 Python Pentest Basics

This collection contains 10 beginner-friendly Python scripts designed to introduce absolute beginners to both Python scripting and basic concepts in penetration testing. Each script is kept simple and educational so that learners can read, modify, and build confidence to explore more advanced tools and techniques.

🎯 Goal

Help new learners build a solid foundation in Python through hands-on cybersecurity utilities. Each script demonstrates practical tasks commonly encountered during reconnaissance, scanning, or exploitation.


πŸ“‚ Script List

  1. πŸ“ List Files in OS
  2. πŸ“– Read and Print File Contents
  3. 🌐 Subdomain Enumerator
  4. πŸ—‚οΈ Directory Enumerator
  5. 🌍 Basic Network Scanner
  6. πŸ“‘ Basic Port Scanner
  7. πŸ“₯ Basic File Downloader
  8. πŸ” Basic Hash Cracker
  9. 🀝 Basic TCP Client
  10. πŸ–₯️ Basic TCP Server

πŸ”„ How to Use This Repo

βœ… Read the code line by line.
πŸ§ͺ Modify values to test and experiment.
πŸŽ›οΈ Add argparse support once you're confident.
πŸ”§ Combine multiple scripts into mini-projects.

Each script is a doorway into real-world pentesting. ✨ Start small, think big.


πŸš€ What's Next

After mastering these 10 scripts:

  • 🧠 Try automating BurpSuite Labs with Python.
  • πŸ› οΈ Build custom tools using scapy, threading, and argparse.
  • πŸ” Explore bug bounty targets and write your own reconnaissance tools.

πŸ’₯ Happy hacking!


πŸ‘¨β€πŸ’» Maintained by: Python_For_Pentesters_Basics Project

About

🐍 A practical journey into Python for Pentesters β€” learn the fundamentals, build your own first testing tools/

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages