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)

Summary

Having read this chapter, you should now have a very good understanding of the gopacket package. You should be able to write a simple packet-capturing application using the examples from this chapter. Once again, it is not about memorizing all of the functions or the details about the layers. The important thing is to understand the big picture at a high level and be able to recall what tools are available to you when scoping and implementing an application.

Try writing your own program based on these examples to capture interesting network traffic from your machine. Try capturing and inspecting a specific port or application to see how it works over the wire. See the difference between applications that use encryption and ones that pass data over the wire in plaintext. You may just want to capture all the traffic going on in the background and see which applications are...