Over 50 hands-on recipes to help you pen test networks using Python, discover vulnerabilities, and find a recovery path
Key FeaturesDetect and avoid various types of attack that put system privacy at riskImprove your knowledge of wireless application concepts and information gathering through practical recipesDiscover a pragmatic way to pen test using Python, build efficient code, and save timeBook DescriptionPenetration testing is the use of tools and code to attack a system to assess its vulnerabilities to external threats. Python allows pen testers to create their own tools. Since Python is a highly valued pen-testing language, many native libraries and Python bindings are available specifically for pen-testing tasks.
This penetration testing book begins by teaching you how to extract information from web pages. You'll learn how to build a network intrusion detection system using network sniffing techniques. Next, you'll find out how to scan your networks to ensure performance and quality, and how to perform wireless pen testing on your network to avoid cyberattacks. After that, we'll discuss the different kinds of network attacks, before getting to grips with designing your own torrent detection program. As you advance, we'll take you through common vulnerability scenarios, and cover buffer overflow exploitation which will enable you to detect insecure coding.
Finally, you'll master portable executable (PE) code injection methods to safeguard your network.
By the end of this book, you'll have mastered how to use tools and libraries to aid your daily work and found out pragmatic ways of pen testing using Python to build efficient code and save time.
What you will learnConfigure Python in different environmental setupsFind an IP address from a web page using BeautifulSoup and ScrapyDiscover different types of packet sniffing scripts to sniff network packetsBecome proficient in layer 2 and transmission control protocol/internet protocol (TCP/IP) attacksMaster techniques for Windows and Linux exploit development Incorporate various network- and packet-sniffing techniques using Raw sockets and ScrapyWho this book is forIf you are a developer with some knowledge of using Python for penetration testing, and would like an overview of scripting tasks to consider while penetration testing, this book will provide you with useful code snippets for your toolkit.
Table of ContentsWhy Python in Penetration TestingSetting Up a Python EnvironmentWeb Scraping with PythonData Parsing with PythonWeb Scraping with Scrapy and BeautifulSoupNetwork Scanning with PythonNetwork Sniffing with PythonScapy BasicsWi-Fi SniffingLayer 2 AttacksTCP/IP AttacksIntroduction to Exploit DevelopmentWindows Exploit DevelopmentLinux Exploit Development