
Python for Security and Networking: Leverage Python modules and tools in securing your network and applications 3rd Edition
Author(s): Jose Manuel Ortega (Author)
- Publisher: Packt Publishing
- Publication Date: 7 Jun. 2023
- Edition: 3rd
- Language: English
- Print length: 586 pages
- ISBN-10: 1837637555
- ISBN-13: 9781837637553
Book Description
Gain a firm, practical understanding of securing your network and utilize Python’s packages to detect vulnerabilities in your application
Key Features
- Discover security techniques to protect your network and systems using Python
- Create scripts in Python to automate security and pentesting tasks
- Analyze traffic in a network and extract information using Python
Book Description
Python’s latest updates add numerous libraries that can be used to perform critical security-related missions, including detecting vulnerabilities in web applications, taking care of attacks, and helping to build secure and robust networks that are resilient to them. This fully updated third edition will show you how to make the most of them and improve your security posture.
The first part of this book will walk you through Python scripts and libraries that you’ll use throughout the book. Next, you’ll dive deep into the core networking tasks where you will learn how to check a network’s vulnerability using Python security scripting and understand how to check for vulnerabilities in your network – including tasks related to packet sniffing. You’ll also learn how to achieve endpoint protection by leveraging Python packages along with writing forensics scripts.
The next part of the book will show you a variety of modern techniques, libraries, and frameworks from the Python ecosystem that will help you extract data from servers and analyze the security in web applications. You’ll take your first steps in extracting data from a domain using OSINT tools and using Python tools to perform forensics tasks.
By the end of this book, you will be able to make the most of Python to test the security of your network and applications.
What you will learn
- Program your own tools in Python that can be used in a Network Security process
- Automate tasks of analysis and extraction of information from servers
- Detect server vulnerabilities and analyze security in web applications
- Automate security and pentesting tasks by creating scripts with Python
- Utilize the ssh-audit tool to check the security in SSH servers
- Explore WriteHat as a pentesting reports tool written in Python
- Automate the process of detecting vulnerabilities in applications with tools like Fuxploider
Who this book is for
This Python book is for network engineers, system administrators, and other security professionals looking to overcome common networking and security issues using Python. You will also find this book useful if you’re an experienced programmer looking to explore Python’s full range of capabilities. A basic understanding of general programming structures as well as familiarity with the Python programming language is a prerequisite.
Table of Contents
- Working with Python Scripting
- System Programming Packages
- Socket Programming
- HTTP Programming and Web Authentication
- Analyzing Network Traffic and Packets Sniffing
- Gathering Information from Servers with OSINT Tools
- Interacting with FTP, SFTP, and SSH Servers
- Working with Nmap Scanner
- Interacting with Vulnerability Scanners
- Interacting with Server Vulnerabilities in Web Applications
- Obtain Information from Vulnerabilities Databases
- Extracting Geolocation and Metadata from Documents, Images, and Browsers
- Python Tools for Brute-Force Attacks
- Cryptography and Code Obfuscation
- Assessments – Answers to the End-of-Chapter Questions
Editorial Reviews
Review
“Python for Security and Networking” harnesses the power of Python in a meaningful and practical way, and places emphasis on real-world application. The book presents a myriad of scenarios that range from analyzing network traffic to developing security tools. As a reader, I could clearly see how Python is implemented in security and networking, and more importantly, how to apply these strategies in my own work.
In a nutshell, this book goes beyond being informative; it is truly transformative.”
Joe Shenouda
Cyber Security Expert
Mssp Advisor
“Mastering Python for Network and Security” is a must-have resource for anyone seeking to excel in the field of cybersecurity and network administration. Jose Manuel Ortega’s expertise shines through every page, and his ability to explain complex concepts in a clear and concise manner is commendable. Whether you are a beginner or an experienced professional, this book will undoubtedly enhance your Python programming skills and equip you with the knowledge to tackle network and security challenges with confidence.
I highly recommend this book to anyone looking to master Python for network and security applications. It is an invaluable reference that will undoubtedly become a go-to resource in your professional journey.”
Stephen Paynter- Automation Engineer
“I received an early review copy of “Python for Security and Networking Third Edition” by Jose Manuel Ortega.This book is a valuable asset whether your focus is networking or security. Why, you may ask? Often, the network and security teams operate in separate silos, however, due to the increasing nature of data breaches, DDoS attacks, and the pervasiveness of malware, network and security departments need to focus on a holistic approach on securing today’s IoT networks. Python for Security and Networking Third Edition bridges the gap between the two disciplines.
Here are a few highlights from the book for me; Chapter 1 discusses Python Fundamentals, Chapter 8 focuses on how to effectively make use of Nmap, and Chapter 14 delves into Cryptography.
What makes this book a valuable asset for your toolkit is the focus on implementing networking and security best practices using a programming language, in this case, Python.
Today, threat actors are using automation. In order to firm up network resources all of us will have to learn some form of programming, and the Python for Security and Networking, Third Edition, will aid in that regard.
I highly recommend this book”.”
Kevin M Pratt- Network Engineer.
“A comprehensive guide that covers both the fundamentals of Python and its practical applications in the field of cybersecurity. A standout feature of this book is the author’s ability to explain complex concepts in a clear and accessible manner. Even if you have little to no prior experience with Python or network security, Ortega’s explanations will help you grasp the material with ease. It will undoubtedly help you gain the knowledge and confidence to tackle security challenges using Python.”
David Dukinfield: 4G/5G Solutions Architect
About the Author
José Manuel Ortega is a software engineer, focusing on new technologies, open source, security, and testing. His career goal has been to specialize in Python and security testing projects. In recent years, he has developed an interest in security development, especially in pentesting with Python. Currently, he is working as a security tester engineer and his functions in the role involves the analysis and testing of the security of applications in both web and mobile environments. He has taught at university level and collaborated with the official school of computer engineers. He has also been a speaker at various conferences. He is eager to learn about new technologies and loves to share his knowledge with the community.
Wow! eBook


