# blackhat-go/bhg

Code samples for No Starch Press Black Hat Go

Repository: https://github.com/blackhat-go/bhg
Canonical: https://ross.abutalabs.com/products/bhg
Homepage: https://nostarch.com/blackhatgo
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-03-29T15:25:23+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2603, "days_push": 887, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1255, forks 411 (observed 2026-08-28T04:04:08.863385+00:00)

## What it is
Companion code samples for the No Starch Press book 'Black Hat Go: Go Programming for Hackers and Pentesters'. It contains example Go programs covering network scanning, proxies, DNS tunneling, packet sniffing, exploit development, cryptography, and other offensive security techniques.

## Use cases
- learn offensive security tooling in Go
- build a TCP port scanner in Go
- write a DNS tunneling C2 channel
- scrape HTML data with Go
- implement packet sniffing tools
- learn to build HTTP servers and proxies in Go
- study exploit development examples in Go

## When to choose
- you are reading or studying the Black Hat Go book
- you want practical Go examples of offensive security techniques
- you are a pentester learning to write custom Go tooling

## When to avoid
- you need a production-ready security tool rather than educational samples
- you want defensive security or blue-team tooling
- you are not comfortable with the Go programming language

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: security, networking, developer-tools, cli
- domain: security, penetration-testing, developer-tools
- platform: cross-platform, go
- tags: go, offensive-security, penetration-testing, book-samples, black-hat-go, no-starch-press, code-examples, hacking-tools, command-line

## Member repositories
- blackhat-go/bhg (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.863385+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:07:19.099209+00:00, confidence not recorded.
  - readme: https://github.com/blackhat-go/bhg (fetched 2026-08-28T04:04:08.863385+00:00, sha 83dc0edca954)
  - homepage: https://nostarch.com/blackhatgo (fetched 2026-08-29T12:17:48.777757+00:00, sha f0b7e6d7774c)
  - site_page: https://nostarch.com/about_ebooks.htm (fetched 2026-08-29T12:17:48.780353+00:00, sha 43cb882f7d18)
  - site_page: https://nostarch.com/about.htm (fetched 2026-08-29T12:17:48.782183+00:00, sha 71a1c00f1784)
  - site_page: https://nostarch.com/orderfaq.htm (fetched 2026-08-29T12:17:48.784022+00:00, sha ce96f6371999)
- Data as of 2026-08-30T08:39:29.467469+00:00.
