🌐
GitHub
github.com › aw-junaid › Black-Hat-Python
GitHub - aw-junaid/Black-Hat-Python: A collection of advanced Python scripts for cybersecurity, penetration testing, and ethical hacking. · GitHub
A collection of advanced Python scripts for cybersecurity, penetration testing, and ethical hacking. - aw-junaid/Black-Hat-Python
Starred by 101 users
Forked by 19 users
Languages   Python
🌐
GitHub
github.com › EONRaider › blackhat-python3
GitHub - EONRaider/blackhat-python3: Source code for the book "Black Hat Python" by Justin Seitz. The code has been fully converted to Python 3, reformatted to comply with PEP8 standards and refactored to eliminate dependency issues involving the implementation of deprecated libraries. · GitHub
Source code for the book "Black Hat Python" by Justin Seitz. The code has been fully converted to Python 3, reformatted to comply with PEP8 standards and refactored to eliminate dependency issues involving the implementation of deprecated libraries.
Starred by 2.3K users
Forked by 447 users
Languages   Python
Discussions

Sharing my github repo for: Black Hat Python (Seitz Book) source code re-edited, updated to Python3 and tested
The 2nd version was already updated to python3.... sorry bud. More on reddit.com
🌐 r/Python
8
163
February 13, 2022
For those of you trying to learn Python... (Black Hat Python)
Multiple examples to accomplish the same task in different ways, a cheat sheet of syntax, and flow charts of what programs are doing at a higher level. More on reddit.com
🌐 r/cybersecurity
12
43
January 9, 2023
Do you recommend ‘Black hat python’ for beginners?
It’s a great book, i’m only half way through at the moment. Chapter 1 on Low Level Socket Programming is a great start. Populate your Git with your working examples but give credit where it’s deserved. More on reddit.com
🌐 r/Hacking_Tutorials
7
13
October 18, 2024
are Grey Hat Python and Violent Python still relevant for learning to hack with Python?
I haven’t read any of these books but I have experience with pwntools and I would say it probably would do well for HTB. But regardless of using python 2 or 3 the methodology for the exploitation is what you really want to understand. Also you could try to ask over at r/hacking as people there may have some more experience with those specific books. Edit: reading the description for the black hat book it looks good though. I am curious about it myself now since I have my Pentest and CEH certs and eventually want to get OSCP. More on reddit.com
🌐 r/learnpython
7
11
July 4, 2023
🌐
GitHub
github.com › carloocchiena › blackhat_python_book_code
GitHub - carloocchiena/blackhat_python_book_code: Source code and exercises from the book "Black Hat Python" by Justin Seitz. · GitHub
Source code and exercises from the book "Black Hat Python" by Justin Seitz. - carloocchiena/blackhat_python_book_code
Starred by 160 users
Forked by 28 users
Languages   Python
🌐
GitHub
github.com › topics › blackhat-python-source-code
blackhat-python-source-code · GitHub Topics · GitHub
July 19, 2024 - Source code for the book "Black Hat Python" by Justin Seitz.
🌐
GitHub
github.com › AllGloryToTheHypnotoad › Black-Hat-Python
GitHub - AllGloryToTheHypnotoad/Black-Hat-Python: black hat python
black hat python. Contribute to AllGloryToTheHypnotoad/Black-Hat-Python development by creating an account on GitHub.
Starred by 133 users
Forked by 79 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › mehransab101 › Black_Hat_Python
GitHub - mehransab101/Black_Hat_Python: Black Hat Python:PYTHON PROGRAMMING FOR HACKERS AND PENTESTERS by justin seitz
Black Hat Python:PYTHON PROGRAMMING FOR HACKERS AND PENTESTERS by justin seitz - mehransab101/Black_Hat_Python
Starred by 48 users
Forked by 17 users
Find elsewhere
🌐
GitHub
github.com › solita › blackhat-python
GitHub - solita/blackhat-python: Black Hat Python workshop for Disobey 2019
Black Hat Python workshop for Disobey 2019. Contribute to solita/blackhat-python development by creating an account on GitHub.
Starred by 30 users
Forked by 17 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › lucasmelin › blackhat-python
GitHub - lucasmelin/blackhat-python: Personal version of tools from Black Hat Python
Personal version of tools from Black Hat Python . Contribute to lucasmelin/blackhat-python development by creating an account on GitHub.
Starred by 41 users
Forked by 7 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › topics › black-hat-python
black-hat-python · GitHub Topics · GitHub
A compilation of codes and scripts from the book "Black Hat Python" by Justin Seitz.
🌐
GitHub
github.com › edoardottt › black-hat-python3-code
GitHub - edoardottt/black-hat-python3-code: 🏴‍☠️ tools (py3 version) of Black Hat Python book 🏴‍☠️
🏴‍☠️ tools (py3 version) of Black Hat Python book 🏴‍☠️ - edoardottt/black-hat-python3-code
Starred by 122 users
Forked by 30 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › mrodrig › black-hat-python
GitHub - mrodrig/black-hat-python: Coding Examples and Exercises (converted to Python 3) from "Black Hat Python: Python Programming for Hackers and Pentesters"
Coding Examples and Exercises (converted to Python 3) from "Black Hat Python: Python Programming for Hackers and Pentesters" - mrodrig/black-hat-python
Starred by 7 users
Forked by 6 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › Grazfather › BlackHatPython
GitHub - Grazfather/BlackHatPython: Black Hat Python Labs
Black Hat Python Labs. Contribute to Grazfather/BlackHatPython development by creating an account on GitHub.
Starred by 102 users
Forked by 59 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › iluxonchik › blackhat-python-book
GitHub - iluxonchik/blackhat-python-book: Code from Blackhat Python book
Code from Black Hat Python book in Python 3.
Starred by 187 users
Forked by 62 users
Languages   Python 100.0% | Python 100.0%
🌐
GitHub
github.com › AcornPublishing › black-hat-python2e
GitHub - AcornPublishing/black-hat-python2e: Black Hat Python 2/e
Black Hat Python 2/e. Contribute to AcornPublishing/black-hat-python2e development by creating an account on GitHub.
Author   AcornPublishing
🌐
GitHub
github.com › LiterallyEthical › blackhat-python
GitHub - LiterallyEthical/blackhat-python: This repo is collection of python scripts & tools that has been written for Penetration Testing.
This repo is collection of python scripts & tools that has been written for Penetration Testing. - LiterallyEthical/blackhat-python
Author   LiterallyEthical
🌐
Reddit
reddit.com › r/python › sharing my github repo for: black hat python (seitz book) source code re-edited, updated to python3 and tested
r/Python on Reddit: Sharing my github repo for: Black Hat Python (Seitz Book) source code re-edited, updated to Python3 and tested
February 13, 2022 -

https://github.com/carloocchiena/blackhat_python_book_code

I quite enjoyed the book, but as 2021 it looks quite outdated, not just for the choice of using Python 2.7.

Deliberately, as expressed by the author, the scripts are written raw & dirty to simulate the approach he uses during a penetration testing.

Since I had to convert all the source codes anyway, to run them on my machine (Kali Linux VM + Win10 OS + Win10 VM + Python 3.9) I decided to go extra-mile and save them in a repo, in the meantime trying to optimize the code and making it a little more elegant

Improvement made from the book's code

  • Refactoring to Python 3 and code testing (unless otherwise specified)

  • Update to PEP8 standards

  • Upgraded readability (es. comments, indentation, variable names, file names)

  • Update of obsolete methods (es. print -s %)

  • Better context management (es. open with, server.close())

  • Disregard of unsupported libs

  • Minor tweaks and bugs found while testing the code

  • Search for additional files requested throughout the book and not provided, or provided at outdated links, and included in individual chapters

  • Additional information and resources that I searched for and found useful as I made my way through the book

If someone's going thru the same journey may find this resource somehow helpful