
Golang, also known as Go, is a statically typed language developed by Google in 2009. It's known for its simplicity and performance, but it's also being used for nefarious purposes.
Golang's design allows for easy concurrency, which is a double-edged sword. On one hand, it makes it perfect for high-performance applications, but on the other hand, it also makes it ideal for creating malware that can run multiple threads simultaneously.
Golang's simplicity is both a blessing and a curse. Its concise syntax makes it easy to write code, but it also makes it easier for blackhats to create malicious code that can evade detection.
Suggestion: Golang Source
Black Hat Go
Black Hat Go is a collection of short scripts that explore the darker side of the Go programming language, revered by hackers for its simplicity, efficiency, and reliability. It's designed to help you test your systems, build and automate tools to fit your needs, and improve your offensive security skillset, all using the power of Go.
On a similar theme: Golang Go

The book covers various topics, including creating performant tools, scraping arbitrary HTML data, and using Go's standard package, net/http, for building HTTP servers. You'll also learn how to create a vulnerability fuzzer to discover an application's security weaknesses and use plug-ins and extensions to future-proof products.
Here are some specific skills you'll learn from Black Hat Go:
- Make performant tools that can be used for your own security projects
- Create usable tools that interact with remote APIs
- Scrape arbitrary HTML data
- Use Go's standard package, net/http, for building HTTP servers
- Write your own DNS server and proxy
- Use DNS tunneling to establish a C2 channel out of a restrictive network
- Create a vulnerability fuzzer to discover an application's security weaknesses
- Use plug-ins and extensions to future-proof products
- Implant data within a Portable Network Graphics (PNG) image
Black Hat Go: Go for Hackers
Black Hat Go is a book that explores the darker side of the Go programming language, a favorite among hackers for its simplicity, efficiency, and reliability.
Tom Steele, Dan Kottmann, and Chris Patten, with over 30 years of penetration testing and offensive security experience, share their knowledge in this collection of short scripts.
You'll start with a basic overview of Go's syntax and philosophy, then dive into examples that can be leveraged for tool development, including common network protocols like HTTP, DNS, and SMB.
Here are some of the practical tactics you'll learn:
- Make performant tools that can be used for your own security projects
- Create usable tools that interact with remote APIs
- Scrape arbitrary HTML data
- Use Go's standard package, net/http, for building HTTP servers
- Write your own DNS server and proxy
- Use DNS tunneling to establish a C2 channel out of a restrictive network
- Create a vulnerability fuzzer to discover an application's security weaknesses
- Use plug-ins and extensions to future-proof products
- Build an RC2 symmetric-key brute-forcer
- Implant data within a Portable Network Graphics (PNG) image
These scripts will help you test your systems, build and automate tools to fit your needs, and improve your offensive security skillset, all using the power of Go.
Netgopher
Netgopher is a simple implementation of Netcat in Go, created by the author as a learning project. It's a great example of how to use Go for network tasks.
The author has added better command line parsing and options to the usual TCP connection functionality, making it more useful for CTFs and other security tasks. This includes features like command execution and port relaying.
You can install Netgopher via `go get`, but be aware that it will only install the binary in your local $GOPATH and it may be quite large. Additionally, the binary will only be compiled for your specific OS.
The author encourages readers to check out the source code and play with Netgopher to see what it's capable of. They've even included a README excerpt on their Github Repo for further reference.
You might like: Golang Test Command
Featured Images: pexels.com

