Chapter 3: Socket Programming
In this chapter, you will learn some of the basics of Python networking using the socket module. The socket module exposes all of the necessary methods to quickly write TCP and UDP clients and servers for writing low-level network applications.
Socket programming refers to an abstract principle by which two programs can share any data stream by using an Application Programming Interface (API) for different protocols available in the internet TCP/IP stack, typically supported by the operating systems.
We will also cover implementing HTTP server and socket methods for resolving IPS domains and addresses.
The following topics will be covered in this chapter:
- Introducing sockets in Python
- Implementing an HTTP server in Python
- Implementing a reverse shell with sockets
- Resolving IPS domains, addresses, and managing exceptions
- Port scanning with sockets
- Implementing a simple TCP client and TCP server
- Implementing a simple...