Packt

Python for Security

Included with Coursera Plus

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

9 hours to complete
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

9 hours to complete
Flexible schedule
Learn at your own pace

What you'll learn

  • Learn how to use Python to create socket connections and perform network operations.

  • Master port scanning techniques and integrate banner grabbing for security analysis.

  • Build brute-force programs to test SSH connections for weak passwords.

  • Gain hands-on experience in packet sniffing, TCP/UDP segment extraction, and network data analysis.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

August 2025

Assessments

7 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 7 modules in this course

In this module, we will introduce you to the versatility of Python for security testing. You'll explore various applications like brute force password cracking, creating socket connections, and building port scanners, all essential skills for security professionals.

What's included

2 videos1 reading

In this module, we will guide you through the process of creating a simple port scanner using Python. You’ll build on your knowledge of socket connections to scan specific ports on a machine, and learn how to troubleshoot and debug common issues along the way.

What's included

1 video1 assignment1 plugin

In this module, we will teach you how to create a Python program that connects to open ports and grabs banner information for enumeration purposes. You’ll integrate this feature with the port scanner from the previous module to efficiently scan and grab banners from discovered open ports in a single process.

What's included

1 video1 assignment1 plugin

In this module, we will walk you through the creation of a brute-force SSH attack program using Python. You’ll learn how to use Paramiko for SSH connections, and then build and integrate a brute-force feature to test for weak passwords on SSH servers.

What's included

2 videos1 assignment1 plugin

In this module, we will delve into packet sniffing and analysis with Python. You will learn to capture, format, and analyze network packets, extracting important information such as Ethernet frames, IP headers, and TCP/UDP segments.

What's included

6 videos1 assignment1 plugin

In this module, we will show you how to create a simple TCP server in Python. You’ll learn to set up the server to open a port, accept incoming connections, and receive data from clients.

What's included

1 video1 assignment1 plugin

In this module, we will bring together all the skills you’ve learned by building the Forwarding Packet Sniffer. You’ll integrate previous projects into one comprehensive tool, offering you practical experience in security testing with Python.

What's included

1 video2 assignments

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

Packt - Course Instructors
Packt
806 Courses180,755 learners

Offered by

Packt

Explore more from Computer Security and Networks

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions