
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.
node-telnet
Advanced tools
$ npm install node-telnet --save
const client = require('node-telnet');
const opts = {
host: '127.0.0.1', // normally '127.0.0.1', will default to if undefined
port: 1337, //port openvpn management console
timeout: 1500, //timeout for connection - optional, will default to 1500ms if undefined
logpath: 'log.txt' //optional write openvpn console output to file, can be relative path or absolute
};
const auth = {
user: 'vpnUserName',
pass: 'vpnPassword',
};
const connection = client.connect(opts)
// will be emited on successful interfacing with openvpn instance
connection.on('connected', () => {
client.authorize(auth);
});
// emits console output of openvpn instance as a string
connection.on('console-output', output => {
console.log(output)
});
// emits console output of openvpn state as a array
connection.on('state-change', state => {
console.log(state)
});
// emits console output of openvpn state as a string
connection.on('error', error => {
console.log(error)
});
// get all console logs up to this point
client.getLog(console.log)
// and finally when/if you want to
client.disconnect();
// emits on disconnect
connection.on('disconnected', () => {
// finally destroy the disconnected manager
client.destroy()
});
FAQs
Communicate via telnet
We found that node-telnet 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.