Security-with-Go

module
v0.0.0-...-82c2bce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: MIT

README

Security with Go

This is the code repository for Security with Go, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Go is becoming more and more popular as a language for security experts. Its wide use in the server and cloud environment, its speed and ease of use, and its evident capabilities in data analysis have made it a prime choice for developers concerned with security.

Security with Go is the first Golang security book and is useful for both blue team and red team applications. Learn 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.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

package main

import (
    "fmt"
)

func main() {
   // Basic for loop
   for i := 0; i < 3; i++ {
       fmt.Println("i:", i)
   }

   // For used as a while loop
   n := 5
   for n < 10 {
       fmt.Println(n)
       n++
   }
}

Readers should have basic programming knowledge and understanding of at least one programming language. To run the examples the reader needs a computer with Go installed. Installation instructions are covered in the book. The recommended operating system is Ubuntu Linux, but examples should also run on macOS, Windows, and other Linux distributions.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781788627917

Directories

Path Synopsis
Chapter01
Chapter02
Chapter03
archive/unzip_example
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
archive/zip_example
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
compression/gunzip_example
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
compression/gzip_example
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
Chapter04
stego/create_test_archive
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
Chapter05
Chapter06
Chapter07
Chapter08
Chapter09
Chapter10
crawl_depth_first
Crawl a website, depth-first, listing all unique paths found
Crawl a website, depth-first, listing all unique paths found
custom_user_agent
Change HTTP user agent
Change HTTP user agent
find_documents
Load a URL and list all documents found
Load a URL and list all documents found
find_unlisted_files
Look for unlisted files on a domain
Look for unlisted files on a domain
get_links
Load a URL and list all links found
Load a URL and list all links found
http_find_comments
Search through a URL and find HTML comments
Search through a URL and find HTML comments
http_find_emails
Search through a URL and find mailto links with email addresses
Search through a URL and find mailto links with email addresses
http_head
Perform an HTTP HEAD request on a URL and print out headers
Perform an HTTP HEAD request on a URL and print out headers
http_search_word
Perform an HTTP request to load a page and search for a string
Perform an HTTP request to load a page and search for a string
Chapter11
Chapter12
Chapter13
bind_shell
Call back to a remote server and open a shell session
Call back to a remote server and open a shell session
reverse_shell
Call back to a remote server and open a shell session
Call back to a remote server and open a shell session

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL