In this section, you will learn the basics of obtaining banners and whois information from servers with socket and python-whois modules.
Using python to obtain server information
Extracting servers banners with python
Banners expose information related with the name of the web server and the version that is running on the server. Some expose the backend technology (PHP, Java, Python) used and its version. The production version could have public or non-public failures, so it is always a good practice to test the banners that return the servers that we have publicly exposed, to see whether they expose some type of information that we do not want to be public.
Using the standard Python libraries, it is possible to create a...