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
hello command
Chapter02
channels command
classes command
defer_examples command
funcs command
initializers command
interfaces command
maps command
methods command
numbers command
pointers command
slices command
slices2 command
string_examples command
structs command
Chapter03
archive/unzip_example command
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 command
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
basics/delete command
basics/symlinks command
basics/truncate command
compression/gunzip_example command
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 command
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
readwrite/seek command
Chapter04
stego/create_test_archive command
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
Chapter05
custom_layers command
pcap_to_console command
pcap_to_file command
read_pcap_file command
Chapter06
Chapter07
auth_key command
auth_password command
execute_command command
shell command
Chapter08
brute_db command
brute_http_form command
brute_ssh command
Chapter09
html_escape command
http_get command
http_middleware command
https_client command
logging command
proxy_request command
secure_cookie command
serve_http command
serve_http_dir command
serve_https command
Chapter10
crawl_depth_first command
Crawl a website, depth-first, listing all unique paths found
Crawl a website, depth-first, listing all unique paths found
custom_user_agent command
Change HTTP user agent
Change HTTP user agent
find_documents command
Load a URL and list all documents found
Load a URL and list all documents found
find_unlisted_files command
Look for unlisted files on a domain
Look for unlisted files on a domain
get_links command
Load a URL and list all links found
Load a URL and list all links found
http_find_comments command
Search through a URL and find HTML comments
Search through a URL and find HTML comments
http_find_emails command
Search through a URL and find mailto links with email addresses
Search through a URL and find mailto links with email addresses
http_head command
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 command
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
list_page_words command
Chapter11
banner_grab command
fuzz command
port_scan command
scan_dns command
socket_client command
socket_server command
tcp_proxy command
Chapter12
base64_example command
send_email command
Chapter13
bind_shell command
Call back to a remote server and open a shell session
Call back to a remote server and open a shell session
chmode command
chowner command
chtime command
find_writable command
reverse_shell command
Call back to a remote server and open a shell session
Call back to a remote server and open a shell session
web_shell command

Jump to

Keyboard shortcuts

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