Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The inurl:
operator can help find URLs containing a specific keyword, sometimes leading to exposed directories or sensitive information.”
A block of code is set as follows:
from bs4 import BeautifulSoup import requests response = requests.get('https://daledumbsitdown.com') soup = BeautifulSoup(response.text, 'html.parser') # Print the page title print(soup.title.string)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
;; ANSWER SECTION: host1234.examplehosting.com. 3600 IN A 93.184.216.34 site1.com. 3600 IN CNAME host1234.examplehosting.com. site2.net. 3600 IN CNAME host1234.examplehosting.com. site3.org. 3600 IN CNAME host1234.examplehosting.com.
Any command-line input or output is written as follows:
nslookup > set type=MX > daledumbsitdown.com
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Right-click on communications streams and select Follow TCP Stream to reconstruct flows and uncover any readable packet data that may provide clues about function and purpose.”
Tips or important notes
Appear like this.