HackPath Academy

Programming & Scripting for Pentesters

Bash Scripting & Automation

Glue your tools together into fast recon and exploitation pipelines.

Intermediate · 12 min

Open the interactive lesson →

On Linux, Bash is the fastest way to chain tools. Great pentesters automate their recon so a single command feeds subdomains → live hosts → ports → screenshots.

#!/usr/bin/env bash
# Tiny recon pipeline
domain=$1
subfinder -d "$domain" -silent \
  | httpx -silent \
  | tee live_hosts.txt \
  | nuclei -silent -severity high,critical

Take the quiz →