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.
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.
Videos
I was looking forward to reading the books but Grey Hat Python is outdated and I want to be able to read them both with up to date content.
Why is this not being done?
I believe they are the same book series. Gray Hat Python was his first book, then 5 or so years later he updated and released Black Hat Python. I am guessing he renamed it for better branding. Then he just released the 2nd edition of Black Hat Python, about 7 years after that one. I am excited to see what the Black Hat Python 2nd edition has, as the 1st edition is really good.
Technique wise there really isn't much difference between Black Hats vs Gray Hats or even White Hats (if you are using the 'hats' nomenclature). It is what you do with those tools and knowledge. For instance, intent, having permission from the owner, staying within the law, etc.
I imagine one outsold the other and made more financial sense to invest in updating it.
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!
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
Anyone went through this book? I found it really hard just from the second chapter. If someone wants to study it together send me a message.
Hi All,
I'm not new to programming, I've been doing it on and off for many years, but I generally create pretty basic scripts to automate tasks at work. I bought Black Hat Python thinking it would be fun to go through to dig into Python more, but I'm absolutely overwhelmed in the second chapter. Does anyone have any recommendations for a (preferably) online tutorial as a prelude to Black Hat Python? I'd like something possibly hacking or networking related, but it doesn't have to be.
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
I'm new to "hacking" and I've been recommended the book "
Black Hat Python: Python Programming for Hackers and Pentesters ." I'm wondering if this is a good book.
"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!
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.
So, I'll put it this way:
You don't need a second edition.
I adore these books, but they are actually better at teaching you how to think through "hacks" than they are at teaching you Python.
Learning the technologies that Python is interacting with to accomplish your objectives is more important than learning what the latest syntax for whatever library you're using is.
In fact, working through Black Hat Python is a fantastic way to do exactly what you said you're trying to do in your last sentence.
I know this doesn't directly answer your question, but I hope it gives you a little more perspective on the topic. I honestly don't know the real answer, and I don't think anyone except the author and No Starch Press knows, either.
In the end, networks, HTTP, and the Web don't change all that much fundamentally. The protocols underlying everything don't change, and as such books like this don't necessarily go out of date.
[ Removed to Protest API Changes ]
If you want to join, use this tool.
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?