Scripting & Automation
Scapy
Python packet manipulation library for custom protocol work.
Authorized testing only. Practice on systems you own, isolated labs, or targets with written permission. Unauthorized access is illegal.
When
You need packets that scanners don't craft.
How
Build layers (IP/TCP/...); send/sr; sniff; write custom tools.
Why
Deep protocol understanding separates experts from tool runners.
Commands & usage
sudo scapy
pkt = IP(dst='192.168.1.1')/ICMP(); send(pkt)
sr1(IP(dst='192.168.1.10')/TCP(dport=80,flags='S'))
Commands are educational examples. Adapt hosts, paths, and rates to your authorized scope.
Tags
Related in Scripting & Automation
Python 3
Primary scripting language for security automation and exploit tooling.
Bash / POSIX Shell
Shell scripting for glue logic, loops over targets, and quick ops.
PowerShell
Windows automation and offensive/defensive scripting environment.
jq / yq
JSON/YAML processors for parsing tool output at scale.
Ansible
Automation engine useful for lab provisioning and hardening baselines.
CyberChef
The Cyber Swiss Army Knife — encode/decode/compress/parse in-browser.