Offensive Unit – Penetration testing with Python (5 days)

Objectives

Acquire the necessary scripting skills to create your own tools in Python for penetration testing

Courses

Day 1 morning 

Section 1 – Introduction

❏ Introduction to Python and cybersecurity 

❏ Python environment and setting up the “lab 

❏ reminder of the python basics and different APIs 

❏ Building an executable in Python 

Day 1 afternoon 

Section 2 – Network

❏ Socket management 

❏ Creating a port scan 

❏ Introduction to the SCAPY library 

❏ Setting up ARP poisoning (MITM) with Scapy ❏ Subprocess: Reverse Shell 

❏ Practical work / Data exfiltration 

Day 2 morning

Section 3 – System

❏ Win32ClipBoard : Manipulating the clipboard 

❏ Self-replicating program 

❏ Cryptography: Ransomware

Real-time detection and protection of 

ransomware 

 

Day 2 afternoon

❏ Operation of a Keylogger 

❏ pe, protocol) 

❏ FPractical Work Exfiltration: Screenshots 

❏ Practical Work / Creating an Exfiltration (ty RAT 

Day 3 morning 

Section 3 – Web 

❏ Introduction to WEB libraries (BeautilfulSoup, 

Request) 

❏ HPractical Workractical Work protocol and operation 

❏ HPractical Workractical Work request(s) 

❏ BeautifulSoup: Crawler 

Day 3 afternoon 

❏ Injection into the DOM 

❏ MITMproxy: Frame Injection 

❏ Web API: Shodan 

❏ Practical Work / C&C Twitter 

Certifications

Requirements

General programming knowledge

Public

Developers / Administrators / Pentesters