Bash is one of the first building blocks that expert penetration testers learn. But every hacker, regardless of experience level, should know their way around a bash shell - its powerful scripting language lets you scale your attacks and write your own tools when others aren't available. Black Hat Bash will teach you how to harness this essential pentesting skill set through hands-on exercises that use bash scripting to chain commands together, automate critical tasks, craft successful living-off-the-land attacks, and more. Early chapters cover the bash scripting language's syntax and help you set up a lab environment to test your newfound bash abilities during all stages of the penetration testing process. You'll soon be automating reconnaissance tasks, performing OS command injection, parsing tool output to extract important information, and manoeuvring a restricted network using bash techniques that make your offensive engagements more efficient. This book makes bash easy to learn. And, with its focus on presenting bash in the context of pentesting, you'll not only learn the language but you'll also pick up lots of hacking tricks that allow you to use bash right away as your go-to offensive security tool.