Python for Security and Networking : Leverage Python Modules and Tools in Securing Your Network and Applications / José Manuel Ortega
Material type:
- text
- computer
- online resource
- QA76.73.P98 O78 2023
Item type | Current library | Shelving location | Call number | Status | Barcode | |
---|---|---|---|---|---|---|
![]() |
Main Library | Newly Acquired Section | QA 76.73 P98 O78 2023 (Browse shelf(Opens below)) | Available | 00000000217312024 |
Browsing Main Library shelves, Shelving location: Newly Acquired Section Close shelf browser (Hides shelf browser)
Description based upon print version of record.
Implementing secure sockets with the TLS and SSL modules.
Includes bibliographical references and index.
Cover -- Copyright -- Table of Contents -- Preface -- Section 1: Python Environment and System Programming Tools -- Chapter 1: Working with Python Scripting -- Technical requirements -- Learn about data structures and collections in Python -- Python Lists -- Adding elements to a list -- Reversing a list -- Searching elements in a list -- Python tuples -- Python dictionaries -- Remove an item from a dictionary in Python -- Working with functions, classes, and objects in Python -- Python functions -- Python classes -- Python inheritance -- Advantages of Python inheritance.
Working with files in Python -- Reading and writing files in Python -- Learn and understand exceptions management in Python -- Python modules and packages -- What is a module in Python? -- How to import modules in Python -- Getting information from modules -- Difference between a Python module and a Python package -- Managing parameters in Python -- Managing parameters with OptionParser -- Managing dependencies and virtual environments -- Managing dependencies in a Python project -- Install Python modules -- Generating the requirements.txt file -- Working with virtual environments.
Configuring virtualenv -- Development environments for Python scripting -- Setting up a development environment -- Debugging with Python IDLE -- PyCharm -- Debugging with PyCharm -- Summary -- Questions -- Further reading -- Chapter 2: System Programming Packages -- Technical requirements -- Interact with the operating system in Python -- Working with the filesystem in Python -- Working with files and directories -- Reading a ZIP file using Python -- Executing commands with the subprocess module -- Setting up a virtualenv with subprocess -- Managing threads in Python -- Creating a simple thread.
Working with the threading module -- Multiprocessing in Python -- Multithreading and concurrency in Python -- Multithreading in Python -- Concurrency in Python with ThreadPoolExecutor -- Executing ThreadPoolExecutor with a context manager -- Summary -- Questions -- Further reading -- Section 2: Network Scripting and Packet Sniffing with Python -- Chapter 3: Socket Programming -- Technical requirements -- Understanding the socket package for network requests -- Network sockets in Python -- The socket module -- Server and client socket methods -- Gathering information with sockets.
Managing socket exceptions -- Basic client with the socket module -- Port scanning with sockets -- Implementing a port scanner -- Advanced port scanner -- Implementing a reverse shell with sockets -- Implementing a simple TCP client and TCP server -- Implementing a server and client with sockets -- Implementing the TCP server -- Implementing the TCP client -- Implementing a simple UDP client and UDP server -- Implementing the UDP server -- Implementing the UDP client -- Implementing an HTTP server in Python -- Testing the HTTP server -- Sending files via sockets.
Online version restricted to NUS staff and students only through NUSNET.
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.
Mode of access: World Wide Web.
System requirements: Internet connectivity; World Wide Web browser.
IEEE IEEE Xplore Packt Publishing eBooks Library.
There are no comments on this title.