๐Ÿ Black Hat Python Setup on Parrot OS (VM)

๐Ÿ“… Date: July 10, 2025
๐Ÿ’ป Host OS: Linux Mint
๐Ÿงช Guest VM: Parrot OS running in VMware
๐Ÿ“‚ Project Directory: ~/blackhat-python
๐Ÿ Python Version: 3.11.2
๐ŸŽฏ Virtual Environment: bhpython-env
๐Ÿ”’ Environment Type: Isolated Python dev environment for cybersecurity tools


๐Ÿ”ง Setup Steps

  1. Created and activated a virtual environment named bhpython-env.
  2. Confirmed pip functionality and installed key packages.
  3. Saved installed package list to requirements.txt.
  4. Created a project directory at ~/blackhat-python.
  5. Wrote and tested a basic network scanner script to confirm socket operations.

๐Ÿ“ฆ Key Python Packages Installed

  • requests, flask, scapy, netifaces
  • pwntools, paramiko, pyserial, cryptography
  • capstone, unicorn, ROPGadget, pyelftools, rpyc
  • psutil, colored-traceback, Werkzeug, intervaltree

All packages were verified and saved for reuse using pip freeze.


๐Ÿงช First Test Script: scanner.py

This script checks whether port 22 (SSH) is open on localhost. It uses socket.connect_ex() to determine if the port is reachable and prints the result accordingly.


โœ… Current Status

  • Environment is clean, isolated, and Python 3.11-compatible.
  • All required libraries for Black Hat Python projects are installed.
  • First script successfully executed and environment validated.
  • Ready to begin working through Black Hat Python chapters and hands-on tools.