Go for security tools
Build fast tools that ship as one file. Types, errors, HTTP and concurrency, with tests.
How to use the lab files
The zip keeps the files of each lesson apart, and the lessons work in one flat folder. After you unzip it, sh kr-lab.sh LESSON FOLDER builds that folder as it stands after a lesson, for example sh kr-lab.sh 00-set-up-your-lab ~/krlab/go.
You will build
You need
A computer with Linux, macOS, or Windows with WSL. No GPU, no cloud account and no paid tool.
Next course
- 00Set up your Go labInstall Go 1.22 or later on your own computerSet-up20 min
- 01Run and build your first Go programCheck the Go version and start a module30 min
- 02Model hosts, ports and findings in GoDeclare variables and name the basic types35 min
- 03Handle errors and split code into a packageWrite functions that return an error, and a method that an interface names50 min
- 04Read a file, write JSON and take flagsRead a text file line by line and write a file45 min
- 05Call and serve HTTP from GoWrite an HTTP client with a timeout and check the status and headers55 min
- 06Check many targets at once, safelyStart goroutines and collect their results with channels and a WaitGroup50 min
- 07Test your code and let a fuzzer attack itWrite table-driven tests, including one for an error path55 min
- 08Write a port scanner and test it against a listenerScan a range of ports with a pool of workers and a context45 min
- 09Build portcheck, a port checker that ships as one fileTurn the scan package into a command with flags and exit codesBuild50 min
- 10Check a team's lab endpoints and report the resultBuild a concurrent endpoint checker with flags, a timeout and a JSON reportTest90 min
Work roles
Work roles this course supports
The course helps you to prepare for these roles of the NICE Workforce Framework for Cybersecurity (NIST SP 800-181 Rev. 1). No single course covers a whole role, and KaliRange is not a certification body.
- Secure Software Development
DD-WRL-003a supporting skillYou build fast security tools with tests, the race detector and fuzzing.