Skip to Content
Python for Security and Networking - Third Edition
book

Python for Security and Networking - Third Edition

by José Manuel Ortega
June 2023
Intermediate to advanced
586 pages
12h 35m
English
Packt Publishing
Content preview from Python for Security and Networking - Third Edition

3

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python for Networking and Security - Second Edition

Mastering Python for Networking and Security - Second Edition

José Manuel Ortega
Python for Cybersecurity

Python for Cybersecurity

Howard E. Poston, III

Publisher Resources

ISBN: 9781837637553Supplemental Content