Golang based RPC client to communicate with Metasploit. This is based off Black Hat Go's example
This modification allows for commands to be run on existing sessions.
go get -u github.com/wdahlenburg/msf-rpc-client/...
export MSFHOST=127.0.0.1:55552
export MSFPASS=password
go run client/main.go
go run client/main.go commands.txt
The additional parameter is a list of commands to be run delimited by newline characters: Ex:
whoami
id
hostname