switchblade

module
v0.0.0-...-0be9f95 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT

README

GoC2

A post exploitation framework based on the framework built in Blackhat-Go

Setup

Generate certs following this guide:

openssl genrsa -out ca.key 2048 

openssl req -new -x509 -days 365 -key ca.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=Acme Root CA" -out ca.crt

openssl req -newkey rsa:2048 -nodes -keyout server.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=_*.example.com" -out server.csr 

openssl x509 -req -extfile <(printf "subjectAltName=DNS:example.com,DNS:www.example.com") -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt </code>

Ensure you specify a proper SANS, otherwise you will encounter errors.

Taken from here https://security.stackexchange.com/questions/74345/provide-subjectaltname-to-openssl-directly-on-the-command-line

To generate implant.pb.go from implant.proto ensure protobuf is installed as well as protoc-gen-go with

sudo apt install protobuf-compiler

sudo apt install golang-goprotobuf-dev

go get github.com/golang/protobuf/protoc-gen-go

Then run protoc -I . implant.proto --go_out=plugins=grpc:./ in the directory of the implant.proto file.

Put the generated pb file into your Go root, for me it was

/usr/lib/go-1.17/src/server/grpcapi

Import it with

import (
  grpcapi "server/grpcapi"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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