Sentinel is a tool developed to act as an additional layer of security for TCP services. It serves as a "jump" proxy, adding an extra layer of encryption to connections towards TCP services. This README provides guidance on how to set up Sentinel and get it running.
-
Install Go: Install the latest version of Go using instructions at Official Golang Website
-
Navigate to the Directory: Move into the cloned repository directory.
cd Sentinel -
Install dependencies: Install the dependencies for this program.(golang.org/x/crypto)
go mod tidy
-
Create Password File: Create a password file containing the passphrase for encryption. This file will be used as an argument when running Sentinel.
echo "YourPassphraseHere" > pwdfile
Replace "YourPassphraseHere" with the desired passphrase.
To run Sentinel in forward proxy mode, use the following command:
go run sentinel.go -l listenport -k pwdfile destination port- listenport: Listen port for reverse-proxy mode.
- pwdfile: Path to the ASCII text passphrase file.
- destination: IP address or hostname of the target service.
- port: Port number of the target service.
Example command:
go run sentinel.go -l 2222 -k pwdfile localhost 22To run Sentinel in reverse proxy mode, use the following command:
ssh -o "ProxyCommand go run sentinel.go -k pwdfile destination port" kali@localhost- pwdfile: Path to the ASCII text passphrase file.
- destination: IP address or hostname of the target service.
- port: Port number of the target service.
Example command:
ssh -o "ProxyCommand go run sentinel.go -k pwdfile localhost 2222" kali@localhost