Okay, I've searched for information on "Black Hat Python, 2nd Edition" by Justin Seitz and Tim Arnold.
Yes, the book absolutely contains information on Web Application Security Reconnaissance.
The primary focus for this is Chapter 5: Web Hackery.
Here's an outline of the web application reconnaissance (and closely related initial interaction) topics covered in that chapter, based on the book's table of contents and descriptions:
- Making HTTP Requests: Using Python libraries (like
requests) to interact with web servers, send GET/POST requests, handle headers, cookies, and sessions. This is the foundation for any web reconnaissance.
- Content Discovery (Mapping):
- Building tools to brute-force web server directories and files.
- Identifying hidden or unlinked resources by systematically requesting common paths or using wordlists.
- Brute-Forcing: While often associated with logins, the techniques can be applied to discover parameters, filenames, or other guessable elements during reconnaissance.
- HTML/Content Parsing: Techniques to extract specific information (links, comments, hidden fields, email addresses, technology hints) from the HTML source code of web pages using libraries like
BeautifulSoup (though the book might focus on simpler regex or string methods too).
- Virtual Host Discovery: Techniques to identify different websites hosted on the same IP address by manipulating the
Host header in HTTP requests.
Additionally, other chapters touch on related reconnaissance areas:
- Chapter 7: GitHub Reconnaissance: While not directly web application scanning, this chapter covers using Python to search GitHub for sensitive information related to a target (API keys, configurations, source code snippets) which is a crucial part of broader reconnaissance against an organization and its web assets.
- Chapter 6: Extending Burp Proxy: This chapter focuses on scripting for Burp Suite, a popular web proxy. While much of Burp's reconnaissance is built-in, the chapter shows how Python can automate or customize tasks within Burp, which could include specific reconnaissance modules.
In summary, "Black Hat Python" provides practical Python code and techniques specifically for performing reconnaissance tasks against web applications, primarily focusing on mapping content and interacting with web servers programmatically.