Socket Programming
This chapter will showcase networking basics using Python’s socket module. The socket module exposes all the necessary pieces to quickly write TCP and UDP clients and servers for writing low-level network applications. We will also cover implementing a reverse shell with the socket module and implementing secure sockets with TLS.
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 all operating systems. We will also cover implementing HTTP server and socket methods for resolving IP domains and addresses.
The following topics will be covered in this chapter:
- Understanding the socket package for network requests
- Implementing a reverse shell with sockets
- Implementing a simple TCP client and TCP server with the socket module
- Implementing a...