Book Image

Effective Python Penetration Testing

By : Rejah Rehim
Book Image

Effective Python Penetration Testing

By: Rejah Rehim

Overview of this book

Penetration testing is a practice of testing a computer system, network, or web application to find weaknesses in security that an attacker can exploit. Effective Python Penetration Testing will help you utilize your Python scripting skills to safeguard your networks from cyberattacks. We will begin by providing you with an overview of Python scripting and penetration testing. You will learn to analyze network traffic by writing Scapy scripts and will see how to fingerprint web applications with Python libraries such as ProxMon and Spynner. Moving on, you will find out how to write basic attack scripts, and will develop debugging and reverse engineering skills with Python libraries. Toward the end of the book, you will discover how to utilize cryptography toolkits in Python and how to automate Python tools and libraries.
Table of Contents (16 chapters)
Effective Python Penetration Testing
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Twisted


Twisted is an extensible framework in Python with a focus on event-driven network programming. Twisted has multiprotocol integration that includes HTTP, FTP, SMTP, POP3, IMAP4, DNS, IRC, MSN, OSCAR, XMPP/Jabber, telnet, SSH, SSL, NNTP, Finger, ident, and many more. Hence, it helps to quickly implement most of the custom server/services network applications.

All the features in Twisted have a cooperating API. Also, none of the functionality is implemented by blocking the network, so we don't need to use threading. Twisted can handle thousands of connections in a single thread.

Some of the modules included in Twisted are as follows:

  • twisted.web: Used for HTTP clients and servers, HTML templating, and a WSGI server.

  • twisted.conch: Used for SSHv2 and Telnet clients and servers and to create terminal emulators.

  • twisted.words: Used to create IRC, XMPP, and other IM protocols, clients, and servers.

  • twisted.mail: Used for IMAPv4, POP3, SMTP clients, and servers.

  • twisted.positioning: Helps...