
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
wstcp-server
Advanced tools
WebSocket TCP forwarding command-line server.
wstcp is a client and server implementation of TCP forwarding over WebSocket. wstcp supports local and remote port forwarding, similar to OpenSSH.
Also see wstcp-client.

npm install wstcp-server
wstcp-server program will be installed in the bin directory.
Install as a Windows service:
npm install -g node-windows
npm run winservice_install
Uninstall the Windows service:
npm run winservice_uninstall
Run from console:
wstcp-server config.json
where config.json is a config file (see below).
{
"port": 10000,
"log": "wstcp-server.log",
"clients": {
"client-1": {
"key": "1234",
"port": 10001,
"remote": "true"
},
"client-2": {
"key": "1234",
"port": 10002,
"remote": "true"
}
}
}
will start listening on port 10000 for WebSocket connections from clients,
authenticated as client-1 or client-2 with key 1234.
Incoming TCP connections on port 10001 will be forwarded to client-1,
and incoming TCP connections on port 10002 will be forwarded to client-2.
port: WebSocket port to listen on.hostname: WebSocket hostname to listen on (default: ::).log: Log file path (default: none).
Relative paths are resolved relative to the config file.client: List of clients.
key: Client authentication key.port: TCP forwarding port.remote: Remote TCP forwarding (default: false).Remote forwarding (remote: true) means wstcp-client listens for incoming
TCP connections and forwards them to wstcp-server. Local forwarding
(remote: false) means incoming TCP connections are forwarded from wstcp-server
to wstcp-client.
wstcp-server does not support SSL (wss), but one can use nginx as a HTTPS
proxy. For example, this nginx configuration will pass wss:// requests
to a local wstcp-server instance at ws://localhost:10000.
location / {
proxy_pass http://localhost:10000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
FAQs
WebSocket TCP forwarding command-line server
We found that wstcp-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.