Book Image

Security with Go

By : John Daniel Leon, Karthik Gaekwad
Book Image

Security with Go

By: John Daniel Leon, Karthik Gaekwad

Overview of this book

Go is becoming more and more popular as a language for security experts. Its wide use in server and cloud environments, its speed and ease of use, and its evident capabilities for data analysis, have made it a prime choice for developers who need to think about security. Security with Go is the first Golang security book, and it is useful for both blue team and red team applications. With this book, you will learn how to write secure software, monitor your systems, secure your data, attack systems, and extract information. Defensive topics include cryptography, forensics, packet capturing, and building secure web applications. Offensive topics include brute force, port scanning, packet injection, web scraping, social engineering, and post exploitation techniques.
Table of Contents (15 chapters)

Prerequisites

Before running these examples, you need to have libpcap installed. In addition, we have to use a third-party Go package. Fortunately, this package is provided by Google, a trusted source. Go's get ability will download and install the remote package. Git will also be needed for go get to work properly.

Installing libpcap and Git

The libpcap package dependency does not come pre-installed on most systems, and the installation procedure is different for each operating system. Here we will cover the installation steps for libpcap and git for Ubuntu, Windows, and macOS. I highly recommend that you use Ubuntu or other Linux distributions for best results. Without libpcap, gopacket will not function, and git is...