PacktPublishing / Python-for-Security-and-Networking

Python for Security and Networking, Published by Packt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python-for-Security-and-Networking

This is the code repository for Python for Security and Networking, Third Edition, published by Packt.

Leverage Python modules and tools in securing your network and applications

About the book

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

Table of Contents

Chapters

  1. Working with Python Scripting
  2. System Programming Packages
  3. Socket Programming
  4. HTTP Programming and Web Authentication
  5. Analyzing Network Traffic and Packet Sniffing
  6. Gathering Information from Servers with OSINT Tools
  7. Interacting with FTP, SFTP, and SSH Servers
  8. Working with Nmap Scanner
  9. Interacting with Vulnerability Scanners
  10. Interacting with Server Vulnerabilities in Web Applications
  11. Obtain Information from Vulnerabilities Databases
  12. Extracting Geolocation and Metadata from Documents, Images, and Browsers
  13. Python Tools for Brute-Force Attacks
  14. Cryptography and Code Obfuscation
  15. Assessments – Answers to the End-of-Chapter Questions

If you feel this book is for you, get your copy today! Coding

Following is what you need for this book:

You will need to install a Python distribution on your local machine, which should have at least 4 GB of memory. Also, you will need Python version 3.10, which you can install on your system globally or use a virtual environment for testing the scripts with this version.

With the following software and hardware list you can run all code files present in the book.

Software and Hardware List

Chapter Software/hardware covered in the book OS requirements
Chapters 1-14 Python 3.10 Windows, macOS, and Linux (Any)

Know more on the Discord server Coding

You can get more engaged on the discord server for more latest updates and discussions in the community at https://packt.link/SecNet

Download a free PDF Coding

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost. Simply click on the link to claim your free PDF. https://packt.link/free-ebook/9781837637553 Coding

We also provide a PDF file that has color images of the screenshots/diagrams used in this book at "https://packt.link/t85UI" Coding

Get to Know the Author

José Manuel Ortega has been working as a Software Engineer and Security Researcher with a focus on new technologies, open source, security, and testing. His career target has been to specialize in Python and DevOps security projects with Docker. Currently, he is working as a Security Tester Engineer and his functions in the project are analysis and testing the security of applications in both web and mobile environments. He has collaborated with universities and the official college of computer engineers presenting articles and holding some conferences. He has also been a speaker at various conferences both national and international. He is very enthusiastic to learn about new technologies and loves to share his knowledge with the developer community.

About

Python for Security and Networking, Published by Packt

License:MIT License


Languages

Language:HTML 46.3%Language:Python 15.0%Language:PHP 13.0%Language:Java 11.2%Language:Classic ASP 9.2%Language:Perl 1.9%Language:Shell 1.2%Language:ColdFusion 1.1%Language:ASP.NET 0.8%Language:C 0.2%