Bash & Scripting Basics for Offense

beginner Hands-on lab 30 min 3 tasks

Turn the shell into a weapon: variables and quoting, pipes and redirection to parse tool output, loops and conditionals for host sweeps, and writing your first recon one-liner.

What you'll learn

Manual commands get you started, but automation is what makes an attacker fast. This Edge teaches the Bash building blocks you'll use to chain tools, parse their output, and sweep whole subnets:

  • Variables, quoting, and command substitution
  • Pipes and redirection, plus grep/awk/cut to carve up tool output
  • Loops and conditionals — including a host-sweep for loop
  • Assembling a small reusable recon one-liner / script

Prerequisites

Do the "Linux Command Line for Hackers" Edge first — this one builds directly on grep, find, and basic navigation. Answer the questions from the lesson content.

Part of these paths

Ready to start hacking?

Launch the lab in your browser. Real Kali, Ubuntu and Windows targets, guided step by step. No setup, no VM downloads.

Updated 2026-06-06