Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

KaliRange / Foundations

Go for security tools

Build fast tools that ship as one file. Types, errors, HTTP and concurrency, with tests.

11 lessons · about 9 hours · every command tested

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

Build portcheck, a port checker that ships as one file

You need

A computer with Linux, macOS, or Windows with WSL. No GPU, no cloud account and no paid tool.

Next course

Web applications and APIs

  1. 00Set up your Go labInstall Go 1.22 or later on your own computerSet-up20 min
  2. 01Run and build your first Go programCheck the Go version and start a module30 min
  3. 02Model hosts, ports and findings in GoDeclare variables and name the basic types35 min
  4. 03Handle errors and split code into a packageWrite functions that return an error, and a method that an interface names50 min
  5. 04Read a file, write JSON and take flagsRead a text file line by line and write a file45 min
  6. 05Call and serve HTTP from GoWrite an HTTP client with a timeout and check the status and headers55 min
  7. 06Check many targets at once, safelyStart goroutines and collect their results with channels and a WaitGroup50 min
  8. 07Test your code and let a fuzzer attack itWrite table-driven tests, including one for an error path55 min
  9. 08Write a port scanner and test it against a listenerScan a range of ports with a pool of workers and a context45 min
  10. 09Build portcheck, a port checker that ships as one fileTurn the scan package into a command with flags and exit codesBuild50 min
  11. 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.

Role names and codes are NIST's (Components 2.2.0, 2026-04-28); the choice of roles is our own reading of the role descriptions. The NICE Framework at NIST has the full description of each role.