Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@amilajack/node-openvpn
Advanced tools
Readme
Communicate to an OpenVpn client instance via telenet, for node.
npm install @amilajack/node-openvpn
import openvpnmanager from '@amilajack/node-openvpn';
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 openvpn = openvpnmanager.connect(opts);
openvpn.on('connected', () => {
//will be emited on successful interfacing with openvpn instance
openvpnmanager.authorize(auth);
});
openvpn.on('console-output', output => {
//emits console output of openvpn instance as a string
console.log(output);
});
openvpn.on('state-change', state => {
//emits console output of openvpn state as a array
console.log(state);
});
openvpn.on('error', error => {
//emits console output of openvpn state as a string
console.log(error);
});
openvpnmanager.getLog(console.log); //get all console logs up to this point
// and finally when/if you want to
openvpnmanager.disconnect();
openvpn.on('disconnected', () => {
//emits on disconnect
openvpnmanager.destroy(); //finally destroy the disconnected manager
});
FAQs
Communicate with a openvpn instance via telnet
The npm package @amilajack/node-openvpn receives a total of 1 weekly downloads. As such, @amilajack/node-openvpn popularity was classified as not popular.
We found that @amilajack/node-openvpn 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.