I mean given a second edition came out about half a year ago, I'd say ...yeah :) Answer from zersiax on reddit.com
🌐
Reddit
reddit.com › r/pentesting › black hat python, second edition
r/Pentesting on Reddit: Black Hat Python, Second Edition
December 7, 2020 -

The Second Edition of Black Hat Python is available for early ordering (to be published in print in March 2021), and free PDF chapter is available here: https://nostarch.com/black-hat-python2E Revamped and updated to Python 3.

The free chapter is about creating a network sniffer with Python.

Disclosure, I'm one of the authors.

🌐
Reddit
reddit.com › r/howtohack › is black hat python still relevant today ?
r/HowToHack on Reddit: Is Black Hat Python still relevant today ?
January 18, 2022 - Both are very relevant. The first edition is for python 2 and the second edition is for python 3. ... Yes, and here is the source code for the Black Hat Python book based on Python 3.
🌐
Reddit
reddit.com › r/hacking_tutorials › do you recommend ‘black hat python’ for beginners?
r/Hacking_Tutorials on Reddit: Do you recommend ‘Black hat python’ for beginners?
October 18, 2024 -

Hello. I hope you're well and that you've all had a good day.

My question is this: Would you recommend "Black Hat Python : Python programming for hackers and pentesters (2nd edition) " for a beginner in cybersecurity and programming?

I've got a decent grounding in Python (for a beginner) but I don't understand a thing about the programs presented in this book. I still have to spend hours and hours dissecting each program and finding information on functions, modules etc... Would you advise me to come back to this book when I have a better knowledge of networking and Python programming, or is it normal to understand nothing about these programs and spend hours dissecting them?

In short, is this book suitable for a beginner?

Thank you and have a nice day!

Top answer
1 of 5
7
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.
2 of 5
3
Black Hat is a complex but amazing read. I actually used it for my capstone project when graduating with my degree in cybersecurity. Ultimately the book comes down to a select few things. A) do you want to challenge yourself. One thing I learned while reading it is. Sometimes it’s less complex to spend less time dissecting the library and instead dissect the program you’re challenged to build. For example, let’s use the netcat in the early chapters. Do you understand how it works? What each function you made does. Could you pull code from that project to another and still follow what it’s doing in a new scope? I have taken my netcat program. Respec’d it to work within the port scanner and connection, and want to tie in shodah api next. How about OS functionale, why won’t the netcat program work on windows from Linux? But it functions from windows to linux. What is the fundamental changes on that? What programs won’t work when used on windows and how can you change it so they do. Part of my overall scope for my black hat python was “let’s make this work cross platform between windows and linux, that way the tool is useable in multiple environments”. I think that this perspective could help you with at least using the book. But the libraries behind it are discussed pretty in-depth within the book, at least if you read the documentation as you use the code. They’ll discuss some other functions or tools beyond the scope of their provided examples or point you to other note-worthy interactions from the libraries. Overall. Beginners to Csec with a background in python programming, yes I recommend. New to Csec and no experience in python. You’ll want to start with some fundamentals first to understand the book.
🌐
Reddit
reddit.com › r › HowToHack › comments › o4tmay › hows_black_hat_python_2nd_ed
How's Black Hat Python 2nd ed? : r/HowToHack
June 21, 2021 - Had this book on my wishlist for a while, just found out it came out. Is it good? How does it compare to something like Violent Python?
🌐
Reddit
reddit.com › r › Python › duplicates › k8g0py › black_hat_python_2nd_edition
r/Python - Black Hat Python 2nd Edition
The Second Edition of Black Hat Python is available for early ordering (to be published in print in March 2021), and free PDF chapter is available here: https://nostarch.com/black-hat-python2E Revamped and updated to Python 3. The free chapter ...
🌐
Reddit
reddit.com › r/cybersecurity › for those of you trying to learn python... (black hat python)
r/cybersecurity on Reddit: For those of you trying to learn Python... (Black Hat Python)
January 9, 2023 -

Hello all,

I've been working pretty diligently on a Python for cybersecurity course. Originally it was going to be very strongly tied to the Black Hat Python book, but after getting through the whole book, there were so many things I felt were out of date, and inefficient I'm going to change about 20% of it.

Additionally, Black Hat Python was not a book that took someone from no Python skills to understanding the examples in the book.

So my question is for all of you out there who are trying to learn have tried to learn Python in the past, what's important to you?

  • Is a lab guide helpful?

  • A github repository with updated code as time goes by?

  • Is a written explanation or concepts helpful?

  • etc...

In general what have you found helpful in the past and what have you found to be unhelpful?

Kind regards

Find elsewhere
🌐
Reddit
reddit.com › r/hacking › a must read book for newbies in python
r/hacking on Reddit: A must read book for newbies in python
July 13, 2023 - Sharing my github repo for: Black Hat Python (Seitz Book) source code re-edited, updated to Python3 and tested · r/Python • · upvotes · · comments · Black Hat Python 2nd Edition · r/Python • · upvotes · · comments · Best programming languages to learn for cybersecurity?
🌐
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

🌐
Reddit
reddit.com › r/howtohack › i converted the code from "black hat python" into python 3, applied pep8 and resolved dependency issues. it's available on github.
r/HowToHack on Reddit: I converted the code from "Black Hat Python" into Python 3, applied PEP8 and resolved dependency issues. It's available on GitHub.
May 13, 2020 -

"Black Hat Python" is a great book, but the fact that it was written in Python 2 is a bit of a problem. Not only that but dependency conflict resolution and plain bug fixing is necessary in practically every chapter.

If you don't know Black Hat Python, the book is available on Internet Archive here and it covers topics like packet sniffing, mapping web applications, stealing email credentials over unencrypted networks, writing your own trojans, making a botnet command & control server, and much more.

I left some good amount of information on how to use the repository code right on the README.md file.

It was a lot of work but I think I did most of it. Enjoy.

https://github.com/EONRaider/blackhat-python3

Collaboration is welcome if you happen to find any bugs or dependency issues along the way. Just send a pull request!

🌐
Reddit
reddit.com › r/howtohack › is there likely to be an updated edition of grey hat python?
r/HowToHack on Reddit: Is there likely to be an updated edition of Grey Hat Python?
May 19, 2021 -

I know that Justin, the guy who wrote Black Hat Python and Grey Hat Python, recently came out with an updated edition of Black Hat Python.

How likely is he to do the same with Gray Hat Python? I would be thrilled.

In the meantime, I am looking forward to reading Black Hat Python once I get past the basics.

I know that as part of bug hunting I should probably read books on web scraping and play around with that when hunting for bugs, but I am not there yet.

I'm hoping a new edition of Grey Hat Python is out by the time I get past the basics of hacking.

🌐
Reddit
reddit.com › r › learnprogramming › comments › mc1smd › can_anyone_recommend_black_hat_python
r/learnprogramming - Can anyone recommend Black Hat Python?
Im sitting a cyber security course which includes ethical hacking and a python class. I'm looking to read Black Hat Python 2nd edition when it comes out and was wondering if anyone has read and can recommend the first edition, or is there better content out there?
🌐
Reddit
reddit.com › r/learnpython › is it me, or is the black hat python book trash?
r/learnpython on Reddit: Is it me, or is the Black Hat Python book trash?
November 1, 2022 -

I want to be very specific here, I like the exercises in the book. I greatly improved on their version of "NetCat" if you could even call it that. But, you download their source code, and none of it works. I thought this was all supposed to be updated for Python3?

I've paid 10$ for a Udemy course with better working material than this book.

At this point, I'm seriously wondering if the book gives you intentionally bad code so you have to debug it so you learn more...

Has any one had "fun" with this book?